Skip to content

Commit

Permalink
x86/mce: Make mce_subsys const
Browse files Browse the repository at this point in the history
Now that the driver core can properly handle constant struct bus_type,
make mce_subsys a constant structure.

Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20240204-bus_cleanup-x86-v1-1-4e7171be88e8@marliere.net
  • Loading branch information
Ricardo B. Marliere authored and Borislav Petkov (AMD) committed Feb 5, 2024
1 parent 54be6c6 commit a6a7891
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/cpu/mce/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2431,7 +2431,7 @@ static void mce_enable_ce(void *all)
__mcheck_cpu_init_timer();
}

static struct bus_type mce_subsys = {
static const struct bus_type mce_subsys = {
.name = "machinecheck",
.dev_name = "machinecheck",
};
Expand Down

0 comments on commit a6a7891

Please sign in to comment.