opensm/SOURCES/0003-osm_-port-ucast_ftree-.c-Remove-unused-static-functi.patch
2021-09-09 23:17:37 +00:00

58 lines
1.6 KiB
Diff

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