Skip to content

Commit

Permalink
Quiet compiler warnings in mbuf.h
Browse files Browse the repository at this point in the history
 * 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 <[email protected]>
Obtained from:	Juniper Networks, Inc.
  • Loading branch information
rodrigc committed Apr 22, 2015
1 parent 2fbc664 commit a303879
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sys/sys/mbuf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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));
Expand Down Expand Up @@ -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."));
Expand Down

0 comments on commit a303879

Please sign in to comment.