mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 12:21:22 -05:00
powerpc: pseries: make cmm_subsys const
Because driver core can properly handle constant struct bus_type, move the cmm_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/20250918140816.335916-3-abarnas@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
6848990d4d
commit
8c00944301
@@ -375,7 +375,7 @@ static struct device_attribute *cmm_attrs[] = {
|
||||
static DEVICE_ULONG_ATTR(simulate_loan_target_kb, 0644,
|
||||
simulate_loan_target_kb);
|
||||
|
||||
static struct bus_type cmm_subsys = {
|
||||
static const struct bus_type cmm_subsys = {
|
||||
.name = "cmm",
|
||||
.dev_name = "cmm",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user