tree:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: d25ee88530253138d0b20d43511ca5acbda4e9f7
commit: 6f6f253efa1346fb0b7206c0361428aadbb22e08 [1564/1734] fortify: Detect struct member
overflows in memset() at compile-time
config: s390-randconfig-s031-20220124
(
https://download.01.org/0day-ci/archive/20220126/202201260223.8zuM2m4N-lk...)
compiler: s390-linux-gcc (GCC) 11.2.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.4-dirty
#
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 6f6f253efa1346fb0b7206c0361428aadbb22e08
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=s390 SHELL=/bin/bash
drivers/mtd/nand/raw/ drivers/video/fbdev/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
> drivers/video/fbdev/sstfb.c:337:9: sparse: sparse: incorrect type
in argument 1 (different address spaces) @@ expected void const * @@ got char
[noderef] __iomem *screen_base @@
drivers/video/fbdev/sstfb.c:337:9: sparse:
expected void const *
drivers/video/fbdev/sstfb.c:337:9: sparse: got char [noderef] __iomem *screen_base
> drivers/video/fbdev/sstfb.c:337:9: sparse: sparse: incorrect type
in argument 1 (different address spaces) @@ expected void const * @@ got char
[noderef] __iomem *screen_base @@
drivers/video/fbdev/sstfb.c:337:9: sparse:
expected void const *
drivers/video/fbdev/sstfb.c:337:9: sparse: got char [noderef] __iomem *screen_base
drivers/video/fbdev/sstfb.c:337:9: sparse: sparse: incorrect type in argument 1
(different address spaces) @@ expected void * @@ got char [noderef] __iomem
*screen_base @@
drivers/video/fbdev/sstfb.c:337:9: sparse: expected void *
drivers/video/fbdev/sstfb.c:337:9: sparse: got char [noderef] __iomem *screen_base
--
> drivers/video/fbdev/i740fb.c:743:9: sparse: sparse: incorrect
type in argument 1 (different address spaces) @@ expected void const * @@ got char
[noderef] __iomem *screen_base @@
drivers/video/fbdev/i740fb.c:743:9: sparse:
expected void const *
drivers/video/fbdev/i740fb.c:743:9: sparse: got char [noderef] __iomem
*screen_base
> drivers/video/fbdev/i740fb.c:743:9: sparse: sparse: incorrect
type in argument 1 (different address spaces) @@ expected void const * @@ got char
[noderef] __iomem *screen_base @@
drivers/video/fbdev/i740fb.c:743:9: sparse:
expected void const *
drivers/video/fbdev/i740fb.c:743:9: sparse: got char [noderef] __iomem
*screen_base
drivers/video/fbdev/i740fb.c:743:9: sparse: sparse: incorrect type in argument 1
(different address spaces) @@ expected void * @@ got char [noderef] __iomem
*screen_base @@
drivers/video/fbdev/i740fb.c:743:9: sparse: expected void *
drivers/video/fbdev/i740fb.c:743:9: sparse: got char [noderef] __iomem
*screen_base
--
> drivers/video/fbdev/tdfxfb.c:1118:17: sparse: sparse: incorrect
type in argument 1 (different address spaces) @@ expected void const * @@ got
unsigned char [noderef] [usertype] __iomem *cursorbase @@
drivers/video/fbdev/tdfxfb.c:1118:17: sparse: expected void const *
drivers/video/fbdev/tdfxfb.c:1118:17: sparse: got unsigned char [noderef]
[usertype] __iomem *cursorbase
> drivers/video/fbdev/tdfxfb.c:1118:17: sparse: sparse: incorrect
type in argument 1 (different address spaces) @@ expected void const * @@ got
unsigned char [noderef] [usertype] __iomem *cursorbase @@
drivers/video/fbdev/tdfxfb.c:1118:17: sparse: expected void const *
drivers/video/fbdev/tdfxfb.c:1118:17: sparse: got unsigned char [noderef]
[usertype] __iomem *cursorbase
drivers/video/fbdev/tdfxfb.c:1118:17: sparse: sparse: incorrect type in argument 1
(different address spaces) @@ expected void * @@ got unsigned char [noderef]
[usertype] __iomem *cursorbase @@
drivers/video/fbdev/tdfxfb.c:1118:17: sparse: expected void *
drivers/video/fbdev/tdfxfb.c:1118:17: sparse: got unsigned char [noderef]
[usertype] __iomem *cursorbase
drivers/video/fbdev/tdfxfb.c:1129:33: sparse: sparse: cast removes address space
'__iomem' of expression
drivers/video/fbdev/tdfxfb.c:1132:33: sparse: sparse: cast removes address space
'__iomem' of expression
--
drivers/mtd/nand/raw/hisi504_nand.c:362:26: sparse: sparse: cast removes address space
'__iomem' of expression
drivers/mtd/nand/raw/hisi504_nand.c:367:26: sparse: sparse: cast removes address space
'__iomem' of expression
> drivers/mtd/nand/raw/hisi504_nand.c:465:17: sparse: sparse:
incorrect type in argument 1 (different address spaces) @@ expected void const * @@
got void [noderef] __iomem *mmio @@
drivers/mtd/nand/raw/hisi504_nand.c:465:17:
sparse: expected void const *
drivers/mtd/nand/raw/hisi504_nand.c:465:17: sparse: got void [noderef] __iomem
*mmio
> drivers/mtd/nand/raw/hisi504_nand.c:465:17: sparse: sparse:
incorrect type in argument 1 (different address spaces) @@ expected void const * @@
got void [noderef] __iomem *mmio @@
drivers/mtd/nand/raw/hisi504_nand.c:465:17:
sparse: expected void const *
drivers/mtd/nand/raw/hisi504_nand.c:465:17: sparse: got void [noderef] __iomem
*mmio
drivers/mtd/nand/raw/hisi504_nand.c:465:17: sparse: sparse: incorrect type in argument
1 (different address spaces) @@ expected void * @@ got void [noderef] __iomem
*mmio @@
drivers/mtd/nand/raw/hisi504_nand.c:465:17: sparse: expected void *
drivers/mtd/nand/raw/hisi504_nand.c:465:17: sparse: got void [noderef] __iomem
*mmio
drivers/mtd/nand/raw/hisi504_nand.c:477:17: sparse: sparse: incorrect type in argument
1 (different address spaces) @@ expected void const * @@ got void [noderef]
__iomem *mmio @@
drivers/mtd/nand/raw/hisi504_nand.c:477:17: sparse: expected void const *
drivers/mtd/nand/raw/hisi504_nand.c:477:17: sparse: got void [noderef] __iomem
*mmio
drivers/mtd/nand/raw/hisi504_nand.c:477:17: sparse: sparse: incorrect type in argument
1 (different address spaces) @@ expected void const * @@ got void [noderef]
__iomem *mmio @@
drivers/mtd/nand/raw/hisi504_nand.c:477:17: sparse: expected void const *
drivers/mtd/nand/raw/hisi504_nand.c:477:17: sparse: got void [noderef] __iomem
*mmio
drivers/mtd/nand/raw/hisi504_nand.c:477:17: sparse: sparse: incorrect type in argument
1 (different address spaces) @@ expected void * @@ got void [noderef] __iomem
*mmio @@
drivers/mtd/nand/raw/hisi504_nand.c:477:17: sparse: expected void *
drivers/mtd/nand/raw/hisi504_nand.c:477:17: sparse: got void [noderef] __iomem
*mmio
drivers/mtd/nand/raw/hisi504_nand.c:603:9: sparse: sparse: incorrect type in argument 1
(different address spaces) @@ expected void const * @@ got void [noderef] __iomem
*mmio @@
drivers/mtd/nand/raw/hisi504_nand.c:603:9: sparse: expected void const *
drivers/mtd/nand/raw/hisi504_nand.c:603:9: sparse: got void [noderef] __iomem
*mmio
drivers/mtd/nand/raw/hisi504_nand.c:603:9: sparse: sparse: incorrect type in argument 1
(different address spaces) @@ expected void const * @@ got void [noderef] __iomem
*mmio @@
drivers/mtd/nand/raw/hisi504_nand.c:603:9: sparse: expected void const *
drivers/mtd/nand/raw/hisi504_nand.c:603:9: sparse: got void [noderef] __iomem
*mmio
drivers/mtd/nand/raw/hisi504_nand.c:603:9: sparse: sparse: incorrect type in argument 1
(different address spaces) @@ expected void * @@ got void [noderef] __iomem *mmio
@@
drivers/mtd/nand/raw/hisi504_nand.c:603:9: sparse: expected void *
drivers/mtd/nand/raw/hisi504_nand.c:603:9: sparse: got void [noderef] __iomem
*mmio
--
> drivers/video/fbdev/aty/mach64_cursor.c:156:13: sparse: sparse:
incorrect type in argument 1 (different address spaces) @@ expected void const * @@
got unsigned char [noderef] [usertype] __iomem *dst @@
drivers/video/fbdev/aty/mach64_cursor.c:156:13: sparse: expected void const *
drivers/video/fbdev/aty/mach64_cursor.c:156:13: sparse: got unsigned char [noderef]
[usertype] __iomem *dst
> drivers/video/fbdev/aty/mach64_cursor.c:156:13: sparse: sparse:
incorrect type in argument 1 (different address spaces) @@ expected void const * @@
got unsigned char [noderef] [usertype] __iomem *dst @@
drivers/video/fbdev/aty/mach64_cursor.c:156:13: sparse: expected void const *
drivers/video/fbdev/aty/mach64_cursor.c:156:13: sparse: got unsigned char [noderef]
[usertype] __iomem *dst
drivers/video/fbdev/aty/mach64_cursor.c:156:13: sparse: sparse: incorrect type in
argument 1 (different address spaces) @@ expected void * @@ got unsigned char
[noderef] [usertype] __iomem *dst @@
drivers/video/fbdev/aty/mach64_cursor.c:156:13: sparse: expected void *
drivers/video/fbdev/aty/mach64_cursor.c:156:13: sparse: got unsigned char [noderef]
[usertype] __iomem *dst
drivers/video/fbdev/aty/mach64_cursor.c:187:25: sparse: sparse: cast removes address
space '__iomem' of expression
drivers/video/fbdev/aty/mach64_cursor.c:188:25: sparse: sparse: cast removes address
space '__iomem' of expression
drivers/video/fbdev/aty/mach64_cursor.c:209:30: sparse: sparse: cast removes address
space '__iomem' of expression
--
> drivers/video/fbdev/kyro/fbdev.c:733:9: sparse: sparse: incorrect
type in argument 1 (different address spaces) @@ expected void const * @@ got char
[noderef] __iomem *screen_base @@
drivers/video/fbdev/kyro/fbdev.c:733:9: sparse:
expected void const *
drivers/video/fbdev/kyro/fbdev.c:733:9: sparse: got char [noderef] __iomem
*screen_base
> drivers/video/fbdev/kyro/fbdev.c:733:9: sparse: sparse: incorrect
type in argument 1 (different address spaces) @@ expected void const * @@ got char
[noderef] __iomem *screen_base @@
drivers/video/fbdev/kyro/fbdev.c:733:9: sparse:
expected void const *
drivers/video/fbdev/kyro/fbdev.c:733:9: sparse: got char [noderef] __iomem
*screen_base
drivers/video/fbdev/kyro/fbdev.c:733:9: sparse: sparse: incorrect type in argument 1
(different address spaces) @@ expected void * @@ got char [noderef] __iomem
*screen_base @@
drivers/video/fbdev/kyro/fbdev.c:733:9: sparse: expected void *
drivers/video/fbdev/kyro/fbdev.c:733:9: sparse: got char [noderef] __iomem
*screen_base
vim +337 drivers/video/fbdev/sstfb.c
^1da177e4c3f415 drivers/video/sstfb.c Linus Torvalds 2005-04-16 330
^1da177e4c3f415 drivers/video/sstfb.c Linus Torvalds 2005-04-16 331 /*
^1da177e4c3f415 drivers/video/sstfb.c Linus Torvalds 2005-04-16 332 * clear lfb screen
^1da177e4c3f415 drivers/video/sstfb.c Linus Torvalds 2005-04-16 333 */
^1da177e4c3f415 drivers/video/sstfb.c Linus Torvalds 2005-04-16 334 static void
sstfb_clear_screen(struct fb_info *info)
^1da177e4c3f415 drivers/video/sstfb.c Linus Torvalds 2005-04-16 335 {
^1da177e4c3f415 drivers/video/sstfb.c Linus Torvalds 2005-04-16 336 /* clear screen */
^1da177e4c3f415 drivers/video/sstfb.c Linus Torvalds 2005-04-16 @337
fb_memset(info->screen_base, 0, info->fix.smem_len);
^1da177e4c3f415 drivers/video/sstfb.c Linus Torvalds 2005-04-16 338 }
^1da177e4c3f415 drivers/video/sstfb.c Linus Torvalds 2005-04-16 339
:::::: The code at line 337 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds(a)ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds(a)ppc970.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org