netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Eric Dumazet <eric.dumazet@gmail.com>,
	"David S . Miller" <davem@davemloft.net>,
	Jakub Kicinski <kuba@kernel.org>
Cc: kbuild-all@lists.01.org, netdev <netdev@vger.kernel.org>,
	Eric Dumazet <edumazet@google.com>,
	Vladimir Oltean <vladimir.oltean@nxp.com>,
	David Laight <David.Laight@ACULAB.COM>,
	David Lebrun <dlebrun@google.com>
Subject: Re: [PATCH net-next] net: fix recent csum changes
Date: Sat, 4 Dec 2021 11:34:05 +0800	[thread overview]
Message-ID: <202112041104.gPgP3Z6U-lkp@intel.com> (raw)
In-Reply-To: <20211203185238.2011081-1-eric.dumazet@gmail.com>

Hi Eric,

I love your patch! Perhaps something to improve:

[auto build test WARNING on net-next/master]

url:    https://github.com/0day-ci/linux/commits/Eric-Dumazet/net-fix-recent-csum-changes/20211204-025401
base:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 43332cf97425a3e5508c827c82201ecc5ddd54e0
config: parisc-randconfig-s031-20211203 (https://download.01.org/0day-ci/archive/20211204/202112041104.gPgP3Z6U-lkp@intel.com/config)
compiler: hppa64-linux-gcc (GCC) 11.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.4-dirty
        # https://github.com/0day-ci/linux/commit/c13fbd113358fb59f76f76d25a1fdb57379c4b9c
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Eric-Dumazet/net-fix-recent-csum-changes/20211204-025401
        git checkout c13fbd113358fb59f76f76d25a1fdb57379c4b9c
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=parisc SHELL=/bin/bash net/core/ net/ipv4/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)
   net/core/skbuff.c: note: in included file (through include/net/net_namespace.h, include/linux/inet.h):
>> include/linux/skbuff.h:3489:55: sparse: sparse: restricted __wsum degrades to integer
>> include/linux/skbuff.h:3489:55: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected restricted __wsum [usertype] @@     got unsigned int @@
   include/linux/skbuff.h:3489:55: sparse:     expected restricted __wsum [usertype]
   include/linux/skbuff.h:3489:55: sparse:     got unsigned int
   include/linux/skbuff.h:3489:29: sparse: sparse: restricted __wsum degrades to integer
>> include/linux/skbuff.h:3489:27: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __wsum [usertype] csum @@     got unsigned int @@
   include/linux/skbuff.h:3489:27: sparse:     expected restricted __wsum [usertype] csum
   include/linux/skbuff.h:3489:27: sparse:     got unsigned int
>> include/linux/skbuff.h:3489:55: sparse: sparse: restricted __wsum degrades to integer
>> include/linux/skbuff.h:3489:55: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected restricted __wsum [usertype] @@     got unsigned int @@
   include/linux/skbuff.h:3489:55: sparse:     expected restricted __wsum [usertype]
   include/linux/skbuff.h:3489:55: sparse:     got unsigned int
   include/linux/skbuff.h:3489:29: sparse: sparse: restricted __wsum degrades to integer
>> include/linux/skbuff.h:3489:27: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __wsum [usertype] csum @@     got unsigned int @@
   include/linux/skbuff.h:3489:27: sparse:     expected restricted __wsum [usertype] csum
   include/linux/skbuff.h:3489:27: sparse:     got unsigned int
>> include/linux/skbuff.h:3489:55: sparse: sparse: restricted __wsum degrades to integer
>> include/linux/skbuff.h:3489:55: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected restricted __wsum [usertype] @@     got unsigned int @@
   include/linux/skbuff.h:3489:55: sparse:     expected restricted __wsum [usertype]
   include/linux/skbuff.h:3489:55: sparse:     got unsigned int
   include/linux/skbuff.h:3489:29: sparse: sparse: restricted __wsum degrades to integer
