]> git.baikalelectronics.ru Git - kernel.git/commit
net: Fix warnings caused by MAX_SKB_FRAGS change.
authorDavid S. Miller <davem@davemloft.net>
Wed, 30 Mar 2011 06:34:08 +0000 (23:34 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Mar 2011 06:34:08 +0000 (23:34 -0700)
commit3411a224af5a3b1ea3498aabbad4b4a002af7a76
treebdce6d53b5a664234bea786aea9c0767377b04bd
parent8fee371925e9b3313e55812fd93cc1adaea36399
net: Fix warnings caused by MAX_SKB_FRAGS change.

After commit ea66d62a8891647a0684896b7da3c63ec8abb00f ("net: Always
allocate at least 16 skb frags regardless of page size"), the value
of MAX_SKB_FRAGS can now take on either an "unsigned long" or an
"int" value.

This causes warnings like:

net/packet/af_packet.c: In function ‘tpacket_fill_skb’:
net/packet/af_packet.c:948: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 2 has type ‘int’

Fix by forcing the constant to be unsigned long, otherwise we have
a situation where the type of a system wide constant is variable.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h