Re: [PATCH 10/10] smb: move client/smb2maperror.c to common/

From: kernel test robot

Date: Thu Dec 04 2025 - 21:36:54 EST


Hi,

kernel test robot noticed the following build warnings:

[auto build test WARNING on linus/master]
[cannot apply to cifs/for-next brauner-vfs/vfs.all v6.18 v6.18-rc7 v6.18-rc6 next-20251203 v6.18 next-20251204]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/chenxiaosong-chenxiaosong-linux-dev/smb-client-reduce-loop-count-in-map_smb2_to_linux_error-by-half/20251204-130530
base: linus/master
patch link: https://lore.kernel.org/r/20251204045818.2590727-11-chenxiaosong.chenxiaosong%40linux.dev
patch subject: [PATCH 10/10] smb: move client/smb2maperror.c to common/
config: i386-randconfig-063-20251205 (https://download.01.org/0day-ci/archive/20251205/202512051006.j5kB1bVW-lkp@xxxxxxxxx/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251205/202512051006.j5kB1bVW-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512051006.j5kB1bVW-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
>> fs/smb/common/smb2maperror.c:2419:14: sparse: sparse: restricted __le32 degrades to integer
fs/smb/common/smb2maperror.c:2419:31: sparse: sparse: restricted __le32 degrades to integer
fs/smb/common/smb2maperror.c:2421:14: sparse: sparse: restricted __le32 degrades to integer
fs/smb/common/smb2maperror.c:2421:31: sparse: sparse: restricted __le32 degrades to integer

vim +2419 fs/smb/common/smb2maperror.c

ddfbefbd393fb1 fs/cifs/smb2maperror.c Steve French 2011-03-15 2411
99d0698b9bf5cf fs/smb/client/smb2maperror.c ChenXiaoSong 2025-12-04 2412 static unsigned int err_map_num = sizeof(smb2_error_map_table) /
99d0698b9bf5cf fs/smb/client/smb2maperror.c ChenXiaoSong 2025-12-04 2413 sizeof(struct status_to_posix_error);
99d0698b9bf5cf fs/smb/client/smb2maperror.c ChenXiaoSong 2025-12-04 2414
99d0698b9bf5cf fs/smb/client/smb2maperror.c ChenXiaoSong 2025-12-04 2415 static int cmp_smb2_status(const void *_a, const void *_b)
99d0698b9bf5cf fs/smb/client/smb2maperror.c ChenXiaoSong 2025-12-04 2416 {
99d0698b9bf5cf fs/smb/client/smb2maperror.c ChenXiaoSong 2025-12-04 2417 const struct status_to_posix_error *a = _a, *b = _b;
99d0698b9bf5cf fs/smb/client/smb2maperror.c ChenXiaoSong 2025-12-04 2418
99d0698b9bf5cf fs/smb/client/smb2maperror.c ChenXiaoSong 2025-12-04 @2419 if (a->smb2_status < b->smb2_status)
99d0698b9bf5cf fs/smb/client/smb2maperror.c ChenXiaoSong 2025-12-04 2420 return -1;
99d0698b9bf5cf fs/smb/client/smb2maperror.c ChenXiaoSong 2025-12-04 2421 if (a->smb2_status > b->smb2_status)
99d0698b9bf5cf fs/smb/client/smb2maperror.c ChenXiaoSong 2025-12-04 2422 return 1;
99d0698b9bf5cf fs/smb/client/smb2maperror.c ChenXiaoSong 2025-12-04 2423 return 0;
99d0698b9bf5cf fs/smb/client/smb2maperror.c ChenXiaoSong 2025-12-04 2424 }
99d0698b9bf5cf fs/smb/client/smb2maperror.c ChenXiaoSong 2025-12-04 2425

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki