Skip to contentSkip to conversation

xen/x86: Drop uefi_call_wrapper() and EFI_FUNCTION_WRAPPER

PATCH New Andrew Cooper 1 participant 1 message Feb 11, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/x86: Drop uefi_call_wrapper() and EFI_FUNCTION_WRAPPER

Nothing in the codebase uses them, and clang falls into the #error case

---
CC: Jan Beulich <[email protected]>

---
 xen/include/asm-x86/x86_64/efibind.h | 11 -----------
 1 file changed, 11 deletions(-)
xen/include/asm-x86/x86_64/efibind.h +0 -11
index 2db3568..b013db1 100644
@@ -274,17 +274,6 @@ typedef uint64_t   UINTN;
 #endif
 #endif
 
-#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)
-#define uefi_call_wrapper(func, va_num, ...)	func(__VA_ARGS__)
-#else
-/* for x86_64, EFI_FUNCTION_WRAPPER must be defined */
-#ifdef  EFI_FUNCTION_WRAPPER
-UINTN uefi_call_wrapper(void *func, unsigned long va_num, ...);
-#else
-#error "EFI_FUNCTION_WRAPPER must be defined for x86_64 architecture"
-#endif
-#endif
-
 #ifdef _MSC_EXTENSIONS
 #pragma warning ( disable : 4731 )  // Suppress warnings about modification of EBP
 #endif
Signature · 1 line
2.1.4