From f8537c1cd18ad4653672afaf8b881658a2470799 Mon Sep 17 00:00:00 2001 From: zbao Date: Fri, 6 Nov 2015 14:28:56 +0800 Subject: [PATCH] commonlib: Remove unused static function. Building with Clang without option -Wno-unused-function causes building error. I don't know why GCC doesn't have that issue. ------------ coreboot/src/commonlib/fsp1_1_relocate.c:47:23: error: unused function 'le8toh' [-Werror,-Wunused-function] static inline uint8_t le8toh(uint8_t byte) ^ 1 error generated. ------------ Change-Id: Iecd1e84e4321446412ef68d65dc918baf1ab45ce Signed-off-by: Zheng Bao Reviewed-on: http://review.coreboot.org/12339 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Aaron Durbin Reviewed-by: York Yang --- src/commonlib/fsp1_1_relocate.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/commonlib/fsp1_1_relocate.c b/src/commonlib/fsp1_1_relocate.c index c6143eb13f..7165d862c7 100644 --- a/src/commonlib/fsp1_1_relocate.c +++ b/src/commonlib/fsp1_1_relocate.c @@ -43,12 +43,6 @@ static int guid_compare(const EFI_GUID *le_guid, const EFI_GUID *native_guid) ARRAY_SIZE(le_guid->Data4)); } -/* Provide this for symmetry when accessing UEFI fields. */ -static inline uint8_t le8toh(uint8_t byte) -{ - return byte; -} - static const EFI_GUID ffs2_guid = EFI_FIRMWARE_FILE_SYSTEM2_GUID; static const EFI_GUID fih_guid = FSP_INFO_HEADER_GUID;