tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git kobject-const head: 75b46b72e13aa3b904572a0a9511f14709eac779 commit: c3b2b3fa96a9536c18ab7f2663e62b1a971eab64 [15/18] driver core: make struct bus_type.uevent() take a const * config: s390-defconfig compiler: s390-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=c3b2b3fa96a9536c18ab7f2663e62b1a971eab64 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 c3b2b3fa96a9536c18ab7f2663e62b1a971eab64 # 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=s390 SHELL=/bin/bash drivers/s390/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/s390/cio/scm.c:49:19: 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] 49 | .uevent = scmdev_uevent, | ^~~~~~~~~~~~~ drivers/s390/cio/scm.c:49:19: note: (near initialization for 'scm_bus_type.uevent') cc1: some warnings being treated as errors -- >> drivers/s390/crypto/ap_bus.c:1575:19: 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] 1575 | .uevent = &ap_uevent, | ^ drivers/s390/crypto/ap_bus.c:1575:19: note: (near initialization for 'ap_bus_type.uevent') cc1: some warnings being treated as errors vim +49 drivers/s390/cio/scm.c 1d1c8f78bed5f8 Sebastian Ott 2012-08-28 44 1d1c8f78bed5f8 Sebastian Ott 2012-08-28 45 static struct bus_type scm_bus_type = { 1d1c8f78bed5f8 Sebastian Ott 2012-08-28 46 .name = "scm", 1d1c8f78bed5f8 Sebastian Ott 2012-08-28 47 .probe = scmdev_probe, 1d1c8f78bed5f8 Sebastian Ott 2012-08-28 48 .remove = scmdev_remove, 1d1c8f78bed5f8 Sebastian Ott 2012-08-28 @49 .uevent = scmdev_uevent, 1d1c8f78bed5f8 Sebastian Ott 2012-08-28 50 }; 1d1c8f78bed5f8 Sebastian Ott 2012-08-28 51 :::::: The code at line 49 was first introduced by commit :::::: 1d1c8f78bed5f8e769757525bd9c2dec69f11a44 s390: add scm bus driver :::::: TO: Sebastian Ott :::::: CC: Martin Schwidefsky -- 0-DAY CI Kernel Test Service https://01.org/lkp