Skip to contentSkip to conversation

x86/platform: correct #undef in compat checking

PATCH In review Jan Beulich 2 participants 3 messages May 6, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/platform: correct #undef in compat checking

A stray 'p' was there, rendering the #undef ineffectual.

xen/arch/x86/x86_64/platform_hypercall.c +1 -1
@@ -30,7 +30,7 @@ CHECK_pf_pcpu_version;
 
 #define xen_pf_ucode_revision xenpf_ucode_revision
 CHECK_pf_ucode_revision;
-#undef xen_pf_pucode_revision
+#undef xen_pf_ucode_revision
 
 #define xen_pf_enter_acpi_sleep xenpf_enter_acpi_sleep
 CHECK_pf_enter_acpi_sleep;
#2 lore raw
Quoted 6 lines · Roger Pau Monné
Quoted 3 lines · Jan Beulich

A stray 'p' was there, rendering the #undef ineffectual.

Thanks.

Quoted 1 line

No Fixes tag?

I didn't think it was worthwhile digging out the offending commit, as there's no real bug here. Assuming that a colliding identifier might be introduced elsewhere seems pretty far fetched to me. And Misra, which might have something to say here, would want us to avoid #undef altogether, iirc.

Jan