• Stephen Rothwell's avatar
    driver core: fixup for "driver core: make struct bus_type.uevent() take a const *" · b7810ea8
    Stephen Rothwell authored
    After merging the driver-core tree, today's linux-next build (powerpc
    ppc64_defconfig) failed like this:
    
    arch/powerpc/platforms/ps3/system-bus.c:472: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]
      472 |         .uevent = ps3_system_bus_uevent,
          |                   ^~~~~~~~~~~~~~~~~~~~~
    arch/powerpc/platforms/ps3/system-bus.c:472:19: note: (near initialization for 'ps3_system_bus_type.uevent')
    arch/powerpc/platforms/pseries/ibmebus.c:436:22: 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]
      436 |         .uevent    = ibmebus_bus_modalias,
          |                      ^~~~~~~~~~~~~~~~~~~~
    arch/powerpc/platforms/pseries/ibmebus.c:436:22: note: (near initialization for 'ibmebus_bus_type.uevent')
    Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
    Fixes: 2a81ada3 ("driver core: make struct bus_type.uevent() take a const *")
    Link: https://lore.kernel.org/r/20230130152818.03c00ea3@canb.auug.org.auSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    b7810ea8
ps3.h 14.8 KB