]> git.karo-electronics.de Git - linux-beck.git/commit
arm64/efi: efistub: Apply __init annotation
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 12 Jan 2015 20:28:20 +0000 (20:28 +0000)
committerMatt Fleming <matt.fleming@intel.com>
Thu, 15 Jan 2015 21:28:35 +0000 (21:28 +0000)
commitddeeefe2dfbe1fa6b116b9362b1bec465b64c873
treea79ebafc3c5ac24fabb034b60915fe46d57d3082
parent2859dff97e54db4795b8b7d9606cb8efcec722ff
arm64/efi: efistub: Apply __init annotation

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@linaro.org>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
arch/arm64/kernel/efi-stub.c
drivers/firmware/efi/libstub/Makefile
drivers/firmware/efi/libstub/arm-stub.c
drivers/firmware/efi/libstub/efi-stub-helper.c