[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210032024.gdSRLGy7-lkp@intel.com>
Date: Mon, 3 Oct 2022 20:40:19 +0800
From: kernel test robot <lkp@...el.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: kbuild-all@...ts.01.org, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org
Subject: [driver-core:kobject-const 15/18]
arch/parisc/kernel/drivers.c:623:19: error: initialization of 'int (*)(const
struct device *, struct kobj_uevent_env *)' from incompatible pointer type
'int (*)(struct device *, struct kobj_uevent_env *)'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git kobject-const
head: ed9d0211c055e56f57141bc3a62b4ce7036083a2
commit: 57f0edb9a3d781a8a8817ae7005aa3c17076054c [15/18] driver core: make struct bus_type.uevent() take a const *
config: parisc-randconfig-r034-20221002
compiler: hppa-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=57f0edb9a3d781a8a8817ae7005aa3c17076054c
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 57f0edb9a3d781a8a8817ae7005aa3c17076054c
# 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=parisc SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
arch/parisc/kernel/drivers.c:418:31: warning: no previous prototype for 'create_tree_node' [-Wmissing-prototypes]
418 | struct parisc_device * __init create_tree_node(char id, struct device *parent)
| ^~~~~~~~~~~~~~~~
>> arch/parisc/kernel/drivers.c:623: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]
623 | .uevent = parisc_uevent,
| ^~~~~~~~~~~~~
arch/parisc/kernel/drivers.c:623:19: note: (near initialization for 'parisc_bus_type.uevent')
arch/parisc/kernel/drivers.c: In function 'parse_tree_node':
arch/parisc/kernel/drivers.c:744:30: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
744 | /* nothing */;
| ^
cc1: some warnings being treated as errors
vim +623 arch/parisc/kernel/drivers.c
^1da177e4c3f415 Linus Torvalds 2005-04-16 619
^1da177e4c3f415 Linus Torvalds 2005-04-16 620 struct bus_type parisc_bus_type = {
^1da177e4c3f415 Linus Torvalds 2005-04-16 621 .name = "parisc",
^1da177e4c3f415 Linus Torvalds 2005-04-16 622 .match = parisc_generic_match,
7246c31e45021bc Helge Deller 2008-12-25 @623 .uevent = parisc_uevent,
9b7c66822700434 Greg Kroah-Hartman 2017-06-06 624 .dev_groups = parisc_device_groups,
ad3ed31c682d956 Russell King 2006-01-05 625 .probe = parisc_driver_probe,
b86db40e1ecc910 Helge Deller 2018-03-04 626 .remove = __exit_p(parisc_driver_remove),
^1da177e4c3f415 Linus Torvalds 2005-04-16 627 };
^1da177e4c3f415 Linus Torvalds 2005-04-16 628
:::::: The code at line 623 was first introduced by commit
:::::: 7246c31e45021bc68688c4a8fd2bbb70b485d1ef parisc: add uevent helper for parisc bus
:::::: TO: Helge Deller <deller@....de>
:::::: CC: Kyle McMartin <kyle@...artin.ca>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (94480 bytes)
Powered by blists - more mailing lists