linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* arch/sh/kernel/cpu/sh3/serial-sh7720.c:16:32: sparse: sparse: incorrect type in argument 1 (different base types)
@ 2021-07-14  6:54 kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2021-07-14  6:54 UTC (permalink / raw)
  To: Luc Van Oostenryck; +Cc: kbuild-all, linux-kernel, Miguel Ojeda

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   40226a3d96ef8ab8980f032681c8bfd46d63874e
commit: e5fc436f06eef54ef512ea55a9db8eb9f2e76959 sparse: use static inline for __chk_{user,io}_ptr()
date:   11 months ago
config: sh-randconfig-s032-20210713 (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-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-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/sh3/serial-sh7720.c:16:32: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:16:32: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:16:32: sparse:     got unsigned long
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:17:25: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:17:25: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:17:25: sparse:     got unsigned long
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:20:32: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:20:32: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:20:32: sparse:     got unsigned long
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:21:25: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:21:25: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:21:25: sparse:     got unsigned long
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:26:32: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:26:32: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:26:32: sparse:     got unsigned long
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:27:25: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:27:25: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:27:25: sparse:     got unsigned long
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:30:32: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:30:32: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:30:32: sparse:     got unsigned long
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:31:25: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:31:25: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:31:25: sparse:     got unsigned long
--
>> arch/sh/drivers/dma/dma-sh.c:111:16: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/drivers/dma/dma-sh.c:111:16: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/drivers/dma/dma-sh.c:111:16: sparse:     got unsigned long
   arch/sh/drivers/dma/dma-sh.c:117:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/drivers/dma/dma-sh.c:117:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/drivers/dma/dma-sh.c:117:9: sparse:     got unsigned long
   arch/sh/drivers/dma/dma-sh.c:151:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/drivers/dma/dma-sh.c:151:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/drivers/dma/dma-sh.c:151:9: sparse:     got unsigned long
   arch/sh/drivers/dma/dma-sh.c:162:16: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/drivers/dma/dma-sh.c:162:16: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/drivers/dma/dma-sh.c:162:16: sparse:     got unsigned long
   arch/sh/drivers/dma/dma-sh.c:168:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/drivers/dma/dma-sh.c:168:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/drivers/dma/dma-sh.c:168:9: sparse:     got unsigned long
   arch/sh/drivers/dma/dma-sh.c:186:16: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/drivers/dma/dma-sh.c:186:16: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/drivers/dma/dma-sh.c:186:16: sparse:     got unsigned long
   arch/sh/drivers/dma/dma-sh.c:188:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/drivers/dma/dma-sh.c:188:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/drivers/dma/dma-sh.c:188:9: sparse:     got unsigned long
   arch/sh/drivers/dma/dma-sh.c:219:17: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/drivers/dma/dma-sh.c:219:17: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/drivers/dma/dma-sh.c:219:17: sparse:     got unsigned long
   arch/sh/drivers/dma/dma-sh.c:222:17: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/drivers/dma/dma-sh.c:222:17: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/drivers/dma/dma-sh.c:222:17: sparse:     got unsigned long
   arch/sh/drivers/dma/dma-sh.c:224:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/drivers/dma/dma-sh.c:224:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/drivers/dma/dma-sh.c:224:9: sparse:     got unsigned long
   arch/sh/drivers/dma/dma-sh.c:234:15: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/drivers/dma/dma-sh.c:234:15: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/drivers/dma/dma-sh.c:234:15: sparse:     got unsigned long
   arch/sh/drivers/dma/dma-sh.c:237:16: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/drivers/dma/dma-sh.c:237:16: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/drivers/dma/dma-sh.c:237:16: sparse:     got unsigned long
   arch/sh/drivers/dma/dma-sh.c:93:20: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/drivers/dma/dma-sh.c:93:20: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/drivers/dma/dma-sh.c:93:20: sparse:     got unsigned long
   arch/sh/drivers/dma/dma-sh.c:93:20: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/drivers/dma/dma-sh.c:93:20: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/drivers/dma/dma-sh.c:93:20: sparse:     got unsigned long
   arch/sh/drivers/dma/dma-sh.c:262:31: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/drivers/dma/dma-sh.c:262:31: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/drivers/dma/dma-sh.c:262:31: sparse:     got unsigned long
   arch/sh/drivers/dma/dma-sh.c:266:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/drivers/dma/dma-sh.c:266:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/drivers/dma/dma-sh.c:266:9: sparse:     got unsigned long
   arch/sh/drivers/dma/dma-sh.c:269:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/drivers/dma/dma-sh.c:269:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/drivers/dma/dma-sh.c:269:9: sparse:     got unsigned long
   arch/sh/drivers/dma/dma-sh.c:272:14: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/drivers/dma/dma-sh.c:272:14: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/drivers/dma/dma-sh.c:272:14: sparse:     got unsigned long

vim +16 arch/sh/kernel/cpu/sh3/serial-sh7720.c

61a6976bf19a6c Paul Mundt 2011-06-14   7  
61a6976bf19a6c Paul Mundt 2011-06-14   8  static void sh7720_sci_init_pins(struct uart_port *port, unsigned int cflag)
61a6976bf19a6c Paul Mundt 2011-06-14   9  {
61a6976bf19a6c Paul Mundt 2011-06-14  10  	unsigned short data;
61a6976bf19a6c Paul Mundt 2011-06-14  11  
61a6976bf19a6c Paul Mundt 2011-06-14  12  	if (cflag & CRTSCTS) {
61a6976bf19a6c Paul Mundt 2011-06-14  13  		/* enable RTS/CTS */
61a6976bf19a6c Paul Mundt 2011-06-14  14  		if (port->mapbase == 0xa4430000) { /* SCIF0 */
61a6976bf19a6c Paul Mundt 2011-06-14  15  			/* Clear PTCR bit 9-2; enable all scif pins but sck */
61a6976bf19a6c Paul Mundt 2011-06-14 @16  			data = __raw_readw(PORT_PTCR);
61a6976bf19a6c Paul Mundt 2011-06-14  17  			__raw_writew((data & 0xfc03), PORT_PTCR);
61a6976bf19a6c Paul Mundt 2011-06-14  18  		} else if (port->mapbase == 0xa4438000) { /* SCIF1 */
61a6976bf19a6c Paul Mundt 2011-06-14  19  			/* Clear PVCR bit 9-2 */
61a6976bf19a6c Paul Mundt 2011-06-14  20  			data = __raw_readw(PORT_PVCR);
61a6976bf19a6c Paul Mundt 2011-06-14  21  			__raw_writew((data & 0xfc03), PORT_PVCR);
61a6976bf19a6c Paul Mundt 2011-06-14  22  		}
61a6976bf19a6c Paul Mundt 2011-06-14  23  	} else {
61a6976bf19a6c Paul Mundt 2011-06-14  24  		if (port->mapbase == 0xa4430000) { /* SCIF0 */
61a6976bf19a6c Paul Mundt 2011-06-14  25  			/* Clear PTCR bit 5-2; enable only tx and rx  */
61a6976bf19a6c Paul Mundt 2011-06-14  26  			data = __raw_readw(PORT_PTCR);
61a6976bf19a6c Paul Mundt 2011-06-14  27  			__raw_writew((data & 0xffc3), PORT_PTCR);
61a6976bf19a6c Paul Mundt 2011-06-14  28  		} else if (port->mapbase == 0xa4438000) { /* SCIF1 */
61a6976bf19a6c Paul Mundt 2011-06-14  29  			/* Clear PVCR bit 5-2 */
61a6976bf19a6c Paul Mundt 2011-06-14  30  			data = __raw_readw(PORT_PVCR);
61a6976bf19a6c Paul Mundt 2011-06-14  31  			__raw_writew((data & 0xffc3), PORT_PVCR);
61a6976bf19a6c Paul Mundt 2011-06-14  32  		}
61a6976bf19a6c Paul Mundt 2011-06-14  33  	}
61a6976bf19a6c Paul Mundt 2011-06-14  34  }
61a6976bf19a6c Paul Mundt 2011-06-14  35  

:::::: The code at line 16 was first introduced by commit
:::::: 61a6976bf19a6cf5dfcf37c3536665b316f22d49 serial: sh-sci: Abstract register maps.

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

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

* arch/sh/kernel/cpu/sh3/serial-sh7720.c:16:32: sparse: sparse: incorrect type in argument 1 (different base types)
@ 2021-08-03  9:17 kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2021-08-03  9:17 UTC (permalink / raw)
  To: Luc Van Oostenryck; +Cc: kbuild-all, linux-kernel, Miguel Ojeda

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   c500bee1c5b2f1d59b1081ac879d73268ab0ff17
commit: e5fc436f06eef54ef512ea55a9db8eb9f2e76959 sparse: use static inline for __chk_{user,io}_ptr()
date:   11 months ago
config: sh-randconfig-s032-20210803 (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/serial-sh7720.c:16:32: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:16:32: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:16:32: sparse:     got unsigned long
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:17:25: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:17:25: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:17:25: sparse:     got unsigned long
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:20:32: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:20:32: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:20:32: sparse:     got unsigned long
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:21:25: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:21:25: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:21:25: sparse:     got unsigned long
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:26:32: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:26:32: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:26:32: sparse:     got unsigned long
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:27:25: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:27:25: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:27:25: sparse:     got unsigned long
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:30:32: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:30:32: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:30:32: sparse:     got unsigned long
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:31:25: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:31:25: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:31:25: sparse:     got unsigned long
--
>> arch/sh/kernel/cpu/sh3/clock-sh7710.c:26:31: 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-sh7710.c:26:31: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh3/clock-sh7710.c:26:31: sparse:     got unsigned int
   arch/sh/kernel/cpu/sh3/clock-sh7710.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/sh3/clock-sh7710.c:35:20: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh3/clock-sh7710.c:35:20: sparse:     got unsigned int
   arch/sh/kernel/cpu/sh3/clock-sh7710.c:45: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/sh3/clock-sh7710.c:45:20: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh3/clock-sh7710.c:45:20: sparse:     got unsigned int
   arch/sh/kernel/cpu/sh3/clock-sh7710.c:55: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/sh3/clock-sh7710.c:55:20: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh3/clock-sh7710.c:55:20: sparse:     got unsigned int
--
>> arch/sh/boards/board-magicpanelr2.c:39:13: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/boards/board-magicpanelr2.c:39:13: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/board-magicpanelr2.c:39:13: sparse:     got unsigned long
   arch/sh/boards/board-magicpanelr2.c:44:21: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/boards/board-magicpanelr2.c:44:21: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/board-magicpanelr2.c:44:21: sparse:     got unsigned long
   arch/sh/boards/board-magicpanelr2.c:54:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/boards/board-magicpanelr2.c:54:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/board-magicpanelr2.c:54:9: sparse:     got unsigned long
   arch/sh/boards/board-magicpanelr2.c:54:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/boards/board-magicpanelr2.c:54:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/board-magicpanelr2.c:54:9: sparse:     got unsigned long
   arch/sh/boards/board-magicpanelr2.c:59:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/boards/board-magicpanelr2.c:59:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/board-magicpanelr2.c:59:9: sparse:     got unsigned long
   arch/sh/boards/board-magicpanelr2.c:59:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/boards/board-magicpanelr2.c:59:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/board-magicpanelr2.c:59:9: sparse:     got unsigned long
   arch/sh/boards/board-magicpanelr2.c:66:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/boards/board-magicpanelr2.c:66:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/board-magicpanelr2.c:66:9: sparse:     got unsigned long
   arch/sh/boards/board-magicpanelr2.c:68:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/boards/board-magicpanelr2.c:68:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/board-magicpanelr2.c:68:9: sparse:     got unsigned long
   arch/sh/boards/board-magicpanelr2.c:72:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/boards/board-magicpanelr2.c:72:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/board-magicpanelr2.c:72:9: sparse:     got unsigned long
   arch/sh/boards/board-magicpanelr2.c:74:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/boards/board-magicpanelr2.c:74:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/board-magicpanelr2.c:74:9: sparse:     got unsigned long
   arch/sh/boards/board-magicpanelr2.c:78:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/boards/board-magicpanelr2.c:78:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/board-magicpanelr2.c:78:9: sparse:     got unsigned long
   arch/sh/boards/board-magicpanelr2.c:80:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/boards/board-magicpanelr2.c:80:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/board-magicpanelr2.c:80:9: sparse:     got unsigned long
   arch/sh/boards/board-magicpanelr2.c:84:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/boards/board-magicpanelr2.c:84:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/board-magicpanelr2.c:84:9: sparse:     got unsigned long
   arch/sh/boards/board-magicpanelr2.c:86:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/boards/board-magicpanelr2.c:86:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/board-magicpanelr2.c:86:9: sparse:     got unsigned long
   arch/sh/boards/board-magicpanelr2.c:90:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/boards/board-magicpanelr2.c:90:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/board-magicpanelr2.c:90:9: sparse:     got unsigned long
   arch/sh/boards/board-magicpanelr2.c:92:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/boards/board-magicpanelr2.c:92:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/board-magicpanelr2.c:92:9: sparse:     got unsigned long
   arch/sh/boards/board-magicpanelr2.c:100:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/boards/board-magicpanelr2.c:100:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/board-magicpanelr2.c:100:9: sparse:     got unsigned long
   arch/sh/boards/board-magicpanelr2.c:105:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/boards/board-magicpanelr2.c:105:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/board-magicpanelr2.c:105:9: sparse:     got unsigned long
   arch/sh/boards/board-magicpanelr2.c:110:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/boards/board-magicpanelr2.c:110:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/board-magicpanelr2.c:110:9: sparse:     got unsigned long
   arch/sh/boards/board-magicpanelr2.c:115:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/boards/board-magicpanelr2.c:115:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/board-magicpanelr2.c:115:9: sparse:     got unsigned long
   arch/sh/boards/board-magicpanelr2.c:120:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/boards/board-magicpanelr2.c:120:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/board-magicpanelr2.c:120:9: sparse:     got unsigned long
   arch/sh/boards/board-magicpanelr2.c:125:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/boards/board-magicpanelr2.c:125:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/board-magicpanelr2.c:125:9: sparse:     got unsigned long
   arch/sh/boards/board-magicpanelr2.c:130:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/boards/board-magicpanelr2.c:130:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/board-magicpanelr2.c:130:9: sparse:     got unsigned long
   arch/sh/boards/board-magicpanelr2.c:135:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/boards/board-magicpanelr2.c:135:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/board-magicpanelr2.c:135:9: sparse:     got unsigned long
   arch/sh/boards/board-magicpanelr2.c:140:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/boards/board-magicpanelr2.c:140:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/board-magicpanelr2.c:140:9: sparse:     got unsigned long
   arch/sh/boards/board-magicpanelr2.c:145:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/boards/board-magicpanelr2.c:145:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/board-magicpanelr2.c:145:9: sparse:     got unsigned long
   arch/sh/boards/board-magicpanelr2.c:150:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/boards/board-magicpanelr2.c:150:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/board-magicpanelr2.c:150:9: sparse:     got unsigned long
   arch/sh/boards/board-magicpanelr2.c:156:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/boards/board-magicpanelr2.c:156:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/board-magicpanelr2.c:156:9: sparse:     got unsigned long
   arch/sh/boards/board-magicpanelr2.c:164:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/boards/board-magicpanelr2.c:164:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/board-magicpanelr2.c:164:9: sparse:     got unsigned long
   arch/sh/boards/board-magicpanelr2.c:173:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/boards/board-magicpanelr2.c:173:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/board-magicpanelr2.c:173:9: sparse:     got unsigned long
   arch/sh/boards/board-magicpanelr2.c:174:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/boards/board-magicpanelr2.c:174:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/board-magicpanelr2.c:174:9: sparse:     got unsigned long
   arch/sh/boards/board-magicpanelr2.c:191:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/boards/board-magicpanelr2.c:191:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/board-magicpanelr2.c:191:9: sparse:     got unsigned long
   arch/sh/boards/board-magicpanelr2.c:196:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/boards/board-magicpanelr2.c:196:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/boards/board-magicpanelr2.c:196:9: sparse:     got unsigned long
   arch/sh/boards/board-magicpanelr2.c:201:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/boards/board-magicpanelr2.c:201:9: sparse:     expected void const volatile [noderef] __iomem *ptr

vim +16 arch/sh/kernel/cpu/sh3/serial-sh7720.c

61a6976bf19a6c Paul Mundt 2011-06-14   7  
61a6976bf19a6c Paul Mundt 2011-06-14   8  static void sh7720_sci_init_pins(struct uart_port *port, unsigned int cflag)
61a6976bf19a6c Paul Mundt 2011-06-14   9  {
61a6976bf19a6c Paul Mundt 2011-06-14  10  	unsigned short data;
61a6976bf19a6c Paul Mundt 2011-06-14  11  
61a6976bf19a6c Paul Mundt 2011-06-14  12  	if (cflag & CRTSCTS) {
61a6976bf19a6c Paul Mundt 2011-06-14  13  		/* enable RTS/CTS */
61a6976bf19a6c Paul Mundt 2011-06-14  14  		if (port->mapbase == 0xa4430000) { /* SCIF0 */
61a6976bf19a6c Paul Mundt 2011-06-14  15  			/* Clear PTCR bit 9-2; enable all scif pins but sck */
61a6976bf19a6c Paul Mundt 2011-06-14 @16  			data = __raw_readw(PORT_PTCR);
61a6976bf19a6c Paul Mundt 2011-06-14  17  			__raw_writew((data & 0xfc03), PORT_PTCR);
61a6976bf19a6c Paul Mundt 2011-06-14  18  		} else if (port->mapbase == 0xa4438000) { /* SCIF1 */
61a6976bf19a6c Paul Mundt 2011-06-14  19  			/* Clear PVCR bit 9-2 */
61a6976bf19a6c Paul Mundt 2011-06-14  20  			data = __raw_readw(PORT_PVCR);
61a6976bf19a6c Paul Mundt 2011-06-14  21  			__raw_writew((data & 0xfc03), PORT_PVCR);
61a6976bf19a6c Paul Mundt 2011-06-14  22  		}
61a6976bf19a6c Paul Mundt 2011-06-14  23  	} else {
61a6976bf19a6c Paul Mundt 2011-06-14  24  		if (port->mapbase == 0xa4430000) { /* SCIF0 */
61a6976bf19a6c Paul Mundt 2011-06-14  25  			/* Clear PTCR bit 5-2; enable only tx and rx  */
61a6976bf19a6c Paul Mundt 2011-06-14  26  			data = __raw_readw(PORT_PTCR);
61a6976bf19a6c Paul Mundt 2011-06-14  27  			__raw_writew((data & 0xffc3), PORT_PTCR);
61a6976bf19a6c Paul Mundt 2011-06-14  28  		} else if (port->mapbase == 0xa4438000) { /* SCIF1 */
61a6976bf19a6c Paul Mundt 2011-06-14  29  			/* Clear PVCR bit 5-2 */
61a6976bf19a6c Paul Mundt 2011-06-14  30  			data = __raw_readw(PORT_PVCR);
61a6976bf19a6c Paul Mundt 2011-06-14  31  			__raw_writew((data & 0xffc3), PORT_PVCR);
61a6976bf19a6c Paul Mundt 2011-06-14  32  		}
61a6976bf19a6c Paul Mundt 2011-06-14  33  	}
61a6976bf19a6c Paul Mundt 2011-06-14  34  }
61a6976bf19a6c Paul Mundt 2011-06-14  35  

:::::: The code at line 16 was first introduced by commit
:::::: 61a6976bf19a6cf5dfcf37c3536665b316f22d49 serial: sh-sci: Abstract register maps.

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

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

* arch/sh/kernel/cpu/sh3/serial-sh7720.c:16:32: sparse: sparse: incorrect type in argument 1 (different base types)
@ 2021-05-14 23:56 kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2021-05-14 23:56 UTC (permalink / raw)
  To: Luc Van Oostenryck; +Cc: kbuild-all, linux-kernel, Miguel Ojeda

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   25a1298726e97b9d25379986f5d54d9e62ad6e93
commit: e5fc436f06eef54ef512ea55a9db8eb9f2e76959 sparse: use static inline for __chk_{user,io}_ptr()
date:   9 months ago
config: sh-randconfig-s032-20210515 (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-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-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=sh 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


iwyu warnings: (new ones prefixed by >>)


vim +16 arch/sh/kernel/cpu/sh3/serial-sh7720.c

61a6976bf19a6cf Paul Mundt 2011-06-14   7  
61a6976bf19a6cf Paul Mundt 2011-06-14   8  static void sh7720_sci_init_pins(struct uart_port *port, unsigned int cflag)
61a6976bf19a6cf Paul Mundt 2011-06-14   9  {
61a6976bf19a6cf Paul Mundt 2011-06-14  10  	unsigned short data;
61a6976bf19a6cf Paul Mundt 2011-06-14  11  
61a6976bf19a6cf Paul Mundt 2011-06-14  12  	if (cflag & CRTSCTS) {
61a6976bf19a6cf Paul Mundt 2011-06-14  13  		/* enable RTS/CTS */
61a6976bf19a6cf Paul Mundt 2011-06-14  14  		if (port->mapbase == 0xa4430000) { /* SCIF0 */
61a6976bf19a6cf Paul Mundt 2011-06-14  15  			/* Clear PTCR bit 9-2; enable all scif pins but sck */
61a6976bf19a6cf Paul Mundt 2011-06-14 @16  			data = __raw_readw(PORT_PTCR);
61a6976bf19a6cf Paul Mundt 2011-06-14  17  			__raw_writew((data & 0xfc03), PORT_PTCR);
61a6976bf19a6cf Paul Mundt 2011-06-14  18  		} else if (port->mapbase == 0xa4438000) { /* SCIF1 */
61a6976bf19a6cf Paul Mundt 2011-06-14  19  			/* Clear PVCR bit 9-2 */
61a6976bf19a6cf Paul Mundt 2011-06-14  20  			data = __raw_readw(PORT_PVCR);
61a6976bf19a6cf Paul Mundt 2011-06-14  21  			__raw_writew((data & 0xfc03), PORT_PVCR);
61a6976bf19a6cf Paul Mundt 2011-06-14  22  		}
61a6976bf19a6cf Paul Mundt 2011-06-14  23  	} else {
61a6976bf19a6cf Paul Mundt 2011-06-14  24  		if (port->mapbase == 0xa4430000) { /* SCIF0 */
61a6976bf19a6cf Paul Mundt 2011-06-14  25  			/* Clear PTCR bit 5-2; enable only tx and rx  */
61a6976bf19a6cf Paul Mundt 2011-06-14  26  			data = __raw_readw(PORT_PTCR);
61a6976bf19a6cf Paul Mundt 2011-06-14  27  			__raw_writew((data & 0xffc3), PORT_PTCR);
61a6976bf19a6cf Paul Mundt 2011-06-14  28  		} else if (port->mapbase == 0xa4438000) { /* SCIF1 */
61a6976bf19a6cf Paul Mundt 2011-06-14  29  			/* Clear PVCR bit 5-2 */
61a6976bf19a6cf Paul Mundt 2011-06-14  30  			data = __raw_readw(PORT_PVCR);
61a6976bf19a6cf Paul Mundt 2011-06-14  31  			__raw_writew((data & 0xffc3), PORT_PVCR);
61a6976bf19a6cf Paul Mundt 2011-06-14  32  		}
61a6976bf19a6cf Paul Mundt 2011-06-14  33  	}
61a6976bf19a6cf Paul Mundt 2011-06-14  34  }
61a6976bf19a6cf Paul Mundt 2011-06-14  35  

:::::: The code at line 16 was first introduced by commit
:::::: 61a6976bf19a6cf5dfcf37c3536665b316f22d49 serial: sh-sci: Abstract register maps.

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

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

* arch/sh/kernel/cpu/sh3/serial-sh7720.c:16:32: sparse: sparse: incorrect type in argument 1 (different base types)
@ 2020-11-24 16:55 kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2020-11-24 16:55 UTC (permalink / raw)
  To: Luc Van Oostenryck; +Cc: kbuild-all, linux-kernel, Miguel Ojeda

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

Hi Luc,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   d5beb3140f91b1c8a3d41b14d729aefa4dcc58bc
commit: e5fc436f06eef54ef512ea55a9db8eb9f2e76959 sparse: use static inline for __chk_{user,io}_ptr()
date:   3 months ago
config: sh-randconfig-s032-20201124 (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-151-g540c2c4b-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/sh3/serial-sh7720.c:16:32: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
>> arch/sh/kernel/cpu/sh3/serial-sh7720.c:16:32: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:16:32: sparse:     got unsigned long
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:17:25: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:17:25: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:17:25: sparse:     got unsigned long
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:20:32: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:20:32: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:20:32: sparse:     got unsigned long
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:21:25: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:21:25: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:21:25: sparse:     got unsigned long
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:26:32: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:26:32: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:26:32: sparse:     got unsigned long
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:27:25: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:27:25: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:27:25: sparse:     got unsigned long
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:30:32: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:30:32: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:30:32: sparse:     got unsigned long
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:31:25: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned long @@
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:31:25: sparse:     expected void const volatile [noderef] __iomem *ptr
   arch/sh/kernel/cpu/sh3/serial-sh7720.c:31:25: sparse:     got unsigned long
--
   drivers/gpu/drm/drm_atomic_uapi.c:1341:21: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected unsigned int const *__gu_addr @@     got unsigned int [noderef] [usertype] __user * @@
   drivers/gpu/drm/drm_atomic_uapi.c:1341:21: sparse:     expected unsigned int const *__gu_addr
   drivers/gpu/drm/drm_atomic_uapi.c:1341:21: sparse:     got unsigned int [noderef] [usertype] __user *
>> drivers/gpu/drm/drm_atomic_uapi.c:1341:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got unsigned int const *__gu_addr @@
>> drivers/gpu/drm/drm_atomic_uapi.c:1341:21: sparse:     expected void const volatile [noderef] __user *ptr
   drivers/gpu/drm/drm_atomic_uapi.c:1341:21: sparse:     got unsigned int const *__gu_addr
   drivers/gpu/drm/drm_atomic_uapi.c:1358:21: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected unsigned int const *__gu_addr @@     got unsigned int [noderef] [usertype] __user * @@
   drivers/gpu/drm/drm_atomic_uapi.c:1358:21: sparse:     expected unsigned int const *__gu_addr
   drivers/gpu/drm/drm_atomic_uapi.c:1358:21: sparse:     got unsigned int [noderef] [usertype] __user *
   drivers/gpu/drm/drm_atomic_uapi.c:1358:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got unsigned int const *__gu_addr @@
   drivers/gpu/drm/drm_atomic_uapi.c:1358:21: sparse:     expected void const volatile [noderef] __user *ptr
   drivers/gpu/drm/drm_atomic_uapi.c:1358:21: sparse:     got unsigned int const *__gu_addr
   drivers/gpu/drm/drm_atomic_uapi.c:1371:29: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected unsigned int const *__gu_addr @@     got unsigned int [noderef] [usertype] __user * @@
   drivers/gpu/drm/drm_atomic_uapi.c:1371:29: sparse:     expected unsigned int const *__gu_addr
   drivers/gpu/drm/drm_atomic_uapi.c:1371:29: sparse:     got unsigned int [noderef] [usertype] __user *
   drivers/gpu/drm/drm_atomic_uapi.c:1371:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got unsigned int const *__gu_addr @@
   drivers/gpu/drm/drm_atomic_uapi.c:1371:29: sparse:     expected void const volatile [noderef] __user *ptr
   drivers/gpu/drm/drm_atomic_uapi.c:1371:29: sparse:     got unsigned int const *__gu_addr
--
   net/ax25/af_ax25.c:695:13: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected int const *__gu_addr @@     got int [noderef] __user *optlen @@
   net/ax25/af_ax25.c:695:13: sparse:     expected int const *__gu_addr
   net/ax25/af_ax25.c:695:13: sparse:     got int [noderef] __user *optlen
>> net/ax25/af_ax25.c:695:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got int const *__gu_addr @@
>> net/ax25/af_ax25.c:695:13: sparse:     expected void const volatile [noderef] __user *ptr
   net/ax25/af_ax25.c:695:13: sparse:     got int const *__gu_addr
   net/ax25/af_ax25.c:1742:21: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected long const *__gu_addr @@     got long [noderef] __user * @@
   net/ax25/af_ax25.c:1742:21: sparse:     expected long const *__gu_addr
   net/ax25/af_ax25.c:1742:21: sparse:     got long [noderef] __user *
>> net/ax25/af_ax25.c:1742:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got long const *__gu_addr @@
   net/ax25/af_ax25.c:1742:21: sparse:     expected void const volatile [noderef] __user *ptr
   net/ax25/af_ax25.c:1742:21: sparse:     got long const *__gu_addr
--
   net/netrom/af_netrom.c:359:13: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected int const *__gu_addr @@     got int [noderef] __user *optlen @@
   net/netrom/af_netrom.c:359:13: sparse:     expected int const *__gu_addr
   net/netrom/af_netrom.c:359:13: sparse:     got int [noderef] __user *optlen
>> net/netrom/af_netrom.c:359:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got int const *__gu_addr @@
>> net/netrom/af_netrom.c:359:13: sparse:     expected void const volatile [noderef] __user *ptr
   net/netrom/af_netrom.c:359:13: sparse:     got int const *__gu_addr

vim +16 arch/sh/kernel/cpu/sh3/serial-sh7720.c

61a6976bf19a6cf Paul Mundt 2011-06-14   7  
61a6976bf19a6cf Paul Mundt 2011-06-14   8  static void sh7720_sci_init_pins(struct uart_port *port, unsigned int cflag)
61a6976bf19a6cf Paul Mundt 2011-06-14   9  {
61a6976bf19a6cf Paul Mundt 2011-06-14  10  	unsigned short data;
61a6976bf19a6cf Paul Mundt 2011-06-14  11  
61a6976bf19a6cf Paul Mundt 2011-06-14  12  	if (cflag & CRTSCTS) {
61a6976bf19a6cf Paul Mundt 2011-06-14  13  		/* enable RTS/CTS */
61a6976bf19a6cf Paul Mundt 2011-06-14  14  		if (port->mapbase == 0xa4430000) { /* SCIF0 */
61a6976bf19a6cf Paul Mundt 2011-06-14  15  			/* Clear PTCR bit 9-2; enable all scif pins but sck */
61a6976bf19a6cf Paul Mundt 2011-06-14 @16  			data = __raw_readw(PORT_PTCR);
61a6976bf19a6cf Paul Mundt 2011-06-14  17  			__raw_writew((data & 0xfc03), PORT_PTCR);
61a6976bf19a6cf Paul Mundt 2011-06-14  18  		} else if (port->mapbase == 0xa4438000) { /* SCIF1 */
61a6976bf19a6cf Paul Mundt 2011-06-14  19  			/* Clear PVCR bit 9-2 */
61a6976bf19a6cf Paul Mundt 2011-06-14  20  			data = __raw_readw(PORT_PVCR);
61a6976bf19a6cf Paul Mundt 2011-06-14  21  			__raw_writew((data & 0xfc03), PORT_PVCR);
61a6976bf19a6cf Paul Mundt 2011-06-14  22  		}
61a6976bf19a6cf Paul Mundt 2011-06-14  23  	} else {
61a6976bf19a6cf Paul Mundt 2011-06-14  24  		if (port->mapbase == 0xa4430000) { /* SCIF0 */
61a6976bf19a6cf Paul Mundt 2011-06-14  25  			/* Clear PTCR bit 5-2; enable only tx and rx  */
61a6976bf19a6cf Paul Mundt 2011-06-14  26  			data = __raw_readw(PORT_PTCR);
61a6976bf19a6cf Paul Mundt 2011-06-14  27  			__raw_writew((data & 0xffc3), PORT_PTCR);
61a6976bf19a6cf Paul Mundt 2011-06-14  28  		} else if (port->mapbase == 0xa4438000) { /* SCIF1 */
61a6976bf19a6cf Paul Mundt 2011-06-14  29  			/* Clear PVCR bit 5-2 */
61a6976bf19a6cf Paul Mundt 2011-06-14  30  			data = __raw_readw(PORT_PVCR);
61a6976bf19a6cf Paul Mundt 2011-06-14  31  			__raw_writew((data & 0xffc3), PORT_PVCR);
61a6976bf19a6cf Paul Mundt 2011-06-14  32  		}
61a6976bf19a6cf Paul Mundt 2011-06-14  33  	}
61a6976bf19a6cf Paul Mundt 2011-06-14  34  }
61a6976bf19a6cf Paul Mundt 2011-06-14  35  

:::::: The code at line 16 was first introduced by commit
:::::: 61a6976bf19a6cf5dfcf37c3536665b316f22d49 serial: sh-sci: Abstract register maps.

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

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

end of thread, other threads:[~2021-08-03  9:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-14  6:54 arch/sh/kernel/cpu/sh3/serial-sh7720.c:16:32: sparse: sparse: incorrect type in argument 1 (different base types) kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2021-08-03  9:17 kernel test robot
2021-05-14 23:56 kernel test robot
2020-11-24 16:55 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).