>> include/linux/skbuff.h:3489:27: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __wsum [usertype] csum @@     got unsigned int @@
   include/linux/skbuff.h:3489:27: sparse:     expected restricted __wsum [usertype] csum
   include/linux/skbuff.h:3489:27: sparse:     got unsigned int
--
   net/core/filter.c:1411:39: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct sock_filter const *filter @@     got struct sock_filter [noderef] __user *filter @@
   net/core/filter.c:1411:39: sparse:     expected struct sock_filter const *filter
   net/core/filter.c:1411:39: sparse:     got struct sock_filter [noderef] __user *filter
   net/core/filter.c:1489:39: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct sock_filter const *filter @@     got struct sock_filter [noderef] __user *filter @@
   net/core/filter.c:1489:39: sparse:     expected struct sock_filter const *filter
   net/core/filter.c:1489:39: sparse:     got struct sock_filter [noderef] __user *filter
   net/core/filter.c:2296:45: sparse: sparse: incorrect type in argument 2 (different base types) @@     expected restricted __be32 [usertype] daddr @@     got unsigned int [usertype] ipv4_nh @@
   net/core/filter.c:2296:45: sparse:     expected restricted __be32 [usertype] daddr
   net/core/filter.c:2296:45: sparse:     got unsigned int [usertype] ipv4_nh
   net/core/filter.c:10023:31: sparse: sparse: symbol 'cg_skb_verifier_ops' was not declared. Should it be static?
   net/core/filter.c:10029:27: sparse: sparse: symbol 'cg_skb_prog_ops' was not declared. Should it be static?
   net/core/filter.c:10074:31: sparse: sparse: symbol 'cg_sock_verifier_ops' was not declared. Should it be static?
   net/core/filter.c:10080:27: sparse: sparse: symbol 'cg_sock_prog_ops' was not declared. Should it be static?
   net/core/filter.c:10083:31: sparse: sparse: symbol 'cg_sock_addr_verifier_ops' was not declared. Should it be static?
   net/core/filter.c:10089:27: sparse: sparse: symbol 'cg_sock_addr_prog_ops' was not declared. Should it be static?
   net/core/filter.c:246:32: sparse: sparse: cast to restricted __be16
   net/core/filter.c:273:32: sparse: sparse: cast to restricted __be32
   net/core/filter.c:1910:43: sparse: sparse: incorrect type in argument 2 (different base types) @@     expected restricted __wsum [usertype] diff @@     got unsigned long long [usertype] to @@
   net/core/filter.c:1910:43: sparse:     expected restricted __wsum [usertype] diff
   net/core/filter.c:1910:43: sparse:     got unsigned long long [usertype] to
   net/core/filter.c:1913:36: sparse: sparse: incorrect type in argument 2 (different base types) @@     expected restricted __be16 [usertype] old @@     got unsigned long long [usertype] from @@
   net/core/filter.c:1913:36: sparse:     expected restricted __be16 [usertype] old
   net/core/filter.c:1913:36: sparse:     got unsigned long long [usertype] from
   net/core/filter.c:1913:42: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected restricted __be16 [usertype] new @@     got unsigned long long [usertype] to @@
   net/core/filter.c:1913:42: sparse:     expected restricted __be16 [usertype] new
   net/core/filter.c:1913:42: sparse:     got unsigned long long [usertype] to
   net/core/filter.c:1916:36: sparse: sparse: incorrect type in argument 2 (different base types) @@     expected restricted __be32 [usertype] from @@     got unsigned long long [usertype] from @@
   net/core/filter.c:1916:36: sparse:     expected restricted __be32 [usertype] from
   net/core/filter.c:1916:36: sparse:     got unsigned long long [usertype] from
   net/core/filter.c:1916:42: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected restricted __be32 [usertype] to @@     got unsigned long long [usertype] to @@
   net/core/filter.c:1916:42: sparse:     expected restricted __be32 [usertype] to
   net/core/filter.c:1916:42: sparse:     got unsigned long long [usertype] to
   net/core/filter.c:1961:59: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected restricted __wsum [usertype] diff @@     got unsigned long long [usertype] to @@
   net/core/filter.c:1961:59: sparse:     expected restricted __wsum [usertype] diff
   net/core/filter.c:1961:59: sparse:     got unsigned long long [usertype] to
   net/core/filter.c:1964:52: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected restricted __be16 [usertype] from @@     got unsigned long long [usertype] from @@
   net/core/filter.c:1964:52: sparse:     expected restricted __be16 [usertype] from
   net/core/filter.c:1964:52: sparse:     got unsigned long long [usertype] from
   net/core/filter.c:1964:58: sparse: sparse: incorrect type in argument 4 (different base types) @@     expected restricted __be16 [usertype] to @@     got unsigned long long [usertype] to @@
   net/core/filter.c:1964:58: sparse:     expected restricted __be16 [usertype] to
   net/core/filter.c:1964:58: sparse:     got unsigned long long [usertype] to
   net/core/filter.c:1967:52: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected restricted __be32 [usertype] from @@     got unsigned long long [usertype] from @@
   net/core/filter.c:1967:52: sparse:     expected restricted __be32 [usertype] from
   net/core/filter.c:1967:52: sparse:     got unsigned long long [usertype] from
   net/core/filter.c:1967:58: sparse: sparse: incorrect type in argument 4 (different base types) @@     expected restricted __be32 [usertype] to @@     got unsigned long long [usertype] to @@
   net/core/filter.c:1967:58: sparse:     expected restricted __be32 [usertype] to
   net/core/filter.c:1967:58: sparse:     got unsigned long long [usertype] to
   net/core/filter.c:2013:28: sparse: sparse: incorrect type in return expression (different base types) @@     expected unsigned long long @@     got restricted __wsum @@
   net/core/filter.c:2013:28: sparse:     expected unsigned long long
   net/core/filter.c:2013:28: sparse:     got restricted __wsum
   net/core/filter.c:2035:35: sparse: sparse: incorrect type in return expression (different base types) @@     expected unsigned long long @@     got restricted __wsum [usertype] csum @@
   net/core/filter.c:2035:35: sparse:     expected unsigned long long
   net/core/filter.c:2035:35: sparse:     got restricted __wsum [usertype] csum
   net/core/filter.c:5333:17: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] spi @@     got restricted __be32 const [usertype] spi @@
   net/core/filter.c:5333:17: sparse:     expected unsigned int [usertype] spi
   net/core/filter.c:5333:17: sparse:     got restricted __be32 const [usertype] spi
   net/core/filter.c:5341:33: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] remote_ipv4 @@     got restricted __be32 const [usertype] a4 @@
   net/core/filter.c:5341:33: sparse:     expected unsigned int [usertype] remote_ipv4
   net/core/filter.c:5341:33: sparse:     got restricted __be32 const [usertype] a4
   net/core/filter.c: note: in included file (through include/linux/netlink.h, include/linux/sock_diag.h):
