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@xxxxxxxxx/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@xxxxxxxxx/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@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-kbuild-all/202406110956.JsSMEcMO-lkp@xxxxxxxxx/ 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@xxxxxxxxxxxxxxx> :::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel