Re: [PATCH 2/4] powerpc: ps3: make ps3_system_bus_type const

From
Geoff Levand <geoff@infradead.org>
Date
2024-02-05 00:04:16
Also in
lkml
Reply to
Ricardo B. Marliere, 2024-02-04
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>

 
Thread (8 messages) 8 messages, 4 authors, last reply 2024-02-05
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help