* arch/sh/include/cpu-sh2/cpu/watchdog.h:44:16: sparse: sparse: incorrect type in argument 1 (different base types)
@ 2023-12-04 14:12 kernel test robot
0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2023-12-04 14:12 UTC (permalink / raw)
To: Luc Van Oostenryck; +Cc: oe-kbuild-all, linux-kernel, Miguel Ojeda
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 33cc938e65a98f1d29d0a18403dbbee050dcad9a
commit: e5fc436f06eef54ef512ea55a9db8eb9f2e76959 sparse: use static inline for __chk_{user,io}_ptr()
date: 3 years, 3 months ago
config: sh-randconfig-r111-20231117 (https://download.01.org/0day-ci/archive/20231204/202312042150.BH4sJFe4-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20231204/202312042150.BH4sJFe4-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312042150.BH4sJFe4-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
drivers/watchdog/shwdt.c: note: in included file:
arch/sh/include/asm/watchdog.h:144:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:144:16: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:144:16: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:156:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:156:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:156:9: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:134:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:134:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:134:9: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:144:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:144:16: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:144:16: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:156:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:156:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:156:9: sparse: got unsigned int
drivers/watchdog/shwdt.c: note: in included file (through arch/sh/include/asm/watchdog.h):
>> arch/sh/include/cpu-sh2/cpu/watchdog.h:44:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/cpu-sh2/cpu/watchdog.h:44:16: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/cpu-sh2/cpu/watchdog.h:44:16: sparse: got unsigned int
arch/sh/include/cpu-sh2/cpu/watchdog.h:62:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/cpu-sh2/cpu/watchdog.h:62:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/cpu-sh2/cpu/watchdog.h:62:9: sparse: got unsigned int
drivers/watchdog/shwdt.c: note: in included file:
arch/sh/include/asm/watchdog.h:144:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:144:16: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:144:16: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:156:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:156:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:156:9: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:144:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:144:16: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:144:16: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:156:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:156:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:156:9: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:134:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:134:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:134:9: sparse: got unsigned int
vim +44 arch/sh/include/cpu-sh2/cpu/watchdog.h
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 33
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 34 /**
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 35 * sh_wdt_read_rstcsr - Read from Reset Control/Status Register
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 36 *
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 37 * Reads back the RSTCSR value.
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 38 */
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 39 static inline __u8 sh_wdt_read_rstcsr(void)
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 40 {
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 41 /*
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 42 * Same read/write brain-damage as for WTCNT here..
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 43 */
9d56dd3b083a3b arch/sh/include/cpu-sh2/cpu/watchdog.h Paul Mundt 2010-01-26 @44 return __raw_readb(RSTCSR_R);
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 45 }
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 46
:::::: The code at line 44 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
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 4+ messages in thread
* arch/sh/include/cpu-sh2/cpu/watchdog.h:44:16: sparse: sparse: incorrect type in argument 1 (different base types)
@ 2023-12-05 0:56 kernel test robot
0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2023-12-05 0:56 UTC (permalink / raw)
To: Luc Van Oostenryck; +Cc: oe-kbuild-all, linux-kernel, Miguel Ojeda
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: bee0e7762ad2c6025b9f5245c040fcc36ef2bde8
commit: e5fc436f06eef54ef512ea55a9db8eb9f2e76959 sparse: use static inline for __chk_{user,io}_ptr()
date: 3 years, 3 months ago
config: sh-randconfig-r111-20231117 (https://download.01.org/0day-ci/archive/20231205/202312050810.GJwZDVwY-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20231205/202312050810.GJwZDVwY-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312050810.GJwZDVwY-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
drivers/watchdog/shwdt.c: note: in included file:
arch/sh/include/asm/watchdog.h:144:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:144:16: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:144:16: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:156:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:156:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:156:9: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:134:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:134:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:134:9: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:144:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:144:16: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:144:16: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:156:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:156:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:156:9: sparse: got unsigned int
drivers/watchdog/shwdt.c: note: in included file (through arch/sh/include/asm/watchdog.h):
>> arch/sh/include/cpu-sh2/cpu/watchdog.h:44:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/cpu-sh2/cpu/watchdog.h:44:16: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/cpu-sh2/cpu/watchdog.h:44:16: sparse: got unsigned int
arch/sh/include/cpu-sh2/cpu/watchdog.h:62:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/cpu-sh2/cpu/watchdog.h:62:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/cpu-sh2/cpu/watchdog.h:62:9: sparse: got unsigned int
drivers/watchdog/shwdt.c: note: in included file:
arch/sh/include/asm/watchdog.h:144:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:144:16: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:144:16: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:156:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:156:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:156:9: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:144:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:144:16: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:144:16: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:156:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:156:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:156:9: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:134:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:134:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:134:9: sparse: got unsigned int
vim +44 arch/sh/include/cpu-sh2/cpu/watchdog.h
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 33
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 34 /**
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 35 * sh_wdt_read_rstcsr - Read from Reset Control/Status Register
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 36 *
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 37 * Reads back the RSTCSR value.
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 38 */
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 39 static inline __u8 sh_wdt_read_rstcsr(void)
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 40 {
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 41 /*
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 42 * Same read/write brain-damage as for WTCNT here..
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 43 */
9d56dd3b083a3b arch/sh/include/cpu-sh2/cpu/watchdog.h Paul Mundt 2010-01-26 @44 return __raw_readb(RSTCSR_R);
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 45 }
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 46
:::::: The code at line 44 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
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 4+ messages in thread
* arch/sh/include/cpu-sh2/cpu/watchdog.h:44:16: sparse: sparse: incorrect type in argument 1 (different base types)
@ 2023-12-11 15:04 kernel test robot
2023-12-13 5:38 ` Liu, Yujie
0 siblings, 1 reply; 4+ messages in thread
From: kernel test robot @ 2023-12-11 15:04 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp
::::::
:::::: Manual check reason: "only include/linux/compiler_types.h file changed"
::::::
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: Linux Memory Management List <linux-mm@kvack.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: a39b6ac3781d46ba18193c9dbb2110f31e9bffe9
commit: 25fd529c34d063d1bef23742f2e8f8341c639dc3 sparse: group the defines by functionality
date: 3 years, 4 months ago
:::::: branch date: 16 hours ago
:::::: commit date: 3 years, 4 months ago
config: sh-randconfig-r111-20231117 (https://download.01.org/0day-ci/archive/20231211/202312112243.5guklOnS-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20231211/202312112243.5guklOnS-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/202312112243.5guklOnS-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
drivers/watchdog/shwdt.c: note: in included file:
arch/sh/include/asm/watchdog.h:145:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:145:16: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:145:16: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:157:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:157:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:157:9: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:135:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:135:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:135:9: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:145:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:145:16: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:145:16: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:157:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:157:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:157:9: sparse: got unsigned int
drivers/watchdog/shwdt.c: note: in included file (through arch/sh/include/asm/watchdog.h):
>> arch/sh/include/cpu-sh2/cpu/watchdog.h:44:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/cpu-sh2/cpu/watchdog.h:44:16: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/cpu-sh2/cpu/watchdog.h:44:16: sparse: got unsigned int
arch/sh/include/cpu-sh2/cpu/watchdog.h:62:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/cpu-sh2/cpu/watchdog.h:62:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/cpu-sh2/cpu/watchdog.h:62:9: sparse: got unsigned int
drivers/watchdog/shwdt.c: note: in included file:
arch/sh/include/asm/watchdog.h:145:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:145:16: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:145:16: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:157:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:157:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:157:9: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:145:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:145:16: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:145:16: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:157:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:157:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:157:9: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:135:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:135:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:135:9: sparse: got unsigned int
vim +44 arch/sh/include/cpu-sh2/cpu/watchdog.h
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 33
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 34 /**
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 35 * sh_wdt_read_rstcsr - Read from Reset Control/Status Register
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 36 *
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 37 * Reads back the RSTCSR value.
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 38 */
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 39 static inline __u8 sh_wdt_read_rstcsr(void)
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 40 {
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 41 /*
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 42 * Same read/write brain-damage as for WTCNT here..
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 43 */
9d56dd3b083a3b arch/sh/include/cpu-sh2/cpu/watchdog.h Paul Mundt 2010-01-26 @44 return __raw_readb(RSTCSR_R);
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 45 }
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 46
:::::: The code at line 44 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
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: arch/sh/include/cpu-sh2/cpu/watchdog.h:44:16: sparse: sparse: incorrect type in argument 1 (different base types)
2023-12-11 15:04 kernel test robot
@ 2023-12-13 5:38 ` Liu, Yujie
0 siblings, 0 replies; 4+ messages in thread
From: Liu, Yujie @ 2023-12-13 5:38 UTC (permalink / raw)
To: lkp, oe-kbuild@lists.linux.dev
not_report
This is a sparse patch, not the root cause of the warning in watchdog driver.
-----Original Message-----
From: lkp <lkp@intel.com>
Sent: Monday, December 11, 2023 23:04
To: oe-kbuild@lists.linux.dev
Cc: lkp <lkp@intel.com>
Subject: arch/sh/include/cpu-sh2/cpu/watchdog.h:44:16: sparse: sparse: incorrect type in argument 1 (different base types)
::::::
:::::: Manual check reason: "only include/linux/compiler_types.h file changed"
::::::
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: Linux Memory Management List <linux-mm@kvack.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: a39b6ac3781d46ba18193c9dbb2110f31e9bffe9
commit: 25fd529c34d063d1bef23742f2e8f8341c639dc3 sparse: group the defines by functionality
date: 3 years, 4 months ago
:::::: branch date: 16 hours ago
:::::: commit date: 3 years, 4 months ago
config: sh-randconfig-r111-20231117 (https://download.01.org/0day-ci/archive/20231211/202312112243.5guklOnS-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20231211/202312112243.5guklOnS-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/202312112243.5guklOnS-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
drivers/watchdog/shwdt.c: note: in included file:
arch/sh/include/asm/watchdog.h:145:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:145:16: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:145:16: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:157:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:157:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:157:9: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:135:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:135:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:135:9: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:145:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:145:16: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:145:16: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:157:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:157:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:157:9: sparse: got unsigned int
drivers/watchdog/shwdt.c: note: in included file (through arch/sh/include/asm/watchdog.h):
>> arch/sh/include/cpu-sh2/cpu/watchdog.h:44:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/cpu-sh2/cpu/watchdog.h:44:16: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/cpu-sh2/cpu/watchdog.h:44:16: sparse: got unsigned int
arch/sh/include/cpu-sh2/cpu/watchdog.h:62:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/cpu-sh2/cpu/watchdog.h:62:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/cpu-sh2/cpu/watchdog.h:62:9: sparse: got unsigned int
drivers/watchdog/shwdt.c: note: in included file:
arch/sh/include/asm/watchdog.h:145:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:145:16: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:145:16: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:157:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:157:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:157:9: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:145:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:145:16: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:145:16: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:157:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:157:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:157:9: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:135:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:135:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:135:9: sparse: got unsigned int
vim +44 arch/sh/include/cpu-sh2/cpu/watchdog.h
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 33
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 34 /**
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 35 * sh_wdt_read_rstcsr - Read from Reset Control/Status Register
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 36 *
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 37 * Reads back the RSTCSR value.
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 38 */
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 39 static inline __u8 sh_wdt_read_rstcsr(void)
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 40 {
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 41 /*
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 42 * Same read/write brain-damage as for WTCNT here..
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 43 */
9d56dd3b083a3b arch/sh/include/cpu-sh2/cpu/watchdog.h Paul Mundt 2010-01-26 @44 return __raw_readb(RSTCSR_R);
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 45 }
^1da177e4c3f41 include/asm-sh/cpu-sh2/watchdog.h Linus Torvalds 2005-04-16 46
:::::: The code at line 44 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
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-12-13 5:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-04 14:12 arch/sh/include/cpu-sh2/cpu/watchdog.h:44:16: sparse: sparse: incorrect type in argument 1 (different base types) kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2023-12-05 0:56 kernel test robot
2023-12-11 15:04 kernel test robot
2023-12-13 5:38 ` Liu, Yujie
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.