Re: [PATCH] arch: powerpc: ps3: Make ps3_system_bus_type const

From
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Date
2025-09-18 13:05:08
Also in
lkml
Reply to
Adrian Barnaś, 2025-09-18
On Thu, Sep 18, 2025 at 11:48:40AM +0000, Adrian Barnaś wrote:
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ś <redacted>
---
 arch/powerpc/platforms/ps3/system-bus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Thread (3 messages) 3 messages, 3 authors, last reply 2025-09-19
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