[PATCH v2] arm64/efi: efistub: apply __init annotation

Matt Fleming matt at codeblueprint.co.uk
Thu Jan 15 13:27:34 PST 2015


On Mon, 12 Jan, at 08:28:20PM, Ard Biesheuvel wrote:
> This ensures all stub component are freed when the kernel proper is
> done booting, by prefixing the names of all ELF sections that have
> the SHF_ALLOC attribute with ".init". This approach ensures that even
> implicitly emitted allocated data (like initializer values and string
> literals) are covered.
> 
> At the same time, remove some __init annotations in the stub that have
> now become redundant, and add the __init annotation to handle_kernel_image
> which will now trigger a section mismatch warning without it.
> 
> Signed-off-by: Ard Biesheuvel <ard.biesheuvel at linaro.org>
> ---
> v2: fixed an issue with spurious rebuilding of object files, now setting
>     $(extra-y) correctly, which also allows the .PRECIOUS: to be dropped.
> 
> 
>  arch/arm64/kernel/efi-stub.c                   | 14 +++++++-------
>  drivers/firmware/efi/libstub/Makefile          | 14 ++++++++++++++
>  drivers/firmware/efi/libstub/arm-stub.c        |  8 ++++----
>  drivers/firmware/efi/libstub/efi-stub-helper.c |  2 +-
>  4 files changed, 26 insertions(+), 12 deletions(-)

Applied for v3.20, thanks Ard.

-- 
Matt Fleming, Intel Open Source Technology Center



More information about the linux-arm-kernel mailing list