All of lore.kernel.org
 help / color / mirror / Atom feed
* [driver-core:const_driver 8/8] arch/parisc/kernel/drivers.c:623:18: error: initialization of 'int (*)(struct device *, const struct device_driver *)' from incompatible pointer type 'int (*)(struct device *, struct device_driver *)'
@ 2024-06-11  1:27 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-06-11  1:27 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: oe-kbuild-all, devel

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git const_driver
head:   6f0f76bd99e259ff0aee9f2e6aed360e258c1077
commit: 6f0f76bd99e259ff0aee9f2e6aed360e258c1077 [8/8] driver core: have match() callback in struct bus_type take a const *
config: parisc-allnoconfig (https://download.01.org/0day-ci/archive/20240611/202406110956.JsSMEcMO-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240611/202406110956.JsSMEcMO-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202406110956.JsSMEcMO-lkp@intel.com/

All errors (new ones prefixed by >>):

>> arch/parisc/kernel/drivers.c:623:18: error: initialization of 'int (*)(struct device *, const struct device_driver *)' from incompatible pointer type 'int (*)(struct device *, struct device_driver *)' [-Werror=incompatible-pointer-types]
     623 |         .match = parisc_generic_match,
         |                  ^~~~~~~~~~~~~~~~~~~~
   arch/parisc/kernel/drivers.c:623:18: note: (near initialization for 'parisc_bus_type.match')
   cc1: some warnings being treated as errors


vim +623 arch/parisc/kernel/drivers.c

^1da177e4c3f41 Linus Torvalds      2005-04-16  620  
0b9ec151b9b45f Ricardo B. Marliere 2024-02-13  621  const struct bus_type parisc_bus_type = {
^1da177e4c3f41 Linus Torvalds      2005-04-16  622  	.name = "parisc",
^1da177e4c3f41 Linus Torvalds      2005-04-16 @623  	.match = parisc_generic_match,
7246c31e45021b Helge Deller        2008-12-25  624  	.uevent = parisc_uevent,
9b7c6682270043 Greg Kroah-Hartman  2017-06-06  625  	.dev_groups = parisc_device_groups,
ad3ed31c682d95 Russell King        2006-01-05  626  	.probe = parisc_driver_probe,
b86db40e1ecc91 Helge Deller        2018-03-04  627  	.remove = __exit_p(parisc_driver_remove),
^1da177e4c3f41 Linus Torvalds      2005-04-16  628  };
^1da177e4c3f41 Linus Torvalds      2005-04-16  629  

:::::: The code at line 623 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-06-11  1:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-11  1:27 [driver-core:const_driver 8/8] arch/parisc/kernel/drivers.c:623:18: error: initialization of 'int (*)(struct device *, const struct device_driver *)' from incompatible pointer type 'int (*)(struct device *, struct device_driver *)' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.