]> Pileus Git - ~andy/linux/commit
sit: fix sparse warnings
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Thu, 15 Nov 2012 04:06:41 +0000 (04:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
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 <fengguang.wu@intel.com>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/sit.c