]> git.karo-electronics.de Git - karo-tx-linux.git/commit
efi: Use typed function pointers for the runtime services table
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 31 Jan 2017 13:21:39 +0000 (13:21 +0000)
committerIngo Molnar <mingo@kernel.org>
Wed, 1 Feb 2017 07:45:45 +0000 (08:45 +0100)
commitc4c39c70c5fef43655019236bec8ba5e7273b868
treecb3c392e9c0dbd4454ec0a4b52095788921b0e5c
parente66880808960322d8126f878d7fe315a3f1ada74
efi: Use typed function pointers for the runtime services table

Instead of using void pointers, and casting them to correctly typed
function pointers upon use, declare the runtime services pointers
as function pointers using their respective prototypes, for which
typedefs are already available.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Matt Fleming <matt@codeblueprint.co.uk>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-efi@vger.kernel.org
Link: http://lkml.kernel.org/r/1485868902-20401-8-git-send-email-ard.biesheuvel@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/efi.h