tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git const_driver head: d5d1958dc29111bce74f9ddf7aec5803c308837e commit: c75570c28cd80a9afb49f5081eed41288ad5d7bf [3/10] driver core: have match() callback in struct bus_type take a const * config: powerpc64-randconfig-r113-20240621 (https://download.01.org/0day-ci/archive/20240621/202406211454.XbtJCp0g-lkp@xxxxxxxxx/config) compiler: powerpc64-linux-gcc (GCC) 13.2.0 reproduce: (https://download.01.org/0day-ci/archive/20240621/202406211454.XbtJCp0g-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/202406211454.XbtJCp0g-lkp@xxxxxxxxx/ sparse warnings: (new ones prefixed by >>) >> arch/powerpc/platforms/pseries/vio.c:1582:58: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct device_driver *drv @@ got struct device_driver const *drv @@ arch/powerpc/platforms/pseries/vio.c:1582:58: sparse: expected struct device_driver *drv arch/powerpc/platforms/pseries/vio.c:1582:58: sparse: got struct device_driver const *drv vim +1582 arch/powerpc/platforms/pseries/vio.c 1578 1579 static int vio_bus_match(struct device *dev, const struct device_driver *drv) 1580 { 1581 const struct vio_dev *vio_dev = to_vio_dev(dev); > 1582 const struct vio_driver *vio_drv = to_vio_driver(drv); 1583 const struct vio_device_id *ids = vio_drv->id_table; 1584 1585 return (ids != NULL) && (vio_match_device(ids, vio_dev) != NULL); 1586 } 1587 -- 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