[driver-core:kobject-const2 37/38] drivers/bus/sunxi-rsb.c:185:27: error: initialization of 'int (*)(const struct device *, struct kobj_uevent_env *)' from incompatible pointer type 'int (*)(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-const2
head: 71d86d6fecf6d38c7eaf557d6eecce352c550f0d
commit: d1f40fab43b0b8deaf87ea0e17cfeb6a650759dc [37/38] driver core: make struct bus_type.uevent() take a const *
config: arm-defconfig
compiler: arm-linux-gnueabi-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=d1f40fab43b0b8deaf87ea0e17cfeb6a650759dc
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-const2
git checkout d1f40fab43b0b8deaf87ea0e17cfeb6a650759dc
# 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=arm 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:185:27: error: initialization of 'int (*)(const struct device *, struct kobj_uevent_env *)' from incompatible pointer type 'int (*)(struct device *, struct kobj_uevent_env *)' [-Werror=incompatible-pointer-types]
185 | .uevent = sunxi_rsb_device_modalias,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/bus/sunxi-rsb.c:185:27: note: (near initialization for 'sunxi_rsb_bus.uevent')
cc1: some warnings being treated as errors
vim +185 drivers/bus/sunxi-rsb.c
9fbf39840b756f Greg Kroah-Hartman 2022-12-07 179
d787dcdb9c8f41 Chen-Yu Tsai 2015-10-23 180 static struct bus_type sunxi_rsb_bus = {
d787dcdb9c8f41 Chen-Yu Tsai 2015-10-23 181 .name = RSB_CTRL_NAME,
d787dcdb9c8f41 Chen-Yu Tsai 2015-10-23 182 .match = sunxi_rsb_device_match,
d787dcdb9c8f41 Chen-Yu Tsai 2015-10-23 183 .probe = sunxi_rsb_device_probe,
d787dcdb9c8f41 Chen-Yu Tsai 2015-10-23 184 .remove = sunxi_rsb_device_remove,
9fbf39840b756f Greg Kroah-Hartman 2022-12-07 @185 .uevent = sunxi_rsb_device_modalias,
d787dcdb9c8f41 Chen-Yu Tsai 2015-10-23 186 };
d787dcdb9c8f41 Chen-Yu Tsai 2015-10-23 187
:::::: The code at line 185 was first introduced by commit
:::::: 9fbf39840b756f6d3f95884b8527042cfd8ad11d of: device: make of_device_uevent_modalias() take a const device *
:::::: TO: Greg Kroah-Hartman <[email protected]>
:::::: CC: Greg Kroah-Hartman <[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, 256.3 KB) - not displayed