>> include/linux/skbuff.h:3489:55: sparse: sparse: restricted __wsum degrades to integer
>> include/linux/skbuff.h:3489:55: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected restricted __wsum [usertype] @@     got unsigned int @@
   include/linux/skbuff.h:3489:55: sparse:     expected restricted __wsum [usertype]
   include/linux/skbuff.h:3489:55: sparse:     got unsigned int
   include/linux/skbuff.h:3489:29: sparse: sparse: restricted __wsum degrades to integer
>> include/linux/skbuff.h:3489:27: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __wsum [usertype] csum @@     got unsigned int @@
   include/linux/skbuff.h:3489:27: sparse:     expected restricted __wsum [usertype] csum
   include/linux/skbuff.h:3489:27: sparse:     got unsigned int
   net/core/filter.c: note: in included file (through include/net/ip.h):
   include/net/route.h:372:48: sparse: sparse: incorrect type in argument 2 (different base types) @@     expected unsigned int [usertype] key @@     got restricted __be32 [usertype] daddr @@
   include/net/route.h:372:48: sparse:     expected unsigned int [usertype] key
   include/net/route.h:372:48: sparse:     got restricted __be32 [usertype] daddr
   include/net/route.h:372:48: sparse: sparse: incorrect type in argument 2 (different base types) @@     expected unsigned int [usertype] key @@     got restricted __be32 [usertype] daddr @@
   include/net/route.h:372:48: sparse:     expected unsigned int [usertype] key
   include/net/route.h:372:48: sparse:     got restricted __be32 [usertype] daddr
   include/net/route.h:372:48: sparse: sparse: incorrect type in argument 2 (different base types) @@     expected unsigned int [usertype] key @@     got restricted __be32 [usertype] daddr @@
   include/net/route.h:372:48: sparse:     expected unsigned int [usertype] key
   include/net/route.h:372:48: sparse:     got restricted __be32 [usertype] daddr
   net/core/filter.c: note: in included file (through include/linux/netlink.h, include/linux/sock_diag.h):
