[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202101210900.5qDtLqQg-lkp@intel.com>
Date: Thu, 21 Jan 2021 09:47:08 +0800
From: kernel test robot <lkp@...el.com>
To: Greg Ungerer <gerg@...ux-m68k.org>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Luc Van Oostenryck <luc.vanoostenryck@...il.com>
Subject: drivers/mtd/nand/raw/sh_flctl.c:510:17: sparse: sparse: incorrect
type in assignment (different base types)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 9791581c049c10929e97098374dd1716a81fefcc
commit: 005b73d0dd83c9cb9420a196bea8070cde30ecac m68knommu: __force type casts for raw IO access
date: 6 months ago
config: m68k-randconfig-s031-20210121 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-208-g46a52ca4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=005b73d0dd83c9cb9420a196bea8070cde30ecac
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 005b73d0dd83c9cb9420a196bea8070cde30ecac
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=m68k
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/sh_flctl.c:456:16: sparse: sparse: cast to restricted __le32
drivers/mtd/nand/raw/sh_flctl.c:456:16: sparse: sparse: cast to restricted __le32
drivers/mtd/nand/raw/sh_flctl.c:456:16: sparse: sparse: cast to restricted __le32
drivers/mtd/nand/raw/sh_flctl.c:456:16: sparse: sparse: cast to restricted __le32
drivers/mtd/nand/raw/sh_flctl.c:456:16: sparse: sparse: cast to restricted __le32
drivers/mtd/nand/raw/sh_flctl.c:456:16: sparse: sparse: cast to restricted __le32
drivers/mtd/nand/raw/sh_flctl.c:479:26: sparse: sparse: cast to restricted __be32
drivers/mtd/nand/raw/sh_flctl.c:494:38: sparse: sparse: cast to restricted __be32
>> drivers/mtd/nand/raw/sh_flctl.c:510:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int volatile [usertype] @@ got restricted __be32 [usertype] @@
drivers/mtd/nand/raw/sh_flctl.c:510:17: sparse: expected unsigned int volatile [usertype]
drivers/mtd/nand/raw/sh_flctl.c:510:17: sparse: got restricted __be32 [usertype]
drivers/mtd/nand/raw/sh_flctl.c:523:24: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long @@ got restricted __be32 [usertype] @@
drivers/mtd/nand/raw/sh_flctl.c:523:24: sparse: expected unsigned long
drivers/mtd/nand/raw/sh_flctl.c:523:24: sparse: got restricted __be32 [usertype]
vim +510 drivers/mtd/nand/raw/sh_flctl.c
6028aa01f759a1da drivers/mtd/nand/sh_flctl.c Yoshihiro Shimoda 2008-10-14 500
e8a9d8f31c592eea drivers/mtd/nand/sh_flctl.c Bastian Hecht 2012-10-19 501 static void write_fiforeg(struct sh_flctl *flctl, int rlen,
e8a9d8f31c592eea drivers/mtd/nand/sh_flctl.c Bastian Hecht 2012-10-19 502 unsigned int offset)
6028aa01f759a1da drivers/mtd/nand/sh_flctl.c Yoshihiro Shimoda 2008-10-14 503 {
6028aa01f759a1da drivers/mtd/nand/sh_flctl.c Yoshihiro Shimoda 2008-10-14 504 int i, len_4align;
e8a9d8f31c592eea drivers/mtd/nand/sh_flctl.c Bastian Hecht 2012-10-19 505 unsigned long *buf = (unsigned long *)&flctl->done_buff[offset];
6028aa01f759a1da drivers/mtd/nand/sh_flctl.c Yoshihiro Shimoda 2008-10-14 506
6028aa01f759a1da drivers/mtd/nand/sh_flctl.c Yoshihiro Shimoda 2008-10-14 507 len_4align = (rlen + 3) / 4;
6028aa01f759a1da drivers/mtd/nand/sh_flctl.c Yoshihiro Shimoda 2008-10-14 508 for (i = 0; i < len_4align; i++) {
6028aa01f759a1da drivers/mtd/nand/sh_flctl.c Yoshihiro Shimoda 2008-10-14 509 wait_wfifo_ready(flctl);
e8a9d8f31c592eea drivers/mtd/nand/sh_flctl.c Bastian Hecht 2012-10-19 @510 writel(cpu_to_be32(buf[i]), FLDTFIFO(flctl));
6028aa01f759a1da drivers/mtd/nand/sh_flctl.c Yoshihiro Shimoda 2008-10-14 511 }
6028aa01f759a1da drivers/mtd/nand/sh_flctl.c Yoshihiro Shimoda 2008-10-14 512 }
6028aa01f759a1da drivers/mtd/nand/sh_flctl.c Yoshihiro Shimoda 2008-10-14 513
:::::: The code at line 510 was first introduced by commit
:::::: e8a9d8f31c592eea89f1b0d3fd425e7a96944e88 mtd: sh_flctl: Minor cleanups
:::::: TO: Bastian Hecht <hechtb@...glemail.com>
:::::: CC: Artem Bityutskiy <artem.bityutskiy@...ux.intel.com>
---
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" (29381 bytes)
Powered by blists - more mailing lists