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: <202006111526.KDq3lAuN%lkp@intel.com>
Date:   Thu, 11 Jun 2020 15:54:29 +0800
From:   kernel test robot <lkp@...el.com>
To:     Mason Yang <masonccyang@...c.com.tw>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Miquel Raynal <miquel.raynal@...tlin.com>
Subject: drivers/mtd/nand/raw/mxic_nand.c:219:9: sparse: sparse: cast removes
 address space '<asn:2>' of expression

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   b29482fde649c72441d5478a4ea2c52c56d97a5e
commit: 738b0ca55f4f6ae1035262c2a2a605d2e9085031 mtd: rawnand: Add Macronix raw NAND controller driver
date:   10 months ago
config: m68k-randconfig-s031-20200611 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.1-250-g42323db3-dirty
        git checkout 738b0ca55f4f6ae1035262c2a2a605d2e9085031
        # save the attached .config to linux build tree
        make W=1 C=1 ARCH=m68k CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

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/mtd/nand/raw/mxic_nand.c:219:9: sparse: sparse: cast removes address space '<asn:2>' of expression
   drivers/mtd/nand/raw/mxic_nand.c:224:9: sparse: sparse: cast removes address space '<asn:2>' of expression
   drivers/mtd/nand/raw/mxic_nand.c:288:15: sparse: sparse: cast removes address space '<asn:2>' of expression
   drivers/mtd/nand/raw/mxic_nand.c:299:9: sparse: sparse: cast removes address space '<asn:2>' of expression
   drivers/mtd/nand/raw/mxic_nand.c:302:9: sparse: sparse: cast removes address space '<asn:2>' of expression
   drivers/mtd/nand/raw/mxic_nand.c:303:9: sparse: sparse: cast removes address space '<asn:2>' of expression
   drivers/mtd/nand/raw/mxic_nand.c:304:9: sparse: sparse: cast removes address space '<asn:2>' of expression
   drivers/mtd/nand/raw/mxic_nand.c:305:9: sparse: sparse: cast removes address space '<asn:2>' of expression
   drivers/mtd/nand/raw/mxic_nand.c:306:9: sparse: sparse: cast removes address space '<asn:2>' of expression
   drivers/mtd/nand/raw/mxic_nand.c:307:9: sparse: sparse: cast removes address space '<asn:2>' of expression
   drivers/mtd/nand/raw/mxic_nand.c:312:9: sparse: sparse: cast removes address space '<asn:2>' of expression
   drivers/mtd/nand/raw/mxic_nand.c:312:9: sparse: sparse: cast removes address space '<asn:2>' of expression
   drivers/mtd/nand/raw/mxic_nand.c:314:9: sparse: sparse: cast removes address space '<asn:2>' of expression
   drivers/mtd/nand/raw/mxic_nand.c:314:9: sparse: sparse: cast removes address space '<asn:2>' of expression
   drivers/mtd/nand/raw/mxic_nand.c:320:9: sparse: sparse: cast removes address space '<asn:2>' of expression
   drivers/mtd/nand/raw/mxic_nand.c:320:9: sparse: sparse: cast removes address space '<asn:2>' of expression
   drivers/mtd/nand/raw/mxic_nand.c:356:23: sparse: sparse: cast removes address space '<asn:2>' of expression
   drivers/mtd/nand/raw/mxic_nand.c:356:23: sparse: sparse: cast removes address space '<asn:2>' of expression
   drivers/mtd/nand/raw/mxic_nand.c:361:17: sparse: sparse: cast removes address space '<asn:2>' of expression
   drivers/mtd/nand/raw/mxic_nand.c:363:23: sparse: sparse: cast removes address space '<asn:2>' of expression
   drivers/mtd/nand/raw/mxic_nand.c:363:23: sparse: sparse: cast removes address space '<asn:2>' of expression
   drivers/mtd/nand/raw/mxic_nand.c:368:23: sparse: sparse: cast removes address space '<asn:2>' of expression
   drivers/mtd/nand/raw/mxic_nand.c:368:23: sparse: sparse: cast removes address space '<asn:2>' of expression
   drivers/mtd/nand/raw/mxic_nand.c:374:24: sparse: sparse: cast removes address space '<asn:2>' of expression
   drivers/mtd/nand/raw/mxic_nand.c:379:21: sparse: sparse: cast removes address space '<asn:2>' of expression
   drivers/mtd/nand/raw/mxic_nand.c:403:25: sparse: sparse: cast removes address space '<asn:2>' of expression
   drivers/mtd/nand/raw/mxic_nand.c:404:25: sparse: sparse: cast removes address space '<asn:2>' of expression
   drivers/mtd/nand/raw/mxic_nand.c:405:25: sparse: sparse: cast removes address space '<asn:2>' of expression
   drivers/mtd/nand/raw/mxic_nand.c:414:25: sparse: sparse: cast removes address space '<asn:2>' of expression
   drivers/mtd/nand/raw/mxic_nand.c:423:25: sparse: sparse: cast removes address space '<asn:2>' of expression
   drivers/mtd/nand/raw/mxic_nand.c:424:25: sparse: sparse: cast removes address space '<asn:2>' of expression
   drivers/mtd/nand/raw/mxic_nand.c:432:25: sparse: sparse: cast removes address space '<asn:2>' of expression
   drivers/mtd/nand/raw/mxic_nand.c:434:25: sparse: sparse: cast removes address space '<asn:2>' of expression
   drivers/mtd/nand/raw/mxic_nand.c:473:17: sparse: sparse: cast removes address space '<asn:2>' of expression

vim +219 drivers/mtd/nand/raw/mxic_nand.c

   216	
   217	static void mxic_nfc_set_input_delay(struct mxic_nand_ctlr *nfc, u8 idly_code)
   218	{
 > 219		writel(IDLY_CODE_VAL(0, idly_code) |
   220		       IDLY_CODE_VAL(1, idly_code) |
   221		       IDLY_CODE_VAL(2, idly_code) |
   222		       IDLY_CODE_VAL(3, idly_code),
   223		       nfc->regs + IDLY_CODE(0));
   224		writel(IDLY_CODE_VAL(4, idly_code) |
   225		       IDLY_CODE_VAL(5, idly_code) |
   226		       IDLY_CODE_VAL(6, idly_code) |
   227		       IDLY_CODE_VAL(7, idly_code),
   228		       nfc->regs + IDLY_CODE(1));
   229	}
   230	

---
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" (22599 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