]> git.baikalelectronics.ru Git - kernel.git/commit
net: fix sparse endianness warnings on sock_common
authorEric Dumazet <edumazet@google.com>
Sun, 2 Dec 2012 07:33:10 +0000 (07:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Dec 2012 01:23:01 +0000 (20:23 -0500)
commit76bf3cdd0fc0bf5e26091b43e978501747c3a1c0
tree5eac1986bc8d1d8dd4cef0b0c07909773ecc3ebf
parent7c7212a9c7080da777c301b627552e7e1c5a9008
net: fix sparse endianness warnings on sock_common

# make C=2 CF=-D__CHECK_ENDIAN__ net/ipv4/inet_hashtables.o
...
net/ipv4/inet_hashtables.c:242:7: warning: restricted __portpair degrades to integer
net/ipv4/inet_hashtables.c:242:7: warning: restricted __addrpair degrades to integer
...

Move __portpair/__addrpair from include/net/inet_hashtables.h
to include/net/sock.h where we need them in struct sock_common

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Ling Ma <ling.ma.program@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_hashtables.h
include/net/sock.h