Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

powerpc: cell: make spu_subsys const

Because driver core can properly handle constant struct bus_type,
move the spu_subsys 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ś <abarnas@google.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://patch.msgid.link/20250918141633.339803-1-abarnas@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Adrian Barnaś and committed by
Greg Kroah-Hartman
b93606c5 6db60817

+1 -1
+1 -1
arch/powerpc/platforms/cell/spu_base.c
··· 464 464 } 465 465 EXPORT_SYMBOL_GPL(spu_init_channels); 466 466 467 - static struct bus_type spu_subsys = { 467 + static const struct bus_type spu_subsys = { 468 468 .name = "spu", 469 469 .dev_name = "spu", 470 470 };