>> include/linux/skbuff.h:3489:55: sparse: sparse: restricted __wsum degrades to integer
>> include/linux/skbuff.h:3489:55: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected restricted __wsum [usertype] @@     got unsigned int @@
   include/linux/skbuff.h:3489:55: sparse:     expected restricted __wsum [usertype]
   include/linux/skbuff.h:3489:55: sparse:     got unsigned int
   include/linux/skbuff.h:3489:29: sparse: sparse: restricted __wsum degrades to integer
>> include/linux/skbuff.h:3489:27: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __wsum [usertype] csum @@     got unsigned int @@
   include/linux/skbuff.h:3489:27: sparse:     expected restricted __wsum [usertype] csum
   include/linux/skbuff.h:3489:27: sparse:     got unsigned int
--
   net/core/dev.c:3207:23: sparse: sparse: incorrect type in argument 4 (different base types) @@     expected restricted __wsum [usertype] csum @@     got unsigned int @@
   net/core/dev.c:3207:23: sparse:     expected restricted __wsum [usertype] csum
   net/core/dev.c:3207:23: sparse:     got unsigned int
   net/core/dev.c:3207:23: sparse: sparse: cast from restricted __wsum
   net/core/dev.c:3207:23: sparse: sparse: incorrect type in argument 4 (different base types) @@     expected restricted __wsum [usertype] csum @@     got unsigned int @@
   net/core/dev.c:3207:23: sparse:     expected restricted __wsum [usertype] csum
   net/core/dev.c:3207:23: sparse:     got unsigned int
   net/core/dev.c:3207:23: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] val @@     got restricted __wsum @@
   net/core/dev.c:3207:23: sparse:     expected unsigned int [usertype] val
   net/core/dev.c:3207:23: sparse:     got restricted __wsum
   net/core/dev.c:3207:23: sparse: sparse: incorrect type in argument 4 (different base types) @@     expected restricted __wsum [usertype] csum @@     got unsigned int @@
   net/core/dev.c:3207:23: sparse:     expected restricted __wsum [usertype] csum
   net/core/dev.c:3207:23: sparse:     got unsigned int
   net/core/dev.c:3207:23: sparse: sparse: cast from restricted __wsum
   net/core/dev.c:3207:23: sparse: sparse: incorrect type in argument 4 (different base types) @@     expected restricted __wsum [usertype] csum @@     got unsigned int @@
   net/core/dev.c:3207:23: sparse:     expected restricted __wsum [usertype] csum
   net/core/dev.c:3207:23: sparse:     got unsigned int
   net/core/dev.c:3207:23: sparse: sparse: cast from restricted __wsum
   net/core/dev.c:3207:23: sparse: sparse: incorrect type in argument 4 (different base types) @@     expected restricted __wsum [usertype] csum @@     got unsigned int @@
   net/core/dev.c:3207:23: sparse:     expected restricted __wsum [usertype] csum
   net/core/dev.c:3207:23: sparse:     got unsigned int
   net/core/dev.c:3207:23: sparse: sparse: cast from restricted __wsum
   net/core/dev.c:3207:23: sparse: sparse: incorrect type in argument 4 (different base types) @@     expected restricted __wsum [usertype] csum @@     got unsigned int @@
   net/core/dev.c:3207:23: sparse:     expected restricted __wsum [usertype] csum
   net/core/dev.c:3207:23: sparse:     got unsigned int
   net/core/dev.c:3207:23: sparse: sparse: cast from restricted __wsum
   net/core/dev.c: note: in included file (through include/linux/if_ether.h):
