Hi Michael,
First bad commit (maybe != root cause):
tree:
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
linux-5.7.y
head: fb6c7905238010236cf0750b209ce9162222eb97
commit: 4bd6574fa27559657c0e722bc4a0df7c47989a3d [9185/9999]
clocksource/drivers/timer-microchip-pit64b: Select CONFIG_TIMER_OF
config: openrisc-randconfig-s031-20200710 (attached as .config)
compiler: or1k-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.2-37-gc9676a3b-dirty
git checkout 4bd6574fa27559657c0e722bc4a0df7c47989a3d
# 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=openrisc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
drivers/clocksource/timer-of.c:29:46: sparse: sparse: incorrect type in argument 2
(different address spaces) @@ expected void [noderef] <asn:3> * @@ got
struct clock_event_device *clkevt @@
drivers/clocksource/timer-of.c:29:46: sparse: expected void [noderef] <asn:3>
*
drivers/clocksource/timer-of.c:29:46: sparse: got struct clock_event_device
*clkevt
drivers/clocksource/timer-of.c:74:51: sparse: sparse: incorrect type in argument 4
(different address spaces) @@ expected void [noderef] <asn:3> *percpu_dev_id @@
got struct clock_event_device *clkevt @@
drivers/clocksource/timer-of.c:74:51: sparse: expected void [noderef] <asn:3>
*percpu_dev_id
drivers/clocksource/timer-of.c:74:51: sparse: got struct clock_event_device
*clkevt
> drivers/clocksource/timer-of.c:151:24: sparse: sparse: incorrect
type in argument 1 (different address spaces) @@ expected void *addr @@ got void
[noderef] <asn:2> *base @@
drivers/clocksource/timer-of.c:151:24: sparse:
expected void *addr
> drivers/clocksource/timer-of.c:151:24: sparse: got void
[noderef] <asn:2> *base
vim +151 drivers/clocksource/timer-of.c
dc11bae7852952 Daniel Lezcano 2017-06-05 148
5bbf4ad945a9bb Daniel Lezcano 2018-01-08 149 static __init void
timer_of_base_exit(struct of_timer_base *of_base)
dc11bae7852952 Daniel Lezcano 2017-06-05 150 {
dc11bae7852952 Daniel Lezcano 2017-06-05 @151 iounmap(of_base->base);
dc11bae7852952 Daniel Lezcano 2017-06-05 152 }
dc11bae7852952 Daniel Lezcano 2017-06-05 153
:::::: The code at line 151 was first introduced by commit
:::::: dc11bae78529526605c5c45c369c9512fd012093 clocksource/drivers: Add timer-of common
init routine
:::::: TO: Daniel Lezcano <daniel.lezcano(a)linaro.org>
:::::: CC: Daniel Lezcano <daniel.lezcano(a)linaro.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org