On 2/4/24 23:21, Ricardo B. Marliere wrote:
Now that the driver core can properly handle constant struct bus_type,
move the ps3_system_bus_type variable to be a constant structure as
well, placing it into read-only memory which can not be modified at
runtime.
quoted hunk ↗ jump to hunk
-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,
Seems fine.
Acked-by: Geoff Levand <geoff@infradead.org>