>> include/linux/skbuff.h:3489:55: sparse: sparse: restricted __wsum degrades to integer
>> include/linux/skbuff.h:3489:55: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected restricted __wsum [usertype] @@     got unsigned int @@
   include/linux/skbuff.h:3489:55: sparse:     expected restricted __wsum [usertype]
   include/linux/skbuff.h:3489:55: sparse:     got unsigned int
   include/linux/skbuff.h:3489:29: sparse: sparse: restricted __wsum degrades to integer
>> include/linux/skbuff.h:3489:27: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __wsum [usertype] csum @@     got unsigned int @@
   include/linux/skbuff.h:3489:27: sparse:     expected restricted __wsum [usertype] csum
   include/linux/skbuff.h:3489:27: sparse:     got unsigned int
   net/core/dev.c:3712:17: sparse: sparse: context imbalance in '__dev_queue_xmit' - different lock contexts for basic block
   net/core/dev.c:4918:17: sparse: sparse: context imbalance in 'net_tx_action' - different lock contexts for basic block
--
   net/ipv4/udp_offload.c:139:60: sparse: sparse: incorrect type in argument 2 (different base types) @@     expected restricted __wsum [usertype] res @@     got fouled restricted __sum16 @@
   net/ipv4/udp_offload.c:139:60: sparse:     expected restricted __wsum [usertype] res
   net/ipv4/udp_offload.c:139:60: sparse:     got fouled restricted __sum16
   net/ipv4/udp_offload.c:330:49: sparse: sparse: incorrect type in argument 2 (different base types) @@     expected restricted __wsum [usertype] res @@     got fouled restricted __sum16 @@
   net/ipv4/udp_offload.c:330:49: sparse:     expected restricted __wsum [usertype] res
   net/ipv4/udp_offload.c:330:49: sparse:     got fouled restricted __sum16
   net/ipv4/udp_offload.c:332:60: sparse: sparse: incorrect type in argument 2 (different base types) @@     expected restricted __wsum [usertype] res @@     got fouled restricted __sum16 @@
   net/ipv4/udp_offload.c:332:60: sparse:     expected restricted __wsum [usertype] res
   net/ipv4/udp_offload.c:332:60: sparse:     got fouled restricted __sum16
   net/ipv4/udp_offload.c:348:41: sparse: sparse: incorrect type in argument 2 (different base types) @@     expected restricted __wsum [usertype] res @@     got fouled restricted __sum16 @@
   net/ipv4/udp_offload.c:348:41: sparse:     expected restricted __wsum [usertype] res
   net/ipv4/udp_offload.c:348:41: sparse:     got fouled restricted __sum16
   net/ipv4/udp_offload.c:350:52: sparse: sparse: incorrect type in argument 2 (different base types) @@     expected restricted __wsum [usertype] res @@     got fouled restricted __sum16 @@
   net/ipv4/udp_offload.c:350:52: sparse:     expected restricted __wsum [usertype] res
   net/ipv4/udp_offload.c:350:52: sparse:     got fouled restricted __sum16
   net/ipv4/udp_offload.c: note: in included file:
