Hi "Uwe,
I love your patch! Yet something to improve:
[auto build test ERROR on e73f0f0ee7541171d89f2e2491130c7771ba58d3]
url:
https://github.com/0day-ci/linux/commits/Uwe-Kleine-K-nig/bus-Make-remove...
base: e73f0f0ee7541171d89f2e2491130c7771ba58d3
config: sparc64-randconfig-r036-20210713 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.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://github.com/0day-ci/linux/commit/574fac06c264e69608e3c21bc6594c5b5...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Uwe-Kleine-K-nig/bus-Make-remove-callback-return-void/20210713-154310
git checkout 574fac06c264e69608e3c21bc6594c5b5abe1ad4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> arch/sparc/kernel/vio.c:160:13: error: initialization of
'void (*)(struct device *)' from incompatible pointer type 'int (*)(struct
device *)' [-Werror=incompatible-pointer-types]
160 | .remove =
vio_device_remove,
| ^~~~~~~~~~~~~~~~~
arch/sparc/kernel/vio.c:160:13: note: (near initialization for
'vio_bus_type.remove')
cc1: all warnings being treated as errors
vim +160 arch/sparc/kernel/vio.c
e53e97ce3c7119 arch/sparc64/kernel/vio.c David S. Miller 2007-07-09 153
e53e97ce3c7119 arch/sparc64/kernel/vio.c David S. Miller 2007-07-09 154 static
struct bus_type vio_bus_type = {
e53e97ce3c7119 arch/sparc64/kernel/vio.c David S. Miller 2007-07-09 155
.name = "vio",
33acc6db64f77a arch/sparc/kernel/vio.c Greg Kroah-Hartman 2017-06-06 156
.dev_groups = vio_dev_groups,
5bde2c9be701c4 arch/sparc/kernel/vio.c John Paul Adrian Glaubitz 2016-04-14 157
.uevent = vio_hotplug,
e53e97ce3c7119 arch/sparc64/kernel/vio.c David S. Miller 2007-07-09 158
.match = vio_bus_match,
e53e97ce3c7119 arch/sparc64/kernel/vio.c David S. Miller 2007-07-09 159
.probe = vio_device_probe,
e53e97ce3c7119 arch/sparc64/kernel/vio.c David S. Miller 2007-07-09 @160
.remove = vio_device_remove,
e53e97ce3c7119 arch/sparc64/kernel/vio.c David S. Miller 2007-07-09 161 };
e53e97ce3c7119 arch/sparc64/kernel/vio.c David S. Miller 2007-07-09 162
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org