tree: https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git pending head: fa809cc6feedcd2575b63def7135dfaf066266bb commit: a11d1b4adfef0134a49f00a1b7d2e7e7769a08b0 [14/38] libnvdimm/labels: Introduce label setter helpers config: x86_64-randconfig-s021-20210814 (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.3-348-gf0e6938b-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git/commit/?id=a11d1b4adfef0134a49f00a1b7d2e7e7769a08b0 git remote add cxl-cxl https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git git fetch --no-tags cxl-cxl pending git checkout a11d1b4adfef0134a49f00a1b7d2e7e7769a08b0 # save the attached .config to linux build tree make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) drivers/nvdimm/label.c: note: in included file (through drivers/nvdimm/nd-core.h): >> drivers/nvdimm/nd.h:67:26: sparse: sparse: cast to restricted __le32 >> drivers/nvdimm/nd.h:67:24: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] slot @@ got unsigned int [usertype] @@ drivers/nvdimm/nd.h:67:24: sparse: expected restricted __le32 [usertype] slot drivers/nvdimm/nd.h:67:24: sparse: got unsigned int [usertype] >> drivers/nvdimm/nd.h:67:26: sparse: sparse: cast to restricted __le32 >> drivers/nvdimm/nd.h:67:24: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] slot @@ got unsigned int [usertype] @@ drivers/nvdimm/nd.h:67:24: sparse: expected restricted __le32 [usertype] slot drivers/nvdimm/nd.h:67:24: sparse: got unsigned int [usertype] vim +67 drivers/nvdimm/nd.h 63 64 static inline void nsl_set_slot(struct nvdimm_drvdata *ndd, 65 struct nd_namespace_label *nd_label, u32 slot) 66 { > 67 nd_label->slot = __le32_to_cpu(slot); 68 } 69 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org