Messages in this thread | | | Date | Mon, 18 Jan 2021 03:17:31 +0800 | From | kernel test robot <> | Subject | arch/sh/kernel/cpu/sh2a/setup-sh7201.c:414:9: sparse: sparse: incorrect type in argument 1 (different base types) |
| |
Hi Luc,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0da0a8a0a0e1845f495431c3d8d733d2bbf9e9e5 commit: e5fc436f06eef54ef512ea55a9db8eb9f2e76959 sparse: use static inline for __chk_{user,io}_ptr() date: 5 months ago config: sh-randconfig-s031-20210118 (attached as .config) compiler: sh4-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=e5fc436f06eef54ef512ea55a9db8eb9f2e76959 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout e5fc436f06eef54ef512ea55a9db8eb9f2e76959 # 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=sh
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 >>)" >> arch/sh/kernel/cpu/sh2a/setup-sh7201.c:414:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@ arch/sh/kernel/cpu/sh2a/setup-sh7201.c:414:9: sparse: expected void const volatile [noderef] __iomem *ptr arch/sh/kernel/cpu/sh2a/setup-sh7201.c:414:9: sparse: got unsigned int >> arch/sh/kernel/cpu/sh2a/setup-sh7201.c:414:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@ arch/sh/kernel/cpu/sh2a/setup-sh7201.c:414:9: sparse: expected void const volatile [noderef] __iomem *ptr arch/sh/kernel/cpu/sh2a/setup-sh7201.c:414:9: sparse: got unsigned int -- >> arch/sh/kernel/cpu/sh2a/clock-sh7201.c:27:26: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@ arch/sh/kernel/cpu/sh2a/clock-sh7201.c:27:26: sparse: expected void const volatile [noderef] __iomem *ptr arch/sh/kernel/cpu/sh2a/clock-sh7201.c:27:26: sparse: got unsigned int arch/sh/kernel/cpu/sh2a/clock-sh7201.c:36:20: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@ arch/sh/kernel/cpu/sh2a/clock-sh7201.c:36:20: sparse: expected void const volatile [noderef] __iomem *ptr arch/sh/kernel/cpu/sh2a/clock-sh7201.c:36:20: sparse: got unsigned int arch/sh/kernel/cpu/sh2a/clock-sh7201.c:46:20: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@ arch/sh/kernel/cpu/sh2a/clock-sh7201.c:46:20: sparse: expected void const volatile [noderef] __iomem *ptr arch/sh/kernel/cpu/sh2a/clock-sh7201.c:46:20: sparse: got unsigned int arch/sh/kernel/cpu/sh2a/clock-sh7201.c:56:21: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@ arch/sh/kernel/cpu/sh2a/clock-sh7201.c:56:21: sparse: expected void const volatile [noderef] __iomem *ptr arch/sh/kernel/cpu/sh2a/clock-sh7201.c:56:21: sparse: got unsigned int -- fs/gfs2/file.c:306:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] [usertype] __user *ptr @@ fs/gfs2/file.c:306:13: sparse: expected unsigned int const *__gu_addr fs/gfs2/file.c:306:13: sparse: got unsigned int [noderef] [usertype] __user *ptr >> fs/gfs2/file.c:306:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@ fs/gfs2/file.c:306:13: sparse: expected void const volatile [noderef] __user *ptr fs/gfs2/file.c:306:13: sparse: got unsigned int const *__gu_addr -- fs/udf/file.c:207:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected long const *__gu_addr @@ got long [noderef] __user * @@ fs/udf/file.c:207:21: sparse: expected long const *__gu_addr fs/udf/file.c:207:21: sparse: got long [noderef] __user * >> fs/udf/file.c:207:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got long const *__gu_addr @@ fs/udf/file.c:207:21: sparse: expected void const volatile [noderef] __user *ptr fs/udf/file.c:207:21: sparse: got long const *__gu_addr -- block/bsg.c:336:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *uarg @@ block/bsg.c:336:13: sparse: expected int const *__gu_addr block/bsg.c:336:13: sparse: got int [noderef] __user *uarg >> block/bsg.c:336:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@ block/bsg.c:336:13: sparse: expected void const volatile [noderef] __user *ptr block/bsg.c:336:13: sparse: got int const *__gu_addr -- >> drivers/mmc/host/dw_mmc.c:602:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int * @@ drivers/mmc/host/dw_mmc.c:602:29: sparse: expected void const volatile [noderef] __iomem *ptr drivers/mmc/host/dw_mmc.c:602:29: sparse: got unsigned int * >> drivers/mmc/host/dw_mmc.c:602:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int * @@ drivers/mmc/host/dw_mmc.c:602:29: sparse: expected void const volatile [noderef] __iomem *ptr drivers/mmc/host/dw_mmc.c:602:29: sparse: got unsigned int * drivers/mmc/host/dw_mmc.c:615:25: sparse: sparse: restricted __le32 degrades to integer drivers/mmc/host/dw_mmc.c:615:25: sparse: sparse: restricted __le32 degrades to integer >> drivers/mmc/host/dw_mmc.c:674:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got restricted __le32 * @@ drivers/mmc/host/dw_mmc.c:674:29: sparse: expected void const volatile [noderef] __iomem *ptr drivers/mmc/host/dw_mmc.c:674:29: sparse: got restricted __le32 * drivers/mmc/host/dw_mmc.c:674:29: sparse: sparse: restricted __le32 degrades to integer >> drivers/mmc/host/dw_mmc.c:674:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got restricted __le32 * @@ drivers/mmc/host/dw_mmc.c:674:29: sparse: expected void const volatile [noderef] __iomem *ptr drivers/mmc/host/dw_mmc.c:674:29: sparse: got restricted __le32 * drivers/mmc/host/dw_mmc.c:674:29: sparse: sparse: restricted __le32 degrades to integer -- drivers/scsi/sg.c:415:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@ drivers/scsi/sg.c:415:21: sparse: expected int const *__gu_addr drivers/scsi/sg.c:415:21: sparse: got int [noderef] __user * >> drivers/scsi/sg.c:415:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@ drivers/scsi/sg.c:415:21: sparse: expected void const volatile [noderef] __user *ptr drivers/scsi/sg.c:415:21: sparse: got int const *__gu_addr drivers/scsi/sg.c:419:32: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@ drivers/scsi/sg.c:419:32: sparse: expected int const *__gu_addr drivers/scsi/sg.c:419:32: sparse: got int [noderef] __user * drivers/scsi/sg.c:419:32: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@ drivers/scsi/sg.c:419:32: sparse: expected void const volatile [noderef] __user *ptr drivers/scsi/sg.c:419:32: sparse: got int const *__gu_addr drivers/scsi/sg.c:425:32: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected signed int const *__gu_addr @@ got signed int [noderef] __user * @@ drivers/scsi/sg.c:425:32: sparse: expected signed int const *__gu_addr drivers/scsi/sg.c:425:32: sparse: got signed int [noderef] __user * >> drivers/scsi/sg.c:425:32: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got signed int const *__gu_addr @@ drivers/scsi/sg.c:425:32: sparse: expected void const volatile [noderef] __user *ptr drivers/scsi/sg.c:425:32: sparse: got signed int const *__gu_addr drivers/scsi/sg.c:431:32: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@ drivers/scsi/sg.c:431:32: sparse: expected int const *__gu_addr drivers/scsi/sg.c:431:32: sparse: got int [noderef] __user * drivers/scsi/sg.c:431:32: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@ drivers/scsi/sg.c:431:32: sparse: expected void const volatile [noderef] __user *ptr drivers/scsi/sg.c:431:32: sparse: got int const *__gu_addr drivers/scsi/sg.c:638:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected char const *__gu_addr @@ got char const [noderef] __user *[assigned] buf @@ drivers/scsi/sg.c:638:13: sparse: expected char const *__gu_addr drivers/scsi/sg.c:638:13: sparse: got char const [noderef] __user *[assigned] buf >> drivers/scsi/sg.c:638:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got char const *__gu_addr @@ drivers/scsi/sg.c:638:13: sparse: expected void const volatile [noderef] __user *ptr drivers/scsi/sg.c:638:13: sparse: got char const *__gu_addr drivers/scsi/sg.c:955:26: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *ip @@ drivers/scsi/sg.c:955:26: sparse: expected int const *__gu_addr drivers/scsi/sg.c:955:26: sparse: got int [noderef] __user *ip drivers/scsi/sg.c:955:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@ drivers/scsi/sg.c:955:26: sparse: expected void const volatile [noderef] __user *ptr drivers/scsi/sg.c:955:26: sparse: got int const *__gu_addr drivers/scsi/sg.c:998:26: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *ip @@ drivers/scsi/sg.c:998:26: sparse: expected int const *__gu_addr drivers/scsi/sg.c:998:26: sparse: got int [noderef] __user *ip drivers/scsi/sg.c:998:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@ drivers/scsi/sg.c:998:26: sparse: expected void const volatile [noderef] __user *ptr drivers/scsi/sg.c:998:26: sparse: got int const *__gu_addr drivers/scsi/sg.c:1026:26: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *ip @@ drivers/scsi/sg.c:1026:26: sparse: expected int const *__gu_addr drivers/scsi/sg.c:1026:26: sparse: got int [noderef] __user *ip drivers/scsi/sg.c:1026:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@ drivers/scsi/sg.c:1026:26: sparse: expected void const volatile [noderef] __user *ptr drivers/scsi/sg.c:1026:26: sparse: got int const *__gu_addr drivers/scsi/sg.c:1051:26: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *ip @@ drivers/scsi/sg.c:1051:26: sparse: expected int const *__gu_addr drivers/scsi/sg.c:1051:26: sparse: got int [noderef] __user *ip drivers/scsi/sg.c:1051:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@ drivers/scsi/sg.c:1051:26: sparse: expected void const volatile [noderef] __user *ptr drivers/scsi/sg.c:1051:26: sparse: got int const *__gu_addr drivers/scsi/sg.c:1059:26: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *ip @@ drivers/scsi/sg.c:1059:26: sparse: expected int const *__gu_addr drivers/scsi/sg.c:1059:26: sparse: got int [noderef] __user *ip drivers/scsi/sg.c:1059:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@ drivers/scsi/sg.c:1059:26: sparse: expected void const volatile [noderef] __user *ptr drivers/scsi/sg.c:1059:26: sparse: got int const *__gu_addr drivers/scsi/sg.c:1067:26: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *ip @@ drivers/scsi/sg.c:1067:26: sparse: expected int const *__gu_addr drivers/scsi/sg.c:1067:26: sparse: got int [noderef] __user *ip drivers/scsi/sg.c:1067:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@ drivers/scsi/sg.c:1067:26: sparse: expected void const volatile [noderef] __user *ptr drivers/scsi/sg.c:1067:26: sparse: got int const *__gu_addr drivers/scsi/sg.c:1111:26: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *ip @@ drivers/scsi/sg.c:1111:26: sparse: expected int const *__gu_addr drivers/scsi/sg.c:1111:26: sparse: got int [noderef] __user *ip drivers/scsi/sg.c:1111:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@ drivers/scsi/sg.c:1111:26: sparse: expected void const volatile [noderef] __user *ptr drivers/scsi/sg.c:1111:26: sparse: got int const *__gu_addr -- drivers/watchdog/kempld_wdt.c:349:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *p @@ drivers/watchdog/kempld_wdt.c:349:21: sparse: expected int const *__gu_addr drivers/watchdog/kempld_wdt.c:349:21: sparse: got int [noderef] __user *p >> drivers/watchdog/kempld_wdt.c:349:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@ drivers/watchdog/kempld_wdt.c:349:21: sparse: expected void const volatile [noderef] __user *ptr drivers/watchdog/kempld_wdt.c:349:21: sparse: got int const *__gu_addr -- drivers/watchdog/mv64x60_wdt.c:163:37: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected char const *__gu_addr @@ got char const [noderef] __user * @@ drivers/watchdog/mv64x60_wdt.c:163:37: sparse: expected char const *__gu_addr drivers/watchdog/mv64x60_wdt.c:163:37: sparse: got char const [noderef] __user * >> drivers/watchdog/mv64x60_wdt.c:163:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got char const *__gu_addr @@ drivers/watchdog/mv64x60_wdt.c:163:37: sparse: expected void const volatile [noderef] __user *ptr drivers/watchdog/mv64x60_wdt.c:163:37: sparse: got char const *__gu_addr drivers/watchdog/mv64x60_wdt.c:206:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@ drivers/watchdog/mv64x60_wdt.c:206:21: sparse: expected int const *__gu_addr drivers/watchdog/mv64x60_wdt.c:206:21: sparse: got int [noderef] __user * >> drivers/watchdog/mv64x60_wdt.c:206:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@ drivers/watchdog/mv64x60_wdt.c:206:21: sparse: expected void const volatile [noderef] __user *ptr drivers/watchdog/mv64x60_wdt.c:206:21: sparse: got int const *__gu_addr drivers/watchdog/mv64x60_wdt.c:222:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@ drivers/watchdog/mv64x60_wdt.c:222:21: sparse: expected int const *__gu_addr drivers/watchdog/mv64x60_wdt.c:222:21: sparse: got int [noderef] __user * drivers/watchdog/mv64x60_wdt.c:222:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@ drivers/watchdog/mv64x60_wdt.c:222:21: sparse: expected void const volatile [noderef] __user *ptr drivers/watchdog/mv64x60_wdt.c:222:21: sparse: got int const *__gu_addr
vim +414 arch/sh/kernel/cpu/sh2a/setup-sh7201.c
da107c6ef919b3af Magnus Damm 2009-04-30 410 da107c6ef919b3af Magnus Damm 2009-04-30 411 void __init plat_early_device_setup(void) da107c6ef919b3af Magnus Damm 2009-04-30 412 { da107c6ef919b3af Magnus Damm 2009-04-30 413 /* enable MTU2 clock */ da107c6ef919b3af Magnus Damm 2009-04-30 @414 __raw_writeb(__raw_readb(STBCR3) & ~0x20, STBCR3);
:::::: The code at line 414 was first introduced by commit :::::: da107c6ef919b3afd9c9b405a4f71e03b5725b04 sh: sh2a MTU2 platform data
:::::: TO: Magnus Damm <damm@igel.co.jp> :::::: CC: Paul Mundt <lethal@linux-sh.org>
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org [unhandled content-type:application/gzip] | |