From 3e094c592bc1dc19bb706379458f6be4e9500287 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Mon, 24 Jul 2017 07:59:11 -0400 Subject: efi_loader: move guidcmp to header Want to re-use this for file protocol, which I'm working on. Signed-off-by: Rob Clark Signed-off-by: Alexander Graf --- include/efi_loader.h | 5 +++++ lib/efi_loader/efi_boottime.c | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/efi_loader.h b/include/efi_loader.h index 2abb6b87e17..7818e1cebb4 100644 --- a/include/efi_loader.h +++ b/include/efi_loader.h @@ -168,6 +168,11 @@ static inline void ascii2unicode(u16 *unicode, const char *ascii) *(unicode++) = *(ascii++); } +static inline int guidcmp(const efi_guid_t *g1, const efi_guid_t *g2) +{ + return memcmp(g1, g2, sizeof(efi_guid_t)); +} + /* * Use these to indicate that your code / data should go into the EFI runtime * section and thus still be available when the OS is running diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c index a89a6294062..e09f9dac5c8 100644 --- a/lib/efi_loader/efi_boottime.c +++ b/lib/efi_loader/efi_boottime.c @@ -132,11 +132,6 @@ static efi_status_t efi_unsupported(const char *funcname) return EFI_EXIT(EFI_UNSUPPORTED); } -static int guidcmp(const efi_guid_t *g1, const efi_guid_t *g2) -{ - return memcmp(g1, g2, sizeof(efi_guid_t)); -} - static unsigned long EFIAPI efi_raise_tpl(UINTN new_tpl) { EFI_ENTRY("0x%zx", new_tpl); -- cgit v1.2.3