|
|
cf03a1 |
From 393f6651c163058103d6e895dd027b32c4aa509c Mon Sep 17 00:00:00 2001
|
|
|
cf03a1 |
From: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
|
|
|
cf03a1 |
Date: Thu, 18 Apr 2019 09:10:48 +0200
|
|
|
cf03a1 |
Subject: [PATCH 3/8] osm_[port ucast_ftree].c: Remove unused static functions
|
|
|
cf03a1 |
|
|
|
cf03a1 |
Clears defined but unused warning from clang
|
|
|
cf03a1 |
|
|
|
cf03a1 |
Signed-off-by: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
|
|
|
cf03a1 |
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
|
|
|
cf03a1 |
---
|
|
|
cf03a1 |
opensm/osm_port.c | 2 ++
|
|
|
cf03a1 |
opensm/osm_ucast_ftree.c | 2 ++
|
|
|
cf03a1 |
2 files changed, 4 insertions(+)
|
|
|
cf03a1 |
|
|
|
cf03a1 |
diff --git a/opensm/osm_port.c b/opensm/osm_port.c
|
|
|
cf03a1 |
index 1246edf9..7b1d58f9 100644
|
|
|
cf03a1 |
--- a/opensm/osm_port.c
|
|
|
cf03a1 |
+++ b/opensm/osm_port.c
|
|
|
cf03a1 |
@@ -303,6 +303,7 @@ static inline uint64_t ptr_to_key(void const *p)
|
|
|
cf03a1 |
return k;
|
|
|
cf03a1 |
}
|
|
|
cf03a1 |
|
|
|
cf03a1 |
+#if 0
|
|
|
cf03a1 |
static inline void *key_to_ptr(uint64_t k)
|
|
|
cf03a1 |
{
|
|
|
cf03a1 |
void *p = 0;
|
|
|
cf03a1 |
@@ -310,6 +311,7 @@ static inline void *key_to_ptr(uint64_t k)
|
|
|
cf03a1 |
memcpy(&p, &k, sizeof(void *));
|
|
|
cf03a1 |
return p;
|
|
|
cf03a1 |
}
|
|
|
cf03a1 |
+#endif
|
|
|
cf03a1 |
|
|
|
cf03a1 |
/**********************************************************************
|
|
|
cf03a1 |
Traverse the fabric from the SM node following the DR path given and
|
|
|
cf03a1 |
diff --git a/opensm/osm_ucast_ftree.c b/opensm/osm_ucast_ftree.c
|
|
|
cf03a1 |
index 106ef6bf..a4b32e5c 100644
|
|
|
cf03a1 |
--- a/opensm/osm_ucast_ftree.c
|
|
|
cf03a1 |
+++ b/opensm/osm_ucast_ftree.c
|
|
|
cf03a1 |
@@ -318,6 +318,7 @@ static inline ftree_tuple_key_t tuple_to_key(IN ftree_tuple_t tuple)
|
|
|
cf03a1 |
return key;
|
|
|
cf03a1 |
}
|
|
|
cf03a1 |
|
|
|
cf03a1 |
+#if 0
|
|
|
cf03a1 |
/***************************************************/
|
|
|
cf03a1 |
|
|
|
cf03a1 |
static inline void tuple_from_key(IN ftree_tuple_t tuple,
|
|
|
cf03a1 |
@@ -325,6 +326,7 @@ static inline void tuple_from_key(IN ftree_tuple_t tuple,
|
|
|
cf03a1 |
{
|
|
|
cf03a1 |
memcpy(tuple, &key, FTREE_TUPLE_LEN);
|
|
|
cf03a1 |
}
|
|
|
cf03a1 |
+#endif
|
|
|
cf03a1 |
|
|
|
cf03a1 |
/***************************************************
|
|
|
cf03a1 |
**
|
|
|
cf03a1 |
--
|
|
|
cf03a1 |
2.20.1
|
|
|
cf03a1 |
|