From: Thorsten Blum Date: Sun, 9 Feb 2025 21:03:32 +0000 (+0100) Subject: x86/apic: Use str_disabled_enabled() helper in print_ipi_mode() X-Git-Tag: v6.15-rc1~212^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0156338a18eba7ee229e59c8928c7056e9753c61;p=thirdparty%2Fkernel%2Flinux.git x86/apic: Use str_disabled_enabled() helper in print_ipi_mode() Remove hard-coded strings by using the str_disabled_enabled() helper. No change in functionality intended. Signed-off-by: Thorsten Blum Signed-off-by: Ingo Molnar Link: https://lore.kernel.org/r/20250209210333.5666-2-thorsten.blum@linux.dev --- diff --git a/arch/x86/kernel/apic/ipi.c b/arch/x86/kernel/apic/ipi.c index 5da693d633b78..942168da71953 100644 --- a/arch/x86/kernel/apic/ipi.c +++ b/arch/x86/kernel/apic/ipi.c @@ -3,6 +3,7 @@ #include #include #include +#include #include @@ -23,7 +24,7 @@ __setup("no_ipi_broadcast=", apic_ipi_shorthand); static int __init print_ipi_mode(void) { pr_info("IPI shorthand broadcast: %s\n", - apic_ipi_shorthand_off ? "disabled" : "enabled"); + str_disabled_enabled(apic_ipi_shorthand_off)); return 0; } late_initcall(print_ipi_mode);