diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2012-01-16 23:27:39 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-01-17 19:31:12 +0400 |
commit | 747465ef7a082033e086dedc8189febfda43b015 (patch) | |
tree | efbdc7a1f25f7bced035077769b4005ea1419abc /net/ipv6 | |
parent | 2b2d465631db59c144f537a9bef47a883c55d670 (diff) | |
download | linux-747465ef7a082033e086dedc8189febfda43b015.tar.xz |
net: fix some sparse errors
make C=2 CF="-D__CHECK_ENDIAN__" M=net
And fix flowi4_init_output() prototype for sport
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/datagram.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/datagram.c b/net/ipv6/datagram.c index ae08aee1773c..251e7cd75e89 100644 --- a/net/ipv6/datagram.c +++ b/net/ipv6/datagram.c @@ -575,7 +575,7 @@ int datagram_recv_ctl(struct sock *sk, struct msghdr *msg, struct sk_buff *skb) } if (np->rxopt.bits.rxorigdstaddr) { struct sockaddr_in6 sin6; - u16 *ports = (u16 *) skb_transport_header(skb); + __be16 *ports = (__be16 *) skb_transport_header(skb); if (skb_transport_offset(skb) + 4 <= skb->len) { /* All current transport protocols have the port numbers in the |