summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Richardson <bruce.richardson@intel.com>2019-05-28 12:07:47 +0100
committerKevin Traynor <ktraynor@redhat.com>2019-10-02 15:52:10 +0100
commit6c576d41c5c56f5af59297154d84ddc80022b688 (patch)
tree819c9aaabc4965e6e0122343b2b70c280971f0c2
parent7ffe32a15d8c9e540a68f7ae8a7a1bb00f175ac8 (diff)
downloaddpdk-stable-6c576d41c5c56f5af59297154d84ddc80022b688.zip
dpdk-stable-6c576d41c5c56f5af59297154d84ddc80022b688.tar.gz
dpdk-stable-6c576d41c5c56f5af59297154d84ddc80022b688.tar.xz
mem: mark unused function in 32-bit builds
[ upstream commit be9d80d4df05715181e01cce79c5c82a9c36d6d5] The get_socket_mem_size() function is only used in 64-bit builds, causing clang to warn about it for 32-bit builds. Add the __rte_unused attribute to the function to silence the warning. Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Luca Boccassi <bluca@debian.org>
-rw-r--r--lib/librte_eal/linuxapp/eal/eal_memory.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/librte_eal/linuxapp/eal/eal_memory.c b/lib/librte_eal/linuxapp/eal/eal_memory.c
index 1f2151a..60cf41b 100644
--- a/lib/librte_eal/linuxapp/eal/eal_memory.c
+++ b/lib/librte_eal/linuxapp/eal/eal_memory.c
@@ -1084,6 +1084,7 @@ remap_needed_hugepages(struct hugepage_file *hugepages, int n_pages)
return 0;
}
+__rte_unused /* function is unused on 32-bit builds */
static inline uint64_t
get_socket_mem_size(int socket)
{