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

From: Greg KH
Date: Wed Feb 01 2023 - 06:46:54 EST


On Wed, Feb 01, 2023 at 04:51:22PM +0530, Naresh Kamboju wrote:
> 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 *")

Odd that no other build system reported this (linux-next, 0-day, etc.)
I guess no one really cares about sh and the dreamcast anymore? :)

Anyway, thanks, I'll fix this up.

greg k-h