Re: [PATCH v2 net-next 5/5] net: Add GRE keyid in flow_keys
From: Eric Dumazet <hidden>
Date: 2015-05-12 16:06:20
On Tue, 2015-05-12 at 10:51 -0400, Tom Herbert wrote:
I don't see these errors with sparse. How are you running it? Thanks, Tom
root@edumazet-glaptop2:/usr/src/net-next# sparse --version 0.4.5-rc1 root@edumazet-glaptop2:/usr/src/net-next# make C=2 CF=-D__CHECK_ENDIAN__ M=net/ipv4 CHECK net/ipv4/route.c CHECK net/ipv4/inetpeer.c CHECK net/ipv4/protocol.c CHECK net/ipv4/ip_input.c CHECK net/ipv4/ip_fragment.c CHECK net/ipv4/ip_forward.c CHECK net/ipv4/ip_options.c CHECK net/ipv4/ip_output.c ... CHECK net/ipv4/tcp_offload.c net/ipv4/tcp_offload.c:139:60: warning: incorrect type in argument 2 (different base types) net/ipv4/tcp_offload.c:139:60: expected restricted __wsum [usertype] res net/ipv4/tcp_offload.c:139:60: got fouled restricted __sum16 include/linux/skbuff.h:3362:14: warning: incorrect type in assignment (different base types) include/linux/skbuff.h:3362:14: expected unsigned short [unsigned] [usertype] csum include/linux/skbuff.h:3362:14: got restricted __sum16 include/linux/skbuff.h:3367:16: warning: incorrect type in return expression (different base types) include/linux/skbuff.h:3367:16: expected restricted __sum16 include/linux/skbuff.h:3367:16: got unsigned short [unsigned] [usertype] csum net/ipv4/tcp_offload.c:173:52: warning: incorrect type in argument 2 (different base types) net/ipv4/tcp_offload.c:173:52: expected restricted __wsum [usertype] res net/ipv4/tcp_offload.c:173:52: got fouled restricted __sum16 include/linux/skbuff.h:3362:14: warning: incorrect type in assignment (different base types) include/linux/skbuff.h:3362:14: expected unsigned short [unsigned] [usertype] csum include/linux/skbuff.h:3362:14: got restricted __sum16 include/linux/skbuff.h:3367:16: warning: incorrect type in return expression (different base types) include/linux/skbuff.h:3367:16: expected restricted __sum16 include/linux/skbuff.h:3367:16: got unsigned short [unsigned] [usertype] csum CHECK net/ipv4/gre_offload.c include/linux/skbuff.h:3362:14: warning: incorrect type in assignment (different base types) include/linux/skbuff.h:3362:14: expected unsigned short [unsigned] [usertype] csum include/linux/skbuff.h:3362:14: got restricted __sum16 include/linux/skbuff.h:3367:16: warning: incorrect type in return expression (different base types) include/linux/skbuff.h:3367:16: expected restricted __sum16 include/linux/skbuff.h:3367:16: got unsigned short [unsigned] [usertype] csum