efi: Move inline functions to unconditional part of header
authorSimon Glass <sjg@chromium.org>
Wed, 25 Sep 2019 14:11:32 +0000 (08:11 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 8 Oct 2019 05:54:12 +0000 (13:54 +0800)
commitfdeb6f7dc6ed81ba50f1b56eb4bade9108f5f145
tree39b31f556f7e997d43925337a8cdad11f0c962ac
parent62888d840fb99d0375dc33ef7b3404377f451bcf
efi: Move inline functions to unconditional part of header

At present these two functions are defined in efi_loader.h but only if
CONFIG_EFI_LOADER is enabled. But these are functions that are useful to
other code, such as that which deals with Intel Handoff Blocks (HOBs).

Move these to the top of the function.

Possibly ascii2unicode() should not be an inline function, since this
might impact code size.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
include/efi_loader.h