efi/libstub: Use stricter typing for firmware function pointers
authorArd Biesheuvel <ardb@kernel.org>
Tue, 24 Dec 2019 15:10:11 +0000 (16:10 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 25 Dec 2019 09:49:18 +0000 (10:49 +0100)
commit960a8d01834eabc4549928c60f8ce0300ad08519
tree5b8c71ad5a440efa45c4ea145aab52fe7ecf3330
parente8bd5ddf60eedd6d584fa1e98d0cfe45abe95043
efi/libstub: Use stricter typing for firmware function pointers

We will soon remove another level of pointer casting, so let's make
sure all type handling involving firmware calls at boot time is correct.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Cc: Arvind Sankar <nivedita@alum.mit.edu>
Cc: Borislav Petkov <bp@alien8.de>
Cc: James Morse <james.morse@arm.com>
Cc: Matt Fleming <matt@codeblueprint.co.uk>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-efi@vger.kernel.org
Link: https://lkml.kernel.org/r/20191224151025.32482-12-ardb@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/boot/compressed/eboot.c
arch/x86/boot/compressed/eboot.h
arch/x86/platform/efi/efi.c
arch/x86/xen/efi.c
drivers/firmware/efi/libstub/efi-stub-helper.c
drivers/firmware/efi/libstub/tpm.c
include/linux/efi.h