tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git kobject-const head: 9f03f357aab62f25e828feb0be7423fff02b2764 commit: 794bcdced821ac77ed4a517b6038baae03d553ea [15/18] driver core: make struct bus_type.uevent() take a const * config: arm64-allyesconfig 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=794bcdced821ac77ed4a517b6038baae03d553ea 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-const git checkout 794bcdced821ac77ed4a517b6038baae03d553ea # 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 If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/firmware/arm_ffa/bus.c:97: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] 97 | .uevent = ffa_device_uevent, | ^~~~~~~~~~~~~~~~~ drivers/firmware/arm_ffa/bus.c:97:27: note: (near initialization for 'ffa_bus_type.uevent') cc1: some warnings being treated as errors vim +97 drivers/firmware/arm_ffa/bus.c e781858488b918 Sudeep Holla 2021-05-21 91 e781858488b918 Sudeep Holla 2021-05-21 92 struct bus_type ffa_bus_type = { e781858488b918 Sudeep Holla 2021-05-21 93 .name = "arm_ffa", e781858488b918 Sudeep Holla 2021-05-21 94 .match = ffa_device_match, e781858488b918 Sudeep Holla 2021-05-21 95 .probe = ffa_device_probe, 244f5d597e1ea5 Sudeep Holla 2021-09-24 96 .remove = ffa_device_remove, e781858488b918 Sudeep Holla 2021-05-21 @97 .uevent = ffa_device_uevent, e781858488b918 Sudeep Holla 2021-05-21 98 .dev_groups = ffa_device_attributes_groups, e781858488b918 Sudeep Holla 2021-05-21 99 }; e781858488b918 Sudeep Holla 2021-05-21 100 EXPORT_SYMBOL_GPL(ffa_bus_type); e781858488b918 Sudeep Holla 2021-05-21 101 :::::: The code at line 97 was first introduced by commit :::::: e781858488b918e30a6ff28e9eab6058b787e3b3 firmware: arm_ffa: Add initial FFA bus support for device enumeration :::::: TO: Sudeep Holla :::::: CC: Sudeep Holla -- 0-DAY CI Kernel Test Service https://01.org/lkp