diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2026-05-04 21:19:46 +0300 |
|---|---|---|
| committer | Borislav Petkov (AMD) <bp@alien8.de> | 2026-06-02 23:57:38 +0300 |
| commit | d022ff2557accbc7e169e4812bd9899e7c77fb5c (patch) | |
| tree | 712d681dea435f62f54a1a0c4cb8c22b7f80c7fd | |
| parent | 1df61a8b2d01c560822a0421f2a76af7fda34c1f (diff) | |
| download | linux-d022ff2557accbc7e169e4812bd9899e7c77fb5c.tar.xz | |
x86/platform/uv: Use str_enabled_disabled() in uv_nmi_setup_hubless_intr()
Replace hard-coded strings with the str_enabled_disabled() helper. This
unifies the output and helps the linker with deduplication, which can result
in a smaller binary. Additionally, address the following Coccinelle/coccicheck
warning reported by string_choices.cocci:
opportunity for str_enabled_disabled(uv_pch_intr_now_enabled)
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Kyle Meyer <kyle.meyer@hpe.com>
Link: https://patch.msgid.link/20260504181945.143928-2-thorsten.blum@linux.dev
| -rw-r--r-- | arch/x86/platform/uv/uv_nmi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/platform/uv/uv_nmi.c b/arch/x86/platform/uv/uv_nmi.c index 5c50e550ab63..565ab43fa6b4 100644 --- a/arch/x86/platform/uv/uv_nmi.c +++ b/arch/x86/platform/uv/uv_nmi.c @@ -18,6 +18,7 @@ #include <linux/sched/debug.h> #include <linux/slab.h> #include <linux/string.h> +#include <linux/string_choices.h> #include <linux/clocksource.h> #include <asm/apic.h> @@ -340,7 +341,7 @@ static void uv_nmi_setup_hubless_intr(void) uv_pch_intr_now_enabled ? GPIROUTNMI : 0); nmi_debug("UV:NMI: GPP_D_0 interrupt %s\n", - uv_pch_intr_now_enabled ? "enabled" : "disabled"); + str_enabled_disabled(uv_pch_intr_now_enabled)); } static struct init_nmi { |
