summaryrefslogtreecommitdiffstats
path: root/net/can
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2020-12-09 08:18:21 -0800
committerDavid S. Miller <davem@davemloft.net>2020-12-09 19:42:03 -0800
commitc0ead5552c0fcc15d907651f6d6a8084d32689b3 (patch)
tree23039993bd3b4255dc69a6eb0dbf2bab144f7a8f /net/can
parent523437d7b5ba17ffc85f48d10e6cf5b8200e08de (diff)
downloadlinux-c0ead5552c0fcc15d907651f6d6a8084d32689b3.tar.gz
linux-c0ead5552c0fcc15d907651f6d6a8084d32689b3.tar.bz2
linux-c0ead5552c0fcc15d907651f6d6a8084d32689b3.zip
nfp: silence set but not used warning with IPV6=n
Test robot reports: drivers/net/ethernet/netronome/nfp/crypto/tls.c: In function 'nfp_net_tls_rx_resync_req': drivers/net/ethernet/netronome/nfp/crypto/tls.c:477:18: warning: variable 'ipv6h' set but not used [-Wunused-but-set-variable] 477 | struct ipv6hdr *ipv6h; | ^~~~~ In file included from include/linux/compiler_types.h:65, from <command-line>: drivers/net/ethernet/netronome/nfp/crypto/tls.c: In function 'nfp_net_tls_add': include/linux/compiler_attributes.h:208:41: warning: statement will never be executed [-Wswitch-unreachable] 208 | # define fallthrough __attribute__((__fallthrough__)) | ^~~~~~~~~~~~~ drivers/net/ethernet/netronome/nfp/crypto/tls.c:299:3: note: in expansion of macro 'fallthrough' 299 | fallthrough; | ^~~~~~~~~~~ Use the IPv6 header in the switch, it doesn't matter which header we use to read the version field. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org> Reviewed-by: Simon Horman <simon.horman@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/can')
0 files changed, 0 insertions, 0 deletions