linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [cxl-cxl:pending 14/38] drivers/nvdimm/nd.h:67:26: sparse: sparse: cast to restricted __le32
@ 2021-08-14  9:38 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-08-14  9:38 UTC (permalink / raw)
  To: Dan Williams
  Cc: kbuild-all, Alison Schofield, Vishal Verma, Ira Weiny,
	Ben Widawsky, Dan Williams, linux-kernel, Jonathan Cameron

[-- Attachment #1: Type: text/plain, Size: 2335 bytes --]

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 <lkp@intel.com>


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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 38661 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-14  9:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-14  9:38 [cxl-cxl:pending 14/38] drivers/nvdimm/nd.h:67:26: sparse: sparse: cast to restricted __le32 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).