Skip to contentSkip to conversation

x86/EFI: purge a stray semicolon

PATCH In review Jan Beulich 2 participants 2 messages May 14, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/EFI: purge a stray semicolon

Aiui in principle this constitutes a Misra C:2012 rule 2.2 violation. Just that we didn't adopt this rule (yet?).

Fixes afcb4a06c740 ("x86/thunk: Build Xen with Return Thunks")

---
Noticed while backporting to 4.14, where patch context changes.

xen/arch/x86/efi/check.c +1 -1
@@ -4,7 +4,7 @@ int __attribute__((__ms_abi__)) test(int
 }
 
 /* In case -mfunction-return is in use. */
-void __x86_return_thunk(void) {};
+void __x86_return_thunk(void) {}
 
 /*
  * Populate an array with "addresses" of relocatable and absolute values.
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Jan Beulich

Aiui in principle this constitutes a Misra C:2012 rule 2.2 violation. Just that we didn't adopt this rule (yet?).

Fixes afcb4a06c740 ("x86/thunk: Build Xen with Return Thunks")
Quoted 14 lines

---
Noticed while backporting to 4.14, where patch context changes.

xen/arch/x86/efi/check.c +1 -1
@@ -4,7 +4,7 @@ int __attribute__((__ms_abi__)) test(int
 }
 
 /* In case -mfunction-return is in use. */
-void __x86_return_thunk(void) {};
+void __x86_return_thunk(void) {}
 
 /*
  * Populate an array with "addresses" of relocatable and absolute values.
Signature · 3 lines
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab