]> git.baikalelectronics.ru Git - kernel.git/commit
efi/capsule-loader: Redirect calls to efi_capsule_setup_info() via weak alias
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 2 Jun 2017 13:52:02 +0000 (13:52 +0000)
committerIngo Molnar <mingo@kernel.org>
Mon, 5 Jun 2017 15:50:41 +0000 (17:50 +0200)
commit3fabd628d5ea24b02ddb1230ffca1df0f779f84e
treeec57e655f84aa3e7834edaa440dc75a1ab93971f
parent171fd0222957abe28e6d78de667f457376f45cf1
efi/capsule-loader: Redirect calls to efi_capsule_setup_info() via weak alias

To allow platform specific code to hook into the capsule loading
routines, indirect calls to efi_capsule_setup_info() via a weak alias
of __efi_capsule_setup_info(), allowing platforms to redefine the former
but still use the latter.

Tested-by: Bryan O'Donoghue <pure.logic@nexus-software.ie>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Matt Fleming <matt@codeblueprint.co.uk>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-efi@vger.kernel.org
Link: http://lkml.kernel.org/r/20170602135207.21708-9-ard.biesheuvel@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
drivers/firmware/efi/capsule-loader.c
include/linux/efi.h