From: Adrian Barnaś Date: Thu, 18 Sep 2025 11:48:40 +0000 (+0000) Subject: arch: powerpc: ps3: Make ps3_system_bus_type const X-Git-Tag: v6.19-rc1~65^2~78 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ae7090dc7862c1c351bce14cdbf9125d3a4416e;p=thirdparty%2Fkernel%2Flinux.git arch: powerpc: ps3: Make ps3_system_bus_type const Because driver core can properly handle constant struct bus_type, move the ps3_system_bus_type to be a constant structure as well, placing it into read-only memory which can not be modified at runtime. Signed-off-by: Adrian Barnaś Reviewed-by: Geert Uytterhoeven Reviewed-by: Greg Kroah-Hartman Acked-by: Geoff Levand Link: https://patch.msgid.link/20250918114840.53581-1-abarnas@google.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/arch/powerpc/platforms/ps3/system-bus.c b/arch/powerpc/platforms/ps3/system-bus.c index afbaabf182d01..c5b880c411efd 100644 --- a/arch/powerpc/platforms/ps3/system-bus.c +++ b/arch/powerpc/platforms/ps3/system-bus.c @@ -465,7 +465,7 @@ static struct attribute *ps3_system_bus_dev_attrs[] = { }; ATTRIBUTE_GROUPS(ps3_system_bus_dev); -static struct bus_type ps3_system_bus_type = { +static const struct bus_type ps3_system_bus_type = { .name = "ps3_system_bus", .match = ps3_system_bus_match, .uevent = ps3_system_bus_uevent,