]> git.baikalelectronics.ru Git - kernel.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)
commitc842f2f366a36fffdd3016ef45d29a81e994797d
treecb3c392e9c0dbd4454ec0a4b52095788921b0e5c
parent85abf44c5c500250dd580f3db5a2b3e0fc88db52
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