Skip to content

Commit a6a7891

Browse files
rbmarlierebp3tk0v
authored andcommitted
x86/mce: Make mce_subsys const
Now that the driver core can properly handle constant struct bus_type, make mce_subsys a constant structure. Suggested-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Ricardo B. Marliere <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Reviewed-by: Greg Kroah-Hartman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 54be6c6 commit a6a7891

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kernel/cpu/mce/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2431,7 +2431,7 @@ static void mce_enable_ce(void *all)
24312431
__mcheck_cpu_init_timer();
24322432
}
24332433

2434-
static struct bus_type mce_subsys = {
2434+
static const struct bus_type mce_subsys = {
24352435
.name = "machinecheck",
24362436
.dev_name = "machinecheck",
24372437
};

0 commit comments

Comments
 (0)