>> include/net/gro.h:177:56: sparse: sparse: restricted __wsum degrades to integer
>> include/net/gro.h:177:56: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected restricted __wsum [usertype] @@     got unsigned int @@
   include/net/gro.h:177:56: sparse:     expected restricted __wsum [usertype]
   include/net/gro.h:177:56: sparse:     got unsigned int
   include/net/gro.h:176:42: sparse: sparse: restricted __wsum degrades to integer
>> include/net/gro.h:176:40: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __wsum [usertype] csum @@     got unsigned int @@
   include/net/gro.h:176:40: sparse:     expected restricted __wsum [usertype] csum
   include/net/gro.h:176:40: sparse:     got unsigned int
>> include/net/gro.h:177:56: sparse: sparse: restricted __wsum degrades to integer
>> include/net/gro.h:177:56: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected restricted __wsum [usertype] @@     got unsigned int @@
   include/net/gro.h:177:56: sparse:     expected restricted __wsum [usertype]
   include/net/gro.h:177:56: sparse:     got unsigned int
   include/net/gro.h:176:42: sparse: sparse: restricted __wsum degrades to integer
>> include/net/gro.h:176:40: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __wsum [usertype] csum @@     got unsigned int @@
   include/net/gro.h:176:40: sparse:     expected restricted __wsum [usertype] csum
   include/net/gro.h:176:40: sparse:     got unsigned int
--
   net/ipv4/gre_offload.c: note: in included file:
>> include/net/gro.h:177:56: sparse: sparse: restricted __wsum degrades to integer
>> include/net/gro.h:177:56: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected restricted __wsum [usertype] @@     got unsigned int @@
   include/net/gro.h:177:56: sparse:     expected restricted __wsum [usertype]
   include/net/gro.h:177:56: sparse:     got unsigned int
   include/net/gro.h:176:42: sparse: sparse: restricted __wsum degrades to integer
>> include/net/gro.h:176:40: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __wsum [usertype] csum @@     got unsigned int @@
   include/net/gro.h:176:40: sparse:     expected restricted __wsum [usertype] csum
   include/net/gro.h:176:40: sparse:     got unsigned int
--
   net/ipv4/fou.c: note: in included file:
>> include/linux/skbuff.h:3489:55: sparse: sparse: restricted __wsum degrades to integer
>> include/linux/skbuff.h:3489:55: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected restricted __wsum [usertype] @@     got unsigned int @@
   include/linux/skbuff.h:3489:55: sparse:     expected restricted __wsum [usertype]
   include/linux/skbuff.h:3489:55: sparse:     got unsigned int
   include/linux/skbuff.h:3489:29: sparse: sparse: restricted __wsum degrades to integer
>> include/linux/skbuff.h:3489:27: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __wsum [usertype] csum @@     got unsigned int @@
   include/linux/skbuff.h:3489:27: sparse:     expected restricted __wsum [usertype] csum
   include/linux/skbuff.h:3489:27: sparse:     got unsigned int
>> include/linux/skbuff.h:3489:55: sparse: sparse: restricted __wsum degrades to integer
>> include/linux/skbuff.h:3489:55: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected restricted __wsum [usertype] @@     got unsigned int @@
   include/linux/skbuff.h:3489:55: sparse:     expected restricted __wsum [usertype]
   include/linux/skbuff.h:3489:55: sparse:     got unsigned int
   include/linux/skbuff.h:3489:29: sparse: sparse: restricted __wsum degrades to integer
>> include/linux/skbuff.h:3489:27: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __wsum [usertype] csum @@     got unsigned int @@
   include/linux/skbuff.h:3489:27: sparse:     expected restricted __wsum [usertype] csum
   include/linux/skbuff.h:3489:27: sparse:     got unsigned int
>> include/linux/skbuff.h:3489:55: sparse: sparse: restricted __wsum degrades to integer
>> include/linux/skbuff.h:3489:55: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected restricted __wsum [usertype] @@     got unsigned int @@
   include/linux/skbuff.h:3489:55: sparse:     expected restricted __wsum [usertype]
   include/linux/skbuff.h:3489:55: sparse:     got unsigned int
   include/linux/skbuff.h:3489:29: sparse: sparse: restricted __wsum degrades to integer
