aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/pctrie.h
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2013-12-28 21:31:58 +0000
committerDimitry Andric <dim@FreeBSD.org>2013-12-28 21:31:58 +0000
commitc321b45ec21e34c690c63c677c0222b563892b13 (patch)
treebde20e34f3ac0c60e76f9562156bf57d711092e7 /sys/sys/pctrie.h
parent5ddae1557d0afa2de6ddb848690d34eed909f4b7 (diff)
downloadsrc-c321b45ec21e34c690c63c677c0222b563892b13.tar.gz
src-c321b45ec21e34c690c63c677c0222b563892b13.zip
Mark unused static inline functions defined by the PCTRIE_DEFINE() macro
as __unused, so warnings about them are avoided. MFC after: 3 days
Notes
Notes: svn path=/head/; revision=260017
Diffstat (limited to 'sys/sys/pctrie.h')
-rw-r--r--sys/sys/pctrie.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/pctrie.h b/sys/sys/pctrie.h
index 2a912fdfcda5..f736877cc2b4 100644
--- a/sys/sys/pctrie.h
+++ b/sys/sys/pctrie.h
@@ -83,14 +83,14 @@ name##_PCTRIE_LOOKUP_LE(struct pctrie *ptree, uint64_t key) \
return name##_PCTRIE_VAL2PTR(pctrie_lookup_le(ptree, key)); \
} \
\
-static __inline struct type * \
+static __inline __unused struct type * \
name##_PCTRIE_LOOKUP_GE(struct pctrie *ptree, uint64_t key) \
{ \
\
return name##_PCTRIE_VAL2PTR(pctrie_lookup_ge(ptree, key)); \
} \
\
-static __inline void \
+static __inline __unused void \
name##_PCTRIE_RECLAIM(struct pctrie *ptree) \
{ \
\