efi: efistub: Refactor stub components
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 2 Jul 2014 12:54:42 +0000 (14:54 +0200)
committerMatt Fleming <matt.fleming@intel.com>
Mon, 7 Jul 2014 19:29:48 +0000 (20:29 +0100)
commitbd669475d14e3279a7f96ed917a82df5da6ad52d
treeb13bbe4cb23774acfea30e98d60fcfb4da029c2a
parenta13b00778e89c405cb224ef0926be6d71682d2a2
efi: efistub: Refactor stub components

In order to move from the #include "../../../xxxxx.c" anti-pattern used
by both the x86 and arm64 versions of the stub to a static library
linked into either the kernel proper (arm64) or a separate boot
executable (x86), there is some prepatory work required.

This patch does the following:
- move forward declarations of functions shared between the arch
  specific and the generic parts of the stub to include/linux/efi.h
- move forward declarations of functions shared between various .c files
  of the generic stub code to a new local header file called "efistub.h"
- add #includes to all .c files which were formerly relying on the
  #includor to include the correct header files
- remove all static modifiers from functions which will need to be
  externally visible once we move to a static library

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
arch/arm64/kernel/efi-stub.c
arch/x86/boot/compressed/eboot.c
drivers/firmware/efi/arm-stub.c
drivers/firmware/efi/efi-stub-helper.c
drivers/firmware/efi/efistub.h [new file with mode: 0644]
drivers/firmware/efi/fdt.c
include/linux/efi.h