summaryrefslogtreecommitdiffstats
path: root/arch/x86/include
diff options
context:
space:
mode:
authorMatteo Croce2019-03-28 12:42:33 +0100
committerBorislav Petkov2019-03-29 10:16:27 +0100
commitf560bd19d2fe0e54851d706b72acbc6f2eed3567 (patch)
tree1c3df8ad14c04659a821adae338d354ef4c9dc6f /arch/x86/include
parentx86/cpufeature: Fix __percpu annotation in this_cpu_has() (diff)
downloadkernel-qcow2-linux-f560bd19d2fe0e54851d706b72acbc6f2eed3567.tar.gz
kernel-qcow2-linux-f560bd19d2fe0e54851d706b72acbc6f2eed3567.tar.xz
kernel-qcow2-linux-f560bd19d2fe0e54851d706b72acbc6f2eed3567.zip
x86/realmode: Make set_real_mode_mem() static inline
Remove the unused @size argument and move it into a header file, so it can be inlined. [ bp: Massage. ] Signed-off-by: Matteo Croce <mcroce@redhat.com> Signed-off-by: Borislav Petkov <bp@suse.de> Reviewed-by: Mukesh Ojha <mojha@codeaurora.org> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: linux-efi <linux-efi@vger.kernel.org> Cc: platform-driver-x86@vger.kernel.org Cc: Thomas Gleixner <tglx@linutronix.de> Cc: x86-ml <x86@kernel.org> Link: https://lkml.kernel.org/r/20190328114233.27835-1-mcroce@redhat.com
Diffstat (limited to 'arch/x86/include')
-rw-r--r--arch/x86/include/asm/realmode.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/x86/include/asm/realmode.h b/arch/x86/include/asm/realmode.h
index 63b3393bd98e..c53682303c9c 100644
--- a/arch/x86/include/asm/realmode.h
+++ b/arch/x86/include/asm/realmode.h
@@ -77,7 +77,11 @@ static inline size_t real_mode_size_needed(void)
return ALIGN(real_mode_blob_end - real_mode_blob, PAGE_SIZE);
}
-void set_real_mode_mem(phys_addr_t mem, size_t size);
+static inline void set_real_mode_mem(phys_addr_t mem)
+{
+ real_mode_header = (struct real_mode_header *) __va(mem);
+}
+
void reserve_real_mode(void);
#endif /* __ASSEMBLY__ */