[driver-core:kobject-const3 25/25] drivers/bus/sunxi-rsb.c:180:13: error: incompatible function pointer types initializing 'int (*)(struct device *, struct kobj_uevent_env *)' with an expression of type 'int (const struct device *, struct kobj_uevent_env *)'

kernel test robot <[email protected]>
Newsgroups org.linuxdriverproject.driverdev-devel,dev.linux.lists.llvm,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:   d7b8026c4bf8e730b19ebbaa117383804bb01bdb
commit: d7b8026c4bf8e730b19ebbaa117383804bb01bdb [25/25] driver core: make struct device_type.uevent() take a const *
config: arm64-randconfig-r035-20221207
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 6e4cea55f0d1104408b26ac574566a0e4de48036)
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 arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/commit/?id=d7b8026c4bf8e730b19ebbaa117383804bb01bdb
        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 d7b8026c4bf8e730b19ebbaa117383804bb01bdb
        # 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=arm64 SHELL=/bin/bash drivers/bus/

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:13: error: incompatible function pointer types initializing 'int (*)(struct device *, struct kobj_uevent_env *)' with an expression of type 'int (const struct device *, struct kobj_uevent_env *)' [-Wincompatible-function-pointer-types]
           .uevent         = of_device_uevent_modalias,
                             ^~~~~~~~~~~~~~~~~~~~~~~~~
   1 error generated.


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, 200.5 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.