tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git kobject-const head: ff8f3cb3d96a18f33eb312fdbcac9a06d9261e66 commit: f62b54d12abbc85d4b7d622fe7286167cc01fa52 [17/18] driver core: make struct bus_type.uevent() take a const * config: mips-randconfig-r016-20221012 compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920) 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 # install mips cross compiling tool for clang build # apt-get install binutils-mips-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/commit/?id=f62b54d12abbc85d4b7d622fe7286167cc01fa52 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 f62b54d12abbc85d4b7d622fe7286167cc01fa52 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/bus/mips_cdmm.c:125:13: error: incompatible function pointer types initializing 'int (*)(const struct device *, struct kobj_uevent_env *)' with an expression of type 'int (struct device *, struct kobj_uevent_env *)' [-Wincompatible-function-pointer-types] .uevent = mips_cdmm_uevent, ^~~~~~~~~~~~~~~~ 1 error generated. vim +125 drivers/bus/mips_cdmm.c 8286ae03308c6f James Hogan 2015-03-25 120 8286ae03308c6f James Hogan 2015-03-25 121 struct bus_type mips_cdmm_bustype = { 8286ae03308c6f James Hogan 2015-03-25 122 .name = "cdmm", 8286ae03308c6f James Hogan 2015-03-25 123 .dev_groups = mips_cdmm_dev_groups, 8286ae03308c6f James Hogan 2015-03-25 124 .match = mips_cdmm_match, 8286ae03308c6f James Hogan 2015-03-25 @125 .uevent = mips_cdmm_uevent, 8286ae03308c6f James Hogan 2015-03-25 126 }; 8286ae03308c6f James Hogan 2015-03-25 127 EXPORT_SYMBOL_GPL(mips_cdmm_bustype); 8286ae03308c6f James Hogan 2015-03-25 128 :::::: The code at line 125 was first introduced by commit :::::: 8286ae03308c6f97f346f9f8cb9174b04969add5 MIPS: Add CDMM bus support :::::: TO: James Hogan :::::: CC: Ralf Baechle -- 0-DAY CI Kernel Test Service https://01.org/lkp