>> include/linux/skbuff.h:3489:27: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __wsum [usertype] csum @@     got unsigned int @@
   include/linux/skbuff.h:3489:27: sparse:     expected restricted __wsum [usertype] csum
   include/linux/skbuff.h:3489:27: sparse:     got unsigned int
   net/ipv4/fou.c: note: in included file:
>> include/net/gro.h:177:56: sparse: sparse: restricted __wsum degrades to integer
>> include/net/gro.h:177:56: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected restricted __wsum [usertype] @@     got unsigned int @@
   include/net/gro.h:177:56: sparse:     expected restricted __wsum [usertype]
   include/net/gro.h:177:56: sparse:     got unsigned int
   include/net/gro.h:176:42: sparse: sparse: restricted __wsum degrades to integer
>> include/net/gro.h:176:40: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __wsum [usertype] csum @@     got unsigned int @@
   include/net/gro.h:176:40: sparse:     expected restricted __wsum [usertype] csum
   include/net/gro.h:176:40: sparse:     got unsigned int
--
   net/ipv4/ip_tunnel.c: note: in included file:
>> include/linux/skbuff.h:3489:55: sparse: sparse: restricted __wsum degrades to integer
>> include/linux/skbuff.h:3489:55: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected restricted __wsum [usertype] @@     got unsigned int @@
   include/linux/skbuff.h:3489:55: sparse:     expected restricted __wsum [usertype]
   include/linux/skbuff.h:3489:55: sparse:     got unsigned int
   include/linux/skbuff.h:3489:29: sparse: sparse: restricted __wsum degrades to integer
>> include/linux/skbuff.h:3489:27: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __wsum [usertype] csum @@     got unsigned int @@
   include/linux/skbuff.h:3489:27: sparse:     expected restricted __wsum [usertype] csum
   include/linux/skbuff.h:3489:27: sparse:     got unsigned int

vim +3489 include/linux/skbuff.h

  3474	
  3475	/**
  3476	 *	skb_postpull_rcsum - update checksum for received skb after pull
  3477	 *	@skb: buffer to update
  3478	 *	@start: start of data before pull
  3479	 *	@len: length of data pulled
  3480	 *
  3481	 *	After doing a pull on a received packet, you need to call this to
  3482	 *	update the CHECKSUM_COMPLETE checksum, or set ip_summed to
  3483	 *	CHECKSUM_NONE so that it can be recomputed from scratch.
  3484	 */
  3485	static inline void skb_postpull_rcsum(struct sk_buff *skb,
  3486					      const void *start, unsigned int len)
  3487	{
  3488		if (skb->ip_summed == CHECKSUM_COMPLETE)
> 3489			skb->csum = -csum_partial(start, len, -skb->csum);
  3490		else if (skb->ip_summed == CHECKSUM_PARTIAL &&
  3491			 skb_checksum_start_offset(skb) < 0)
  3492			skb->ip_summed = CHECKSUM_NONE;
  3493	}
  3494	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

  parent reply	other threads:[~2021-12-04  3:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-03 18:52 [PATCH net-next] net: fix recent csum changes Eric Dumazet
2021-12-04  3:34 ` kernel test robot
2021-12-04  3:34 ` kernel test robot [this message]
2021-12-04  4:40   ` Eric Dumazet
2021-12-04 14:00     ` David Laight
2021-12-04 18:33       ` Eric Dumazet
2021-12-04 19:03         ` David Laight
2021-12-04 19:18           ` David Laight

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202112041104.gPgP3Z6U-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=David.Laight@ACULAB.COM \
    --cc=davem@davemloft.net \
    --cc=dlebrun@google.com \
    --cc=edumazet@google.com \
    --cc=eric.dumazet@gmail.com \
    --cc=kbuild-all@lists.01.org \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=vladimir.oltean@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).