lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Sat, 4 Dec 2021 11:34:05 +0800
From:   kernel test robot <lkp@...el.com>
To:     Eric Dumazet <eric.dumazet@...il.com>,
        "David S . Miller" <davem@...emloft.net>,
        Jakub Kicinski <kuba@...nel.org>
Cc:     kbuild-all@...ts.01.org, netdev <netdev@...r.kernel.org>,
        Eric Dumazet <edumazet@...gle.com>,
        Vladimir Oltean <vladimir.oltean@....com>,
        David Laight <David.Laight@...LAB.COM>,
        David Lebrun <dlebrun@...gle.com>
Subject: Re: [PATCH net-next] net: fix recent csum changes

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@...el.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

Powered by blists - more mailing lists