[driver-core:kobject-const3 26/26] drivers/bus/sunxi-rsb.c:180:27: error: initialization of 'int (*)(struct device *, struct kobj_uevent_env *)' from incompatible pointer type 'int (*)(const struct device *, struct kobj_uevent_env *)'
kernel test robot <[email protected]>
| Newsgroups | org.linuxdriverproject.driverdev-devel,dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git kobject-const3
head: ecf4f5cab214d7ad99becb2114295e9f6528d49c
commit: ecf4f5cab214d7ad99becb2114295e9f6528d49c [26/26] driver core: make struct device_type.uevent() take a const *
config: arm64-randconfig-r021-20221209
compiler: aarch64-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/commit/?id=ecf4f5cab214d7ad99becb2114295e9f6528d49c
git remote add driver-core https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git
git fetch --no-tags driver-core kobject-const3
git checkout ecf4f5cab214d7ad99becb2114295e9f6528d49c
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <[email protected]>
All errors (new ones prefixed by >>):
>> drivers/bus/sunxi-rsb.c:180:27: error: initialization of 'int (*)(struct device *, struct kobj_uevent_env *)' from incompatible pointer type 'int (*)(const struct device *, struct kobj_uevent_env *)' [-Werror=incompatible-pointer-types]
180 | .uevent = of_device_uevent_modalias,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/bus/sunxi-rsb.c:180:27: note: (near initialization for 'sunxi_rsb_bus.uevent')
cc1: some warnings being treated as errors
vim +180 drivers/bus/sunxi-rsb.c
d787dcdb9c8f41 Chen-Yu Tsai 2015-10-23 174
d787dcdb9c8f41 Chen-Yu Tsai 2015-10-23 175 static struct bus_type sunxi_rsb_bus = {
d787dcdb9c8f41 Chen-Yu Tsai 2015-10-23 176 .name = RSB_CTRL_NAME,
d787dcdb9c8f41 Chen-Yu Tsai 2015-10-23 177 .match = sunxi_rsb_device_match,
d787dcdb9c8f41 Chen-Yu Tsai 2015-10-23 178 .probe = sunxi_rsb_device_probe,
d787dcdb9c8f41 Chen-Yu Tsai 2015-10-23 179 .remove = sunxi_rsb_device_remove,
e2bf801ecd4e62 Stefan Brüns 2017-11-27 @180 .uevent = of_device_uevent_modalias,
d787dcdb9c8f41 Chen-Yu Tsai 2015-10-23 181 };
d787dcdb9c8f41 Chen-Yu Tsai 2015-10-23 182
:::::: The code at line 180 was first introduced by commit
:::::: e2bf801ecd4e62222a46d1ba9e57e710171d29c1 sunxi-rsb: Include OF based modalias in device uevent
:::::: TO: Stefan Brüns <[email protected]>
:::::: CC: Maxime Ripard <[email protected]>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
config
(text/plain, 169 KB) - not displayed