x86/efistub: Give up if memory attribute protocol returns an error
[platform/kernel/linux-rpi.git] / drivers / firmware / efi / libstub / x86-stub.h
index 37c5a36..4433d0f 100644 (file)
@@ -2,11 +2,13 @@
 
 #include <linux/efi.h>
 
+extern struct boot_params *boot_params_pointer asm("boot_params");
+
 extern void trampoline_32bit_src(void *, bool);
 extern const u16 trampoline_ljmp_imm_offset;
 
-void efi_adjust_memory_range_protection(unsigned long start,
-                                       unsigned long size);
+efi_status_t efi_adjust_memory_range_protection(unsigned long start,
+                                               unsigned long size);
 
 #ifdef CONFIG_X86_64
 efi_status_t efi_setup_5level_paging(void);