]> Git Repo - linux.git/commit
sit: fix sparse warnings
authorNicolas Dichtel <[email protected]>
Thu, 15 Nov 2012 04:06:41 +0000 (04:06 +0000)
committerDavid S. Miller <[email protected]>
Thu, 15 Nov 2012 18:46:29 +0000 (13:46 -0500)
commitd440b72068bb8dff3cc1c2a05b61e60843d82494
treed88dd49557e063e7cab3ff9442a3c2c3a4b0cf15
parentfea379b2db31f5c44f2a24645de5ea29721f22aa
sit: fix sparse warnings

This change fixes several sparse warnings about endianness problem. The wrong
nla_*() functions were used.
It also fix a sparse warning about a flag test (field i_flags). This field is
used in this file like a local flag only, so it is more an u16 (gre uses it as a
be16). This sparse warning was already there before the patch that add netlink
management, the code has just been moved.

Reported-by: Fengguang Wu <[email protected]>
Signed-off-by: Nicolas Dichtel <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/ipv6/sit.c
This page took 0.041843 seconds and 4 git commands to generate.