]> git.baikalelectronics.ru Git - kernel.git/commit
flow_keys: n_proto type should be __be16
authorEric Dumazet <edumazet@google.com>
Wed, 4 Feb 2015 21:31:54 +0000 (13:31 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Feb 2015 08:40:22 +0000 (00:40 -0800)
commit068d02d9ed6b25309b8486ecd08b37022b16330f
treeab1a61a58c3f3e97f26cf3a78ac48e4035f8ee78
parent609e5793317c8d1c0e2f8dffc7e2a0258af80832
flow_keys: n_proto type should be __be16

(struct flow_keys)->n_proto is in network order, use
proper type for this.

Fixes following sparse errors :

net/core/flow_dissector.c:139:39: warning: incorrect type in assignment (different base types)
net/core/flow_dissector.c:139:39:    expected unsigned short [unsigned] [usertype] n_proto
net/core/flow_dissector.c:139:39:    got restricted __be16 [assigned] [usertype] proto
net/core/flow_dissector.c:237:23: warning: incorrect type in assignment (different base types)
net/core/flow_dissector.c:237:23:    expected unsigned short [unsigned] [usertype] n_proto
net/core/flow_dissector.c:237:23:    got restricted __be16 [assigned] [usertype] proto

Signed-off-by: Eric Dumazet <edumazet@google.com>
Fixes: c97e21826f8b ("flow_keys: Record IP layer protocol in skb_flow_dissect()")
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/flow_keys.h