diff options
author | Matteo Croce <mcroce@redhat.com> | 2019-03-28 12:42:33 +0100 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2019-03-29 10:16:27 +0100 |
commit | f560bd19d2fe0e54851d706b72acbc6f2eed3567 (patch) | |
tree | 1c3df8ad14c04659a821adae338d354ef4c9dc6f /arch/x86/platform | |
parent | f6027c81099e87516d27d123867f10abd04b2d38 (diff) | |
download | linux-f560bd19d2fe0e54851d706b72acbc6f2eed3567.tar.gz linux-f560bd19d2fe0e54851d706b72acbc6f2eed3567.tar.bz2 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/platform')
-rw-r--r-- | arch/x86/platform/efi/quirks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/platform/efi/quirks.c b/arch/x86/platform/efi/quirks.c index 458a0e2bcc57..a25a9fd987a9 100644 --- a/arch/x86/platform/efi/quirks.c +++ b/arch/x86/platform/efi/quirks.c @@ -449,7 +449,7 @@ void __init efi_free_boot_services(void) */ rm_size = real_mode_size_needed(); if (rm_size && (start + rm_size) < (1<<20) && size >= rm_size) { - set_real_mode_mem(start, rm_size); + set_real_mode_mem(start); start += rm_size; size -= rm_size; } |