[driver-core:kobject-const2 37/38] drivers/macintosh/macio_asic.c:141:18: 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 *)'
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-const2
head: f5c1b58c44dca790d2a1aadaddd35e5a866ef3b3
commit: 6e77a9aede715902bf2a22d42c0123678bca2b10 [37/38] driver core: make struct bus_type.uevent() take a const *
config: powerpc-randconfig-r002-20221212
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 powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/commit/?id=6e77a9aede715902bf2a22d42c0123678bca2b10
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 6e77a9aede715902bf2a22d42c0123678bca2b10
# 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=powerpc SHELL=/bin/bash drivers/macintosh/
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/macintosh/macio_asic.c:141:18: 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 = macio_device_modalias,
^~~~~~~~~~~~~~~~~~~~~
1 error generated.
vim +141 drivers/macintosh/macio_asic.c
b5bf5b6786ccfc9 Jeff Mahoney 2005-07-06 137
^1da177e4c3f415 Linus Torvalds 2005-04-16 138 struct bus_type macio_bus_type = {
^1da177e4c3f415 Linus Torvalds 2005-04-16 139 .name = "macio",
^1da177e4c3f415 Linus Torvalds 2005-04-16 140 .match = macio_bus_match,
9fbf39840b756f6 Greg Kroah-Hartman 2022-12-07 @141 .uevent = macio_device_modalias,
4866b124a1ded3b Russell King 2006-01-05 142 .probe = macio_device_probe,
4866b124a1ded3b Russell King 2006-01-05 143 .remove = macio_device_remove,
4866b124a1ded3b Russell King 2006-01-05 144 .shutdown = macio_device_shutdown,
^1da177e4c3f415 Linus Torvalds 2005-04-16 145 .suspend = macio_device_suspend,
^1da177e4c3f415 Linus Torvalds 2005-04-16 146 .resume = macio_device_resume,
60bb70aa761ca40 Greg Kroah-Hartman 2017-06-06 147 .dev_groups = macio_dev_groups,
^1da177e4c3f415 Linus Torvalds 2005-04-16 148 };
^1da177e4c3f415 Linus Torvalds 2005-04-16 149
:::::: The code at line 141 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, 164.6 KB) - not displayed