[<prev] [next>] [day] [month] [year] [list]
Message-ID: <201902141407.shGwbhh6%fengguang.wu@intel.com>
Date: Thu, 14 Feb 2019 14:31:09 +0800
From: kbuild test robot <lkp@...el.com>
To: Xin Long <lucien.xin@...il.com>
Cc: kbuild-all@...org, netdev@...r.kernel.org
Subject: [net:master 27/28] net/sctp/offload.c:39:33: sparse: warning:
incorrect type in argument 2 (different base types)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git master
head: af98c5a78517c04adb5fd68bb64b1ad6fe3d473f
commit: fc228abc2347e106a44c0e9b29ab70b712c4ca51 [27/28] sctp: call gso_reset_checksum when computing checksum in sctp_gso_segment
reproduce:
# apt-get install sparse
git checkout fc228abc2347e106a44c0e9b29ab70b712c4ca51
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
All warnings (new ones prefixed by >>):
>> net/sctp/offload.c:39:33: sparse: warning: incorrect type in argument 2 (different base types)
net/sctp/offload.c:39:33: sparse: expected restricted __wsum [usertype] res
net/sctp/offload.c:39:33: sparse: got int
sparse warnings: (new ones prefixed by >>)
net/sctp/offload.c:39:33: sparse: warning: incorrect type in argument 2 (different base types)
>> net/sctp/offload.c:39:33: sparse: expected restricted __wsum [usertype] res
>> net/sctp/offload.c:39:33: sparse: got int
vim +39 net/sctp/offload.c
34
35 static __le32 sctp_gso_make_checksum(struct sk_buff *skb)
36 {
37 skb->ip_summed = CHECKSUM_NONE;
38 skb->csum_not_inet = 0;
> 39 gso_reset_checksum(skb, ~0);
40 return sctp_compute_cksum(skb, skb_transport_offset(skb));
41 }
42
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Download attachment ".config.gz" of type "application/gzip" (67238 bytes)
Powered by blists - more mailing lists