tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 999569d59a0aa2509ae4a67ecc266c1134e37e7b commit: 5c840ceb247ced42df472fff0d952603027eb66c [11997/12116] cifs: Create a new shared file holding smb2 pdu definitions config: i386-randconfig-s001-20210908 (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.4-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=5c840ceb247ced42df472fff0d952603027eb66c git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 5c840ceb247ced42df472fff0d952603027eb66c # save the attached .config to linux build tree make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> sparse warnings: (new ones prefixed by >>) >> fs/cifs/smb2maperror.c:2448:52: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] tid @@ got restricted __le32 [usertype] TreeId @@ fs/cifs/smb2maperror.c:2448:52: sparse: expected unsigned int [usertype] tid fs/cifs/smb2maperror.c:2448:52: sparse: got restricted __le32 [usertype] TreeId >> fs/cifs/smb2maperror.c:2448:65: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned long long [usertype] sesid @@ got restricted __le64 [usertype] SessionId @@ fs/cifs/smb2maperror.c:2448:65: sparse: expected unsigned long long [usertype] sesid fs/cifs/smb2maperror.c:2448:65: sparse: got restricted __le64 [usertype] SessionId fs/cifs/smb2maperror.c:2473:43: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] tid @@ got restricted __le32 [usertype] TreeId @@ fs/cifs/smb2maperror.c:2473:43: sparse: expected unsigned int [usertype] tid fs/cifs/smb2maperror.c:2473:43: sparse: got restricted __le32 [usertype] TreeId fs/cifs/smb2maperror.c:2473:56: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned long long [usertype] sesid @@ got restricted __le64 [usertype] SessionId @@ fs/cifs/smb2maperror.c:2473:56: sparse: expected unsigned long long [usertype] sesid fs/cifs/smb2maperror.c:2473:56: sparse: got restricted __le64 [usertype] SessionId -- >> fs/cifs/smb2transport.c:223:45: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned long long [usertype] ses_id @@ got restricted __le64 [usertype] SessionId @@ fs/cifs/smb2transport.c:223:45: sparse: expected unsigned long long [usertype] ses_id fs/cifs/smb2transport.c:223:45: sparse: got restricted __le64 [usertype] SessionId fs/cifs/smb2transport.c:544:36: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned long long [usertype] ses_id @@ got restricted __le64 [usertype] SessionId @@ fs/cifs/smb2transport.c:544:36: sparse: expected unsigned long long [usertype] ses_id fs/cifs/smb2transport.c:544:36: sparse: got restricted __le64 [usertype] SessionId >> fs/cifs/smb2transport.c:735:45: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] tid @@ got restricted __le32 const [usertype] TreeId @@ fs/cifs/smb2transport.c:735:45: sparse: expected unsigned int [usertype] tid fs/cifs/smb2transport.c:735:45: sparse: got restricted __le32 const [usertype] TreeId >> fs/cifs/smb2transport.c:735:58: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned long long [usertype] sesid @@ got restricted __le64 const [usertype] SessionId @@ fs/cifs/smb2transport.c:735:58: sparse: expected unsigned long long [usertype] sesid fs/cifs/smb2transport.c:735:58: sparse: got restricted __le64 const [usertype] SessionId -- >> fs/cifs/smb2misc.c:828:46: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned long long [usertype] ses_id @@ got restricted __le64 [usertype] SessionId @@ fs/cifs/smb2misc.c:828:46: sparse: expected unsigned long long [usertype] ses_id fs/cifs/smb2misc.c:828:46: sparse: got restricted __le64 [usertype] SessionId >> fs/cifs/smb2misc.c:829:49: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected unsigned int [usertype] tid @@ got restricted __le32 [usertype] TreeId @@ fs/cifs/smb2misc.c:829:49: sparse: expected unsigned int [usertype] tid fs/cifs/smb2misc.c:829:49: sparse: got restricted __le32 [usertype] TreeId -- >> fs/cifs/smb2ops.c:2492:47: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] tid @@ got restricted __le32 [usertype] TreeId @@ fs/cifs/smb2ops.c:2492:47: sparse: expected unsigned int [usertype] tid fs/cifs/smb2ops.c:2492:47: sparse: got restricted __le32 [usertype] TreeId >> fs/cifs/smb2ops.c:2492:60: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned long long [usertype] sesid @@ got restricted __le64 [usertype] SessionId @@ fs/cifs/smb2ops.c:2492:60: sparse: expected unsigned long long [usertype] sesid fs/cifs/smb2ops.c:2492:60: sparse: got restricted __le64 [usertype] SessionId >> fs/cifs/smb2ops.c:2527:57: sparse: sparse: restricted __le32 degrades to integer -- >> fs/cifs/smb2pdu.c:118:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] TreeId @@ got unsigned int const [usertype] tid @@ fs/cifs/smb2pdu.c:118:32: sparse: expected restricted __le32 [usertype] TreeId fs/cifs/smb2pdu.c:118:32: sparse: got unsigned int const [usertype] tid >> fs/cifs/smb2pdu.c:121:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le64 [usertype] SessionId @@ got unsigned long long [usertype] Suid @@ fs/cifs/smb2pdu.c:121:33: sparse: expected restricted __le64 [usertype] SessionId fs/cifs/smb2pdu.c:121:33: sparse: got unsigned long long [usertype] Suid fs/cifs/smb2pdu.c:1253:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le64 [usertype] SessionId @@ got unsigned long long [usertype] Suid @@ fs/cifs/smb2pdu.c:1253:36: sparse: expected restricted __le64 [usertype] SessionId fs/cifs/smb2pdu.c:1253:36: sparse: got unsigned long long [usertype] Suid fs/cifs/smb2pdu.c:1561:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le64 [usertype] SessionId @@ got unsigned long long [usertype] Suid @@ fs/cifs/smb2pdu.c:1561:28: sparse: expected restricted __le64 [usertype] SessionId fs/cifs/smb2pdu.c:1561:28: sparse: got unsigned long long [usertype] Suid >> fs/cifs/smb2pdu.c:1587:27: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] Suid @@ got restricted __le64 [usertype] SessionId @@ fs/cifs/smb2pdu.c:1587:27: sparse: expected unsigned long long [usertype] Suid fs/cifs/smb2pdu.c:1587:27: sparse: got restricted __le64 [usertype] SessionId fs/cifs/smb2pdu.c:1526:27: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] Suid @@ got restricted __le64 [usertype] SessionId @@ fs/cifs/smb2pdu.c:1526:27: sparse: expected unsigned long long [usertype] Suid fs/cifs/smb2pdu.c:1526:27: sparse: got restricted __le64 [usertype] SessionId fs/cifs/smb2pdu.c:1718:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le64 [usertype] SessionId @@ got unsigned long long [usertype] Suid @@ fs/cifs/smb2pdu.c:1718:28: sparse: expected restricted __le64 [usertype] SessionId fs/cifs/smb2pdu.c:1718:28: sparse: got unsigned long long [usertype] Suid >> fs/cifs/smb2pdu.c:1874:19: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] tid @@ got restricted __le32 [usertype] TreeId @@ fs/cifs/smb2pdu.c:1874:19: sparse: expected unsigned int [usertype] tid fs/cifs/smb2pdu.c:1874:19: sparse: got restricted __le32 [usertype] TreeId >> fs/cifs/smb2pdu.c:3967:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le64 [usertype] SessionId @@ got unsigned long long @@ fs/cifs/smb2pdu.c:3967:41: sparse: expected restricted __le64 [usertype] SessionId fs/cifs/smb2pdu.c:3967:41: sparse: got unsigned long long >> fs/cifs/smb2pdu.c:3968:48: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] TreeId @@ got unsigned int @@ fs/cifs/smb2pdu.c:3968:48: sparse: expected restricted __le32 [usertype] TreeId fs/cifs/smb2pdu.c:3968:48: sparse: got unsigned int vim +2448 fs/cifs/smb2maperror.c 2438 2439 int 2440 map_smb2_to_linux_error(char *buf, bool log_err) 2441 { 2442 struct smb2_hdr *shdr = (struct smb2_hdr *)buf; 2443 unsigned int i; 2444 int rc = -EIO; 2445 __le32 smb2err = shdr->Status; 2446 2447 if (smb2err == 0) { > 2448 trace_smb3_cmd_done(shdr->Id.SyncId.TreeId, shdr->SessionId, --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip