From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rob Clark Date: Mon, 24 Jul 2017 07:59:11 -0400 Subject: [U-Boot] [PATCH] efi_loader: move guidcmp to header In-Reply-To: <20170724115911.17907-1-robdclark@gmail.com> References: <20170724115911.17907-1-robdclark@gmail.com> Message-ID: <20170724115911.17907-3-robdclark@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Want to re-use this for file protocol, which I'm working on. Signed-off-by: Rob Clark --- 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 739404142a..b6bdf99a38 100644 --- a/include/efi_loader.h +++ b/include/efi_loader.h @@ -171,6 +171,11 @@ static inline void ascii2unicoden(u16 *unicode, const char *ascii, unsigned n) } } +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 a45de39919..bcec080edc 100644 --- a/lib/efi_loader/efi_boottime.c +++ b/lib/efi_loader/efi_boottime.c @@ -87,11 +87,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(unsigned long new_tpl) { EFI_ENTRY("0x%lx", new_tpl); -- 2.13.0