efi_enabled() gets backported to older kernel versions and if this is
the case compat should not try to do the same.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* efi: Make 'efi_enabled' a function to query EFI facilities
*
*/
+/* check first if this was already backported */
+#ifndef EFI_BOOT
/*
* We play games with efi_enabled so that the compiler will, if
* possible, remove EFI-related code altogether.
#undef efi_enabled
#endif
#define efi_enabled(facility) compat_efi_enabled(facility)
+#endif /* EFI_BOOT */
#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,8,0)) */