linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* arch/sh/kernel/cpu/sh2a/clock-sh7206.c:26:44: sparse: sparse: incorrect type in argument 1 (different base types)
@ 2020-11-22 19:15 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2020-11-22 19:15 UTC (permalink / raw)
  To: Luc Van Oostenryck; +Cc: kbuild-all, linux-kernel, Miguel Ojeda

[-- Attachment #1: Type: text/plain, Size: 16911 bytes --]

Hi Luc,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   a349e4c659609fd20e4beea89e5c4a4038e33a95
commit: e5fc436f06eef54ef512ea55a9db8eb9f2e76959 sparse: use static inline for __chk_{user,io}_ptr()
date:   3 months ago
config: sh-randconfig-s032-20201123 (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-134-gb59dbdaf-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/clock-sh7206.c:26:44: 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-sh7206.c:26:44: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh2a/clock-sh7206.c:26:44: sparse:     got unsigned int
   arch/sh/kernel/cpu/sh2a/clock-sh7206.c:35: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-sh7206.c:35:20: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh2a/clock-sh7206.c:35:20: sparse:     got unsigned int
   arch/sh/kernel/cpu/sh2a/clock-sh7206.c:45:46: 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-sh7206.c:45:46: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh2a/clock-sh7206.c:45:46: sparse:     got unsigned int
   arch/sh/kernel/cpu/sh2a/clock-sh7206.c:54: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-sh7206.c:54:20: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh2a/clock-sh7206.c:54:20: sparse:     got unsigned int
--
   drivers/net/ppp/ppp_generic.c:925:21: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected int const *__gu_addr @@     got int [noderef] __user *p @@
   drivers/net/ppp/ppp_generic.c:925:21: sparse:     expected int const *__gu_addr
   drivers/net/ppp/ppp_generic.c:925:21: sparse:     got int [noderef] __user *p
>> drivers/net/ppp/ppp_generic.c:925:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got int const *__gu_addr @@
>> drivers/net/ppp/ppp_generic.c:925:21: sparse:     expected void const volatile [noderef] __user *ptr
   drivers/net/ppp/ppp_generic.c:925:21: sparse:     got int const *__gu_addr
   drivers/net/ppp/ppp_generic.c:939:21: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected int const *__gu_addr @@     got int [noderef] __user *p @@
   drivers/net/ppp/ppp_generic.c:939:21: sparse:     expected int const *__gu_addr
   drivers/net/ppp/ppp_generic.c:939:21: sparse:     got int [noderef] __user *p
   drivers/net/ppp/ppp_generic.c:939:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got int const *__gu_addr @@
   drivers/net/ppp/ppp_generic.c:939:21: sparse:     expected void const volatile [noderef] __user *ptr
   drivers/net/ppp/ppp_generic.c:939:21: sparse:     got int const *__gu_addr
   drivers/net/ppp/ppp_generic.c:954:21: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected int const *__gu_addr @@     got int [noderef] __user *p @@
   drivers/net/ppp/ppp_generic.c:954:21: sparse:     expected int const *__gu_addr
   drivers/net/ppp/ppp_generic.c:954:21: sparse:     got int [noderef] __user *p
   drivers/net/ppp/ppp_generic.c:954:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got int const *__gu_addr @@
   drivers/net/ppp/ppp_generic.c:954:21: sparse:     expected void const volatile [noderef] __user *ptr
   drivers/net/ppp/ppp_generic.c:954:21: sparse:     got int const *__gu_addr
   drivers/net/ppp/ppp_generic.c:651:29: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected int const *__gu_addr @@     got int [noderef] __user *p @@
   drivers/net/ppp/ppp_generic.c:651:29: sparse:     expected int const *__gu_addr
   drivers/net/ppp/ppp_generic.c:651:29: sparse:     got int [noderef] __user *p
   drivers/net/ppp/ppp_generic.c:651:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got int const *__gu_addr @@
   drivers/net/ppp/ppp_generic.c:651:29: sparse:     expected void const volatile [noderef] __user *ptr
   drivers/net/ppp/ppp_generic.c:651:29: sparse:     got int const *__gu_addr
   drivers/net/ppp/ppp_generic.c:681:21: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected int const *__gu_addr @@     got int [noderef] __user *p @@
   drivers/net/ppp/ppp_generic.c:681:21: sparse:     expected int const *__gu_addr
   drivers/net/ppp/ppp_generic.c:681:21: sparse:     got int [noderef] __user *p
   drivers/net/ppp/ppp_generic.c:681:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got int const *__gu_addr @@
   drivers/net/ppp/ppp_generic.c:681:21: sparse:     expected void const volatile [noderef] __user *ptr
   drivers/net/ppp/ppp_generic.c:681:21: sparse:     got int const *__gu_addr
   drivers/net/ppp/ppp_generic.c:688:21: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected int const *__gu_addr @@     got int [noderef] __user *p @@
   drivers/net/ppp/ppp_generic.c:688:21: sparse:     expected int const *__gu_addr
   drivers/net/ppp/ppp_generic.c:688:21: sparse:     got int [noderef] __user *p
   drivers/net/ppp/ppp_generic.c:688:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got int const *__gu_addr @@
   drivers/net/ppp/ppp_generic.c:688:21: sparse:     expected void const volatile [noderef] __user *ptr
   drivers/net/ppp/ppp_generic.c:688:21: sparse:     got int const *__gu_addr
   drivers/net/ppp/ppp_generic.c:726:21: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected int const *__gu_addr @@     got int [noderef] __user *p @@
   drivers/net/ppp/ppp_generic.c:726:21: sparse:     expected int const *__gu_addr
   drivers/net/ppp/ppp_generic.c:726:21: sparse:     got int [noderef] __user *p
   drivers/net/ppp/ppp_generic.c:726:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got int const *__gu_addr @@
   drivers/net/ppp/ppp_generic.c:726:21: sparse:     expected void const volatile [noderef] __user *ptr
   drivers/net/ppp/ppp_generic.c:726:21: sparse:     got int const *__gu_addr
   drivers/net/ppp/ppp_generic.c:755:21: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected int const *__gu_addr @@     got int [noderef] __user *p @@
   drivers/net/ppp/ppp_generic.c:755:21: sparse:     expected int const *__gu_addr
   drivers/net/ppp/ppp_generic.c:755:21: sparse:     got int [noderef] __user *p
   drivers/net/ppp/ppp_generic.c:755:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got int const *__gu_addr @@
   drivers/net/ppp/ppp_generic.c:755:21: sparse:     expected void const volatile [noderef] __user *ptr
   drivers/net/ppp/ppp_generic.c:755:21: sparse:     got int const *__gu_addr
   drivers/net/ppp/ppp_generic.c:823:21: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected int const *__gu_addr @@     got int [noderef] __user *p @@
   drivers/net/ppp/ppp_generic.c:823:21: sparse:     expected int const *__gu_addr
   drivers/net/ppp/ppp_generic.c:823:21: sparse:     got int [noderef] __user *p
   drivers/net/ppp/ppp_generic.c:823:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got int const *__gu_addr @@
   drivers/net/ppp/ppp_generic.c:823:21: sparse:     expected void const volatile [noderef] __user *ptr
   drivers/net/ppp/ppp_generic.c:823:21: sparse:     got int const *__gu_addr
--
   drivers/isdn/mISDN/timerdev.c:229:21: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected int const *__gu_addr @@     got int [noderef] __user * @@
   drivers/isdn/mISDN/timerdev.c:229:21: sparse:     expected int const *__gu_addr
   drivers/isdn/mISDN/timerdev.c:229:21: sparse:     got int [noderef] __user *
>> drivers/isdn/mISDN/timerdev.c:229:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got int const *__gu_addr @@
>> drivers/isdn/mISDN/timerdev.c:229:21: sparse:     expected void const volatile [noderef] __user *ptr
   drivers/isdn/mISDN/timerdev.c:229:21: sparse:     got int const *__gu_addr
   drivers/isdn/mISDN/timerdev.c:245:21: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected int const *__gu_addr @@     got int [noderef] __user * @@
   drivers/isdn/mISDN/timerdev.c:245:21: sparse:     expected int const *__gu_addr
   drivers/isdn/mISDN/timerdev.c:245:21: sparse:     got int [noderef] __user *
   drivers/isdn/mISDN/timerdev.c:245:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got int const *__gu_addr @@
   drivers/isdn/mISDN/timerdev.c:245:21: sparse:     expected void const volatile [noderef] __user *ptr
   drivers/isdn/mISDN/timerdev.c:245:21: sparse:     got int const *__gu_addr
--
   drivers/isdn/mISDN/socket.c:319:21: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected int const *__gu_addr @@     got int [noderef] __user * @@
   drivers/isdn/mISDN/socket.c:319:21: sparse:     expected int const *__gu_addr
   drivers/isdn/mISDN/socket.c:319:21: sparse:     got int [noderef] __user *
>> drivers/isdn/mISDN/socket.c:319:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got int const *__gu_addr @@
>> drivers/isdn/mISDN/socket.c:319:21: sparse:     expected void const volatile [noderef] __user *ptr
   drivers/isdn/mISDN/socket.c:319:21: sparse:     got int const *__gu_addr
   drivers/isdn/mISDN/socket.c:333:21: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected int const *__gu_addr @@     got int [noderef] __user * @@
   drivers/isdn/mISDN/socket.c:333:21: sparse:     expected int const *__gu_addr
   drivers/isdn/mISDN/socket.c:333:21: sparse:     got int [noderef] __user *
   drivers/isdn/mISDN/socket.c:333:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got int const *__gu_addr @@
   drivers/isdn/mISDN/socket.c:333:21: sparse:     expected void const volatile [noderef] __user *ptr
   drivers/isdn/mISDN/socket.c:333:21: sparse:     got int const *__gu_addr
   drivers/isdn/mISDN/socket.c:371:21: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected int const *__gu_addr @@     got int [noderef] __user * @@
   drivers/isdn/mISDN/socket.c:371:21: sparse:     expected int const *__gu_addr
   drivers/isdn/mISDN/socket.c:371:21: sparse:     got int [noderef] __user *
   drivers/isdn/mISDN/socket.c:371:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got int const *__gu_addr @@
   drivers/isdn/mISDN/socket.c:371:21: sparse:     expected void const volatile [noderef] __user *ptr
   drivers/isdn/mISDN/socket.c:371:21: sparse:     got int const *__gu_addr
   drivers/isdn/mISDN/socket.c:441:13: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected int const *__gu_addr @@     got int [noderef] __user *optlen @@
   drivers/isdn/mISDN/socket.c:441:13: sparse:     expected int const *__gu_addr
   drivers/isdn/mISDN/socket.c:441:13: sparse:     got int [noderef] __user *optlen
   drivers/isdn/mISDN/socket.c:441:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got int const *__gu_addr @@
   drivers/isdn/mISDN/socket.c:441:13: sparse:     expected void const volatile [noderef] __user *ptr
   drivers/isdn/mISDN/socket.c:441:13: sparse:     got int const *__gu_addr
   drivers/isdn/mISDN/socket.c:654:21: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected int const *__gu_addr @@     got int [noderef] __user * @@
   drivers/isdn/mISDN/socket.c:654:21: sparse:     expected int const *__gu_addr
   drivers/isdn/mISDN/socket.c:654:21: sparse:     got int [noderef] __user *
   drivers/isdn/mISDN/socket.c:654:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got int const *__gu_addr @@
   drivers/isdn/mISDN/socket.c:654:21: sparse:     expected void const volatile [noderef] __user *ptr
   drivers/isdn/mISDN/socket.c:654:21: sparse:     got int const *__gu_addr
--
   net/atm/pppoatm.c:376:24: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected int const *__gu_addr @@     got int [noderef] __user * @@
   net/atm/pppoatm.c:376:24: sparse:     expected int const *__gu_addr
   net/atm/pppoatm.c:376:24: sparse:     got int [noderef] __user *
>> net/atm/pppoatm.c:376:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got int const *__gu_addr @@
>> net/atm/pppoatm.c:376:24: sparse:     expected void const volatile [noderef] __user *ptr
   net/atm/pppoatm.c:376:24: sparse:     got int const *__gu_addr
   net/atm/pppoatm.c:453:21: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected unsigned short const *__gu_addr @@     got unsigned short [noderef] [usertype] __user * @@
   net/atm/pppoatm.c:453:21: sparse:     expected unsigned short const *__gu_addr
   net/atm/pppoatm.c:453:21: sparse:     got unsigned short [noderef] [usertype] __user *
>> net/atm/pppoatm.c:453:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got unsigned short const *__gu_addr @@
   net/atm/pppoatm.c:453:21: sparse:     expected void const volatile [noderef] __user *ptr
   net/atm/pppoatm.c:453:21: sparse:     got unsigned short const *__gu_addr

vim +26 arch/sh/kernel/cpu/sh2a/clock-sh7206.c

9d4436a6fbc8c5e Yoshinori Sato 2006-11-05  23  
9d4436a6fbc8c5e Yoshinori Sato 2006-11-05  24  static void master_clk_init(struct clk *clk)
9d4436a6fbc8c5e Yoshinori Sato 2006-11-05  25  {
16b259203c513ed Paul Mundt     2010-11-01 @26  	clk->rate *= pll2_mult * pll1rate[(__raw_readw(FREQCR) >> 8) & 0x0007];
9d4436a6fbc8c5e Yoshinori Sato 2006-11-05  27  }
9d4436a6fbc8c5e Yoshinori Sato 2006-11-05  28  

:::::: The code at line 26 was first introduced by commit
:::::: 16b259203c513ed28bd31cc9a981e0d3ad517943 sh: migrate SH_CLK_MD to mode pin API.

:::::: TO: Paul Mundt <lethal@linux-sh.org>
:::::: 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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 20222 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* arch/sh/kernel/cpu/sh2a/clock-sh7206.c:26:44: sparse: sparse: incorrect type in argument 1 (different base types)
@ 2021-08-22 18:20 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2021-08-22 18:20 UTC (permalink / raw)
  To: Luc Van Oostenryck; +Cc: kbuild-all, linux-kernel, Miguel Ojeda

[-- Attachment #1: Type: text/plain, Size: 12887 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   9ff50bf2f2ff5fab01cac26d8eed21a89308e6ef
commit: e5fc436f06eef54ef512ea55a9db8eb9f2e76959 sparse: use static inline for __chk_{user,io}_ptr()
date:   12 months ago
config: sh-randconfig-s032-20210820 (attached as .config)
compiler: sh4-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.3-348-gf0e6938b-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-11.2.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/clock-sh7206.c:26:44: 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-sh7206.c:26:44: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh2a/clock-sh7206.c:26:44: sparse:     got unsigned int
   arch/sh/kernel/cpu/sh2a/clock-sh7206.c:35: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-sh7206.c:35:20: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh2a/clock-sh7206.c:35:20: sparse:     got unsigned int
   arch/sh/kernel/cpu/sh2a/clock-sh7206.c:45:46: 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-sh7206.c:45:46: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh2a/clock-sh7206.c:45:46: sparse:     got unsigned int
   arch/sh/kernel/cpu/sh2a/clock-sh7206.c:54: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-sh7206.c:54:20: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh2a/clock-sh7206.c:54:20: sparse:     got unsigned int
--
>> arch/sh/kernel/cpu/sh2a/setup-sh7206.c:284: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-sh7206.c:284:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh2a/setup-sh7206.c:284:9: sparse:     got unsigned int
>> arch/sh/kernel/cpu/sh2a/setup-sh7206.c:284: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-sh7206.c:284:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh2a/setup-sh7206.c:284:9: sparse:     got unsigned int
   arch/sh/kernel/cpu/sh2a/setup-sh7206.c:287: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-sh7206.c:287:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh2a/setup-sh7206.c:287:9: sparse:     got unsigned int
   arch/sh/kernel/cpu/sh2a/setup-sh7206.c:287: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-sh7206.c:287:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh2a/setup-sh7206.c:287:9: sparse:     got unsigned int
--
   arch/sh/boards/mach-se/7206/irq.c:37:15: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned int @@
   arch/sh/boards/mach-se/7206/irq.c:37:15: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/mach-se/7206/irq.c:37:15: sparse:     got unsigned int
   arch/sh/boards/mach-se/7206/irq.c:39:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned int @@
   arch/sh/boards/mach-se/7206/irq.c:39:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/mach-se/7206/irq.c:39:9: sparse:     got unsigned int
>> arch/sh/boards/mach-se/7206/irq.c:41:16: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got int @@
   arch/sh/boards/mach-se/7206/irq.c:41:16: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/mach-se/7206/irq.c:41:16: sparse:     got int
   arch/sh/boards/mach-se/7206/irq.c:42:16: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got int @@
   arch/sh/boards/mach-se/7206/irq.c:42:16: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/mach-se/7206/irq.c:42:16: sparse:     got int
   arch/sh/boards/mach-se/7206/irq.c:56:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got int @@
   arch/sh/boards/mach-se/7206/irq.c:56:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/mach-se/7206/irq.c:56:9: sparse:     got int
   arch/sh/boards/mach-se/7206/irq.c:57:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got int @@
   arch/sh/boards/mach-se/7206/irq.c:57:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/mach-se/7206/irq.c:57:9: sparse:     got int
   arch/sh/boards/mach-se/7206/irq.c:68:15: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned int @@
   arch/sh/boards/mach-se/7206/irq.c:68:15: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/mach-se/7206/irq.c:68:15: sparse:     got unsigned int
   arch/sh/boards/mach-se/7206/irq.c:70:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned int @@
   arch/sh/boards/mach-se/7206/irq.c:70:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/mach-se/7206/irq.c:70:9: sparse:     got unsigned int
   arch/sh/boards/mach-se/7206/irq.c:73:16: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got int @@
   arch/sh/boards/mach-se/7206/irq.c:73:16: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/mach-se/7206/irq.c:73:16: sparse:     got int
   arch/sh/boards/mach-se/7206/irq.c:74:16: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got int @@
   arch/sh/boards/mach-se/7206/irq.c:74:16: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/mach-se/7206/irq.c:74:16: sparse:     got int
   arch/sh/boards/mach-se/7206/irq.c:88:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got int @@
   arch/sh/boards/mach-se/7206/irq.c:88:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/mach-se/7206/irq.c:88:9: sparse:     got int
   arch/sh/boards/mach-se/7206/irq.c:89:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got int @@
   arch/sh/boards/mach-se/7206/irq.c:89:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/mach-se/7206/irq.c:89:9: sparse:     got int
   arch/sh/boards/mach-se/7206/irq.c:100:16: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got int @@
   arch/sh/boards/mach-se/7206/irq.c:100:16: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/mach-se/7206/irq.c:100:16: sparse:     got int
   arch/sh/boards/mach-se/7206/irq.c:101:16: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got int @@
   arch/sh/boards/mach-se/7206/irq.c:101:16: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/mach-se/7206/irq.c:101:16: sparse:     got int
   arch/sh/boards/mach-se/7206/irq.c:115:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got int @@
   arch/sh/boards/mach-se/7206/irq.c:115:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/mach-se/7206/irq.c:115:9: sparse:     got int
   arch/sh/boards/mach-se/7206/irq.c:116:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got int @@
   arch/sh/boards/mach-se/7206/irq.c:116:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/mach-se/7206/irq.c:116:9: sparse:     got int
   arch/sh/boards/mach-se/7206/irq.c:143:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned int @@
   arch/sh/boards/mach-se/7206/irq.c:143:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/mach-se/7206/irq.c:143:9: sparse:     got unsigned int
   arch/sh/boards/mach-se/7206/irq.c:143:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned int @@
   arch/sh/boards/mach-se/7206/irq.c:143:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/mach-se/7206/irq.c:143:9: sparse:     got unsigned int
   arch/sh/boards/mach-se/7206/irq.c:146:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got int @@
   arch/sh/boards/mach-se/7206/irq.c:146:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/mach-se/7206/irq.c:146:9: sparse:     got int
   arch/sh/boards/mach-se/7206/irq.c:147:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got int @@
   arch/sh/boards/mach-se/7206/irq.c:147:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/mach-se/7206/irq.c:147:9: sparse:     got int
   arch/sh/boards/mach-se/7206/irq.c:150:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got int @@
   arch/sh/boards/mach-se/7206/irq.c:150:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/mach-se/7206/irq.c:150:9: sparse:     got int

vim +26 arch/sh/kernel/cpu/sh2a/clock-sh7206.c

9d4436a6fbc8c5 Yoshinori Sato 2006-11-05  23  
9d4436a6fbc8c5 Yoshinori Sato 2006-11-05  24  static void master_clk_init(struct clk *clk)
9d4436a6fbc8c5 Yoshinori Sato 2006-11-05  25  {
16b259203c513e Paul Mundt     2010-11-01 @26  	clk->rate *= pll2_mult * pll1rate[(__raw_readw(FREQCR) >> 8) & 0x0007];
9d4436a6fbc8c5 Yoshinori Sato 2006-11-05  27  }
9d4436a6fbc8c5 Yoshinori Sato 2006-11-05  28  

:::::: The code at line 26 was first introduced by commit
:::::: 16b259203c513ed28bd31cc9a981e0d3ad517943 sh: migrate SH_CLK_MD to mode pin API.

:::::: TO: Paul Mundt <lethal@linux-sh.org>
:::::: 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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 34247 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* arch/sh/kernel/cpu/sh2a/clock-sh7206.c:26:44: sparse: sparse: incorrect type in argument 1 (different base types)
@ 2021-02-13  8:29 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2021-02-13  8:29 UTC (permalink / raw)
  To: Luc Van Oostenryck; +Cc: kbuild-all, linux-kernel, Miguel Ojeda

[-- Attachment #1: Type: text/plain, Size: 6495 bytes --]

Hi Luc,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   dcc0b49040c70ad827a7f3d58a21b01fdb14e749
commit: e5fc436f06eef54ef512ea55a9db8eb9f2e76959 sparse: use static inline for __chk_{user,io}_ptr()
date:   6 months ago
config: sh-randconfig-s031-20210213 (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-215-g0fb77bb6-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/clock-sh7206.c:26:44: 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-sh7206.c:26:44: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh2a/clock-sh7206.c:26:44: sparse:     got unsigned int
   arch/sh/kernel/cpu/sh2a/clock-sh7206.c:35: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-sh7206.c:35:20: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh2a/clock-sh7206.c:35:20: sparse:     got unsigned int
   arch/sh/kernel/cpu/sh2a/clock-sh7206.c:45:46: 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-sh7206.c:45:46: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh2a/clock-sh7206.c:45:46: sparse:     got unsigned int
   arch/sh/kernel/cpu/sh2a/clock-sh7206.c:54: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-sh7206.c:54:20: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh2a/clock-sh7206.c:54:20: sparse:     got unsigned int
--
   fs/cifs/cifs_debug.c:770:14: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected char const *__gu_addr @@     got char const [noderef] __user *buffer @@
   fs/cifs/cifs_debug.c:770:14: sparse:     expected char const *__gu_addr
   fs/cifs/cifs_debug.c:770:14: sparse:     got char const [noderef] __user *buffer
>> fs/cifs/cifs_debug.c:770:14: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got char const *__gu_addr @@
   fs/cifs/cifs_debug.c:770:14: sparse:     expected void const volatile [noderef] __user *ptr
   fs/cifs/cifs_debug.c:770:14: sparse:     got char const *__gu_addr
--
   fs/cifs/ioctl.c:214:29: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected int const *__gu_addr @@     got int [noderef] __user * @@
   fs/cifs/ioctl.c:214:29: sparse:     expected int const *__gu_addr
   fs/cifs/ioctl.c:214:29: sparse:     got int [noderef] __user *
>> fs/cifs/ioctl.c:214:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got int const *__gu_addr @@
   fs/cifs/ioctl.c:214:29: sparse:     expected void const volatile [noderef] __user *ptr
   fs/cifs/ioctl.c:214:29: sparse:     got int const *__gu_addr
--
   fs/cifs/dfs_cache.c:195:14: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected char const *__gu_addr @@     got char const [noderef] __user *buffer @@
   fs/cifs/dfs_cache.c:195:14: sparse:     expected char const *__gu_addr
   fs/cifs/dfs_cache.c:195:14: sparse:     got char const [noderef] __user *buffer
>> fs/cifs/dfs_cache.c:195:14: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got char const *__gu_addr @@
   fs/cifs/dfs_cache.c:195:14: sparse:     expected void const volatile [noderef] __user *ptr
   fs/cifs/dfs_cache.c:195:14: sparse:     got char const *__gu_addr
--
   fs/cifs/smb2ops.c:2049:13: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected unsigned int const *__gu_addr @@     got unsigned int [noderef] __user * @@
   fs/cifs/smb2ops.c:2049:13: sparse:     expected unsigned int const *__gu_addr
   fs/cifs/smb2ops.c:2049:13: sparse:     got unsigned int [noderef] __user *
>> fs/cifs/smb2ops.c:2049: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/cifs/smb2ops.c:2049:13: sparse:     expected void const volatile [noderef] __user *ptr
   fs/cifs/smb2ops.c:2049:13: sparse:     got unsigned int const *__gu_addr

vim +26 arch/sh/kernel/cpu/sh2a/clock-sh7206.c

9d4436a6fbc8c5 Yoshinori Sato 2006-11-05  23  
9d4436a6fbc8c5 Yoshinori Sato 2006-11-05  24  static void master_clk_init(struct clk *clk)
9d4436a6fbc8c5 Yoshinori Sato 2006-11-05  25  {
16b259203c513e Paul Mundt     2010-11-01 @26  	clk->rate *= pll2_mult * pll1rate[(__raw_readw(FREQCR) >> 8) & 0x0007];
9d4436a6fbc8c5 Yoshinori Sato 2006-11-05  27  }
9d4436a6fbc8c5 Yoshinori Sato 2006-11-05  28  

:::::: The code at line 26 was first introduced by commit
:::::: 16b259203c513ed28bd31cc9a981e0d3ad517943 sh: migrate SH_CLK_MD to mode pin API.

:::::: TO: Paul Mundt <lethal@linux-sh.org>
:::::: 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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 27693 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-08-22 18:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-22 19:15 arch/sh/kernel/cpu/sh2a/clock-sh7206.c:26:44: sparse: sparse: incorrect type in argument 1 (different base types) kernel test robot
2021-02-13  8:29 kernel test robot
2021-08-22 18:20 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).