net: clean up some sparse endianness warnings in ipv6.h
authorJeff Layton <jlayton@primarydata.com>
Wed, 16 Jul 2014 10:55:46 +0000 (06:55 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Jul 2014 06:31:38 +0000 (23:31 -0700)
commit1373a7739e886cda3ed4848293dc9c46bc5d0d6a
treec9e8912f840fac1073339f670f039743d9717616
parente18a44590a363b6785f12f87167d46be4421ed5b
net: clean up some sparse endianness warnings in ipv6.h

sparse is throwing warnings when building sunrpc modules due to some
endianness shenanigans in ipv6.h. Specifically:

  CHECK   net/sunrpc/addr.c
include/net/ipv6.h:573:17: warning: restricted __be64 degrades to integer
include/net/ipv6.h:577:34: warning: restricted __be32 degrades to integer
include/net/ipv6.h:573:17: warning: restricted __be64 degrades to integer
include/net/ipv6.h:577:34: warning: restricted __be32 degrades to integer

Sprinkle some endianness fixups to silence them. These should all get
fixed up at compile time, so I don't think this will add any extra work
to be done at runtime.

Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ipv6.h