lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202108141729.8G4yM4pK-lkp@intel.com>
Date:   Sat, 14 Aug 2021 17:38:38 +0800
From:   kernel test robot <lkp@...el.com>
To:     Dan Williams <dan.j.williams@...el.com>
Cc:     kbuild-all@...ts.01.org,
        Alison Schofield <alison.schofield@...el.com>,
        Vishal Verma <vishal.l.verma@...el.com>,
        Ira Weiny <ira.weiny@...el.com>,
        Ben Widawsky <ben.widawsky@...el.com>,
        Dan Williams <dan.j.williams@...el.com>,
        linux-kernel@...r.kernel.org,
        Jonathan Cameron <Jonathan.Cameron@...wei.com>
Subject: [cxl-cxl:pending 14/38] drivers/nvdimm/nd.h:67:26: sparse: sparse:
 cast to restricted __le32

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@...el.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

Download attachment ".config.gz" of type "application/gzip" (38661 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