Re: [PATCH V2 03/20] nvdimm/namespace_label: Add namespace label changes as per CXL LSA v2.1
From: kernel test robot
Date: Thu Jul 31 2025 - 09:13:12 EST
Hi Neeraj,
kernel test robot noticed the following build warnings:
[auto build test WARNING on f11a5f89910a7ae970fbce4fdc02d86a8ba8570f]
url: https://github.com/intel-lab-lkp/linux/commits/Neeraj-Kumar/nvdimm-label-Introduce-NDD_CXL_LABEL-flag-to-set-cxl-label-format/20250730-202209
base: f11a5f89910a7ae970fbce4fdc02d86a8ba8570f
patch link: https://lore.kernel.org/r/20250730121209.303202-4-s.neeraj%40samsung.com
patch subject: [PATCH V2 03/20] nvdimm/namespace_label: Add namespace label changes as per CXL LSA v2.1
config: x86_64-randconfig-121-20250731 (https://download.01.org/0day-ci/archive/20250731/202507312016.4ga8UpF5-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.2.0-14+deb12u1) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250731/202507312016.4ga8UpF5-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/202507312016.4ga8UpF5-lkp@xxxxxxxxx/
sparse warnings: (new ones prefixed by >>)
drivers/nvdimm/label.c: note: in included file (through drivers/nvdimm/nd-core.h):
>> drivers/nvdimm/nd.h:314:37: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] align @@ got restricted __le16 [usertype] @@
drivers/nvdimm/nd.h:314:37: sparse: expected restricted __le32 [usertype] align
drivers/nvdimm/nd.h:314:37: sparse: got restricted __le16 [usertype]
vim +314 drivers/nvdimm/nd.h
308
309 static inline void nsl_set_alignment(struct nvdimm_drvdata *ndd,
310 struct nd_namespace_label *ns_label,
311 u32 align)
312 {
313 if (ndd->cxl)
> 314 ns_label->cxl.align = __cpu_to_le16(align);
315 }
316
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki