[arm:sa1100 29/36] arch/arm/mach-sa1100/ipaq-sleeve-bus.c:69:19: error: initialization of 'int (*)(const struct device *, struct kobj_uevent_env *)' from incompatible pointer type 'int (*)(struct device *, struct kobj_uevent_env *)'

kernel test robot lkp at intel.com
Sat Nov 4 22:02:14 PDT 2023


tree:   git://git.armlinux.org.uk/~rmk/linux-arm.git sa1100
head:   08b1731daff3c03a1845f5edabf356876858ee5a
commit: 7061a74a938c818c6b23e79fe19b5696d25919f6 [29/36] ARM: sa1100/h3xxx: sleeve support
config: arm-jornada720_defconfig (https://download.01.org/0day-ci/archive/20231105/202311051219.tXCXxpNW-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231105/202311051219.tXCXxpNW-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 at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311051219.tXCXxpNW-lkp@intel.com/

All errors (new ones prefixed by >>):

>> arch/arm/mach-sa1100/ipaq-sleeve-bus.c:69: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]
      69 |         .uevent = ipaq_option_sleeve_uevent,
         |                   ^~~~~~~~~~~~~~~~~~~~~~~~~
   arch/arm/mach-sa1100/ipaq-sleeve-bus.c:69:19: note: (near initialization for 'ipaq_option_sleeve_bus.uevent')
   cc1: some warnings being treated as errors


vim +69 arch/arm/mach-sa1100/ipaq-sleeve-bus.c

    64	
    65	struct bus_type ipaq_option_sleeve_bus = {
    66		.name = "ipaq-sleeve",
    67		.dev_groups = ipaq_option_sleeve_dev_groups,
    68		.match = ipaq_option_sleeve_match,
  > 69		.uevent = ipaq_option_sleeve_uevent,
    70	};
    71	EXPORT_SYMBOL_GPL(ipaq_option_sleeve_bus);
    72	

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



More information about the linux-arm-kernel mailing list