summaryrefslogtreecommitdiffstats
path: root/sys/sys/mbuf.h
diff options
context:
space:
mode:
authorrodrigc <rodrigc@FreeBSD.org>2015-04-22 01:35:29 +0000
committerrodrigc <rodrigc@FreeBSD.org>2015-04-22 01:35:29 +0000
commita303879bce8d790548f97ecf342fcb6629ee5f2b (patch)
tree0d1b790ec423727f7d677191d3331553015515af /sys/sys/mbuf.h
parent2fbc6643b4b2fd51e7f256d2b76091069fad7c9d (diff)
downloadFreeBSD-src-a303879bce8d790548f97ecf342fcb6629ee5f2b.zip
FreeBSD-src-a303879bce8d790548f97ecf342fcb6629ee5f2b.tar.gz
Quiet compiler warnings in mbuf.h
* Mark unused arguments with __unused * Move inline before the return type (and use __inline to keep the file consistent in style.) Submitted by: Steve Kiernan <stevek@juniper.net> Obtained from: Juniper Networks, Inc.
Diffstat (limited to 'sys/sys/mbuf.h')
-rw-r--r--sys/sys/mbuf.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h
index 9c9ceea..ab06547 100644
--- a/sys/sys/mbuf.h
+++ b/sys/sys/mbuf.h
@@ -616,8 +616,8 @@ m_getzone(int size)
* should go away with constant propagation for !MGETHDR.
*/
static __inline int
-m_init(struct mbuf *m, uma_zone_t zone, int size, int how, short type,
- int flags)
+m_init(struct mbuf *m, uma_zone_t zone __unused, int size __unused, int how,
+ short type, int flags)
{
int error;
@@ -1122,7 +1122,7 @@ m_tag_first(struct mbuf *m)
* Return the next tag in the list of tags associated with an mbuf.
*/
static __inline struct m_tag *
-m_tag_next(struct mbuf *m, struct m_tag *t)
+m_tag_next(struct mbuf *m __unused, struct m_tag *t)
{
return (SLIST_NEXT(t, m_tag_link));
@@ -1178,7 +1178,7 @@ m_free(struct mbuf *m)
return (n);
}
-static int inline
+static __inline int
rt_m_getfib(struct mbuf *m)
{
KASSERT(m->m_flags & M_PKTHDR , ("Attempt to get FIB from non header mbuf."));
OpenPOWER on IntegriCloud