diff options
author | David S. Miller <davem@davemloft.net> | 2011-03-29 23:34:08 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-29 23:34:08 -0700 |
commit | eec009548e98f6b6d514ff5bb8a8627b8dd17a49 (patch) | |
tree | bdce6d53b5a664234bea786aea9c0767377b04bd /net/bridge/br_stp_if.c | |
parent | 0ce790e7d736cedc563e1fb4e998babf5a4dbc3d (diff) | |
download | lwn-eec009548e98f6b6d514ff5bb8a8627b8dd17a49.tar.gz lwn-eec009548e98f6b6d514ff5bb8a8627b8dd17a49.zip |
net: Fix warnings caused by MAX_SKB_FRAGS change.
After commit a715dea3c8e9ef2771c534e05ee1d36f65987e64 ("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>
Diffstat (limited to 'net/bridge/br_stp_if.c')
0 files changed, 0 insertions, 0 deletions