All of lore.kernel.org
 help / color / mirror / Atom feed
* arch/sh/kernel/cpu/sh3/clock-sh7706.c:24:21: sparse: sparse: incorrect type in argument 1 (different base types)
@ 2021-07-30 21:36 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-07-30 21:36 UTC (permalink / raw)
  To: Luc Van Oostenryck; +Cc: kbuild-all, linux-kernel, Miguel Ojeda

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   4669e13cd67f8532be12815ed3d37e775a9bdc16
commit: e5fc436f06eef54ef512ea55a9db8eb9f2e76959 sparse: use static inline for __chk_{user,io}_ptr()
date:   11 months ago
config: sh-randconfig-s031-20210722 (attached as .config)
compiler: sh4-linux-gcc (GCC) 10.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-341-g8af24329-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-10.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/sh3/clock-sh7706.c:24: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/sh3/clock-sh7706.c:24:21: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh3/clock-sh7706.c:24:21: sparse:     got unsigned int
   arch/sh/kernel/cpu/sh3/clock-sh7706.c:36: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/sh3/clock-sh7706.c:36:21: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh3/clock-sh7706.c:36:21: sparse:     got unsigned int
   arch/sh/kernel/cpu/sh3/clock-sh7706.c:48: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/sh3/clock-sh7706.c:48:21: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh3/clock-sh7706.c:48:21: sparse:     got unsigned int
   arch/sh/kernel/cpu/sh3/clock-sh7706.c:60: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/sh3/clock-sh7706.c:60:21: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh3/clock-sh7706.c:60:21: sparse:     got unsigned int

vim +24 arch/sh/kernel/cpu/sh3/clock-sh7706.c

e5723e0eeb2dc16 Paul Mundt 2006-09-27  21  
e5723e0eeb2dc16 Paul Mundt 2006-09-27  22  static void master_clk_init(struct clk *clk)
e5723e0eeb2dc16 Paul Mundt 2006-09-27  23  {
9d56dd3b083a3be Paul Mundt 2010-01-26 @24  	int frqcr = __raw_readw(FRQCR);
e5723e0eeb2dc16 Paul Mundt 2006-09-27  25  	int idx = ((frqcr & 0x2000) >> 11) | (frqcr & 0x0003);
e5723e0eeb2dc16 Paul Mundt 2006-09-27  26  
e5723e0eeb2dc16 Paul Mundt 2006-09-27  27  	clk->rate *= pfc_divisors[idx];
e5723e0eeb2dc16 Paul Mundt 2006-09-27  28  }
e5723e0eeb2dc16 Paul Mundt 2006-09-27  29  

:::::: The code at line 24 was first introduced by commit
:::::: 9d56dd3b083a3bec56e9da35ce07baca81030b03 sh: Mass ctrl_in/outX to __raw_read/writeX conversion.

:::::: 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: 25203 bytes --]

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

* arch/sh/kernel/cpu/sh3/clock-sh7706.c:24:21: sparse: sparse: incorrect type in argument 1 (different base types)
@ 2021-07-30 21:36 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-07-30 21:36 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   4669e13cd67f8532be12815ed3d37e775a9bdc16
commit: e5fc436f06eef54ef512ea55a9db8eb9f2e76959 sparse: use static inline for __chk_{user,io}_ptr()
date:   11 months ago
config: sh-randconfig-s031-20210722 (attached as .config)
compiler: sh4-linux-gcc (GCC) 10.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-341-g8af24329-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-10.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/sh3/clock-sh7706.c:24: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/sh3/clock-sh7706.c:24:21: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh3/clock-sh7706.c:24:21: sparse:     got unsigned int
   arch/sh/kernel/cpu/sh3/clock-sh7706.c:36: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/sh3/clock-sh7706.c:36:21: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh3/clock-sh7706.c:36:21: sparse:     got unsigned int
   arch/sh/kernel/cpu/sh3/clock-sh7706.c:48: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/sh3/clock-sh7706.c:48:21: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh3/clock-sh7706.c:48:21: sparse:     got unsigned int
   arch/sh/kernel/cpu/sh3/clock-sh7706.c:60: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/sh3/clock-sh7706.c:60:21: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh3/clock-sh7706.c:60:21: sparse:     got unsigned int

vim +24 arch/sh/kernel/cpu/sh3/clock-sh7706.c

e5723e0eeb2dc16 Paul Mundt 2006-09-27  21  
e5723e0eeb2dc16 Paul Mundt 2006-09-27  22  static void master_clk_init(struct clk *clk)
e5723e0eeb2dc16 Paul Mundt 2006-09-27  23  {
9d56dd3b083a3be Paul Mundt 2010-01-26 @24  	int frqcr = __raw_readw(FRQCR);
e5723e0eeb2dc16 Paul Mundt 2006-09-27  25  	int idx = ((frqcr & 0x2000) >> 11) | (frqcr & 0x0003);
e5723e0eeb2dc16 Paul Mundt 2006-09-27  26  
e5723e0eeb2dc16 Paul Mundt 2006-09-27  27  	clk->rate *= pfc_divisors[idx];
e5723e0eeb2dc16 Paul Mundt 2006-09-27  28  }
e5723e0eeb2dc16 Paul Mundt 2006-09-27  29  

:::::: The code at line 24 was first introduced by commit
:::::: 9d56dd3b083a3bec56e9da35ce07baca81030b03 sh: Mass ctrl_in/outX to __raw_read/writeX conversion.

:::::: 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(a)lists.01.org

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

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

end of thread, other threads:[~2021-07-30 21:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-30 21:36 arch/sh/kernel/cpu/sh3/clock-sh7706.c:24:21: sparse: sparse: incorrect type in argument 1 (different base types) kernel test robot
2021-07-30 21:36 ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.