[PATCH v2 15/16] driver core: make struct bus_type.uevent() take a const *

From: Naresh Kamboju
Date: Wed Feb 01 2023 - 06:21:34 EST


Following build regression started from next-20230130.

Regressions found on sh:

- build/gcc-11-dreamcast_defconfig

drivers/sh/maple/maple.c:785: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]
785 | .uevent = maple_bus_uevent,
| ^~~~~~~~~~~~~~~~

Reported-by: Linux Kernel Functional Testing <lkft@xxxxxxxxxx>


https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20230201/testrun/14479366/suite/build/test/gcc-11-dreamcast_defconfig/history/

The bisection pointed to this commit,
2a81ada32f0e ("driver core: make struct bus_type.uevent() take a const *")

--
Linaro LKFT
https://lkft.linaro.org