diff options
author | Qian Cai <cai@lca.pw> | 2019-07-30 17:23:48 -0400 |
---|---|---|
committer | Sasha Levin <sashal@kernel.org> | 2019-08-25 10:10:31 -0400 |
commit | 174cde5be1a83dc59af9fbf89176ee091b0be612 (patch) | |
tree | 8be795884d879a4301bc36330689207f49dface0 /arch/arm64 | |
parent | a94d43c0dadcd4f76f949af936e103f7c6a934e8 (diff) | |
download | linux-stable-174cde5be1a83dc59af9fbf89176ee091b0be612.tar.gz linux-stable-174cde5be1a83dc59af9fbf89176ee091b0be612.tar.bz2 linux-stable-174cde5be1a83dc59af9fbf89176ee091b0be612.zip |
arm64/efi: fix variable 'si' set but not used
[ Upstream commit f1d4836201543e88ebe70237e67938168d5fab19 ]
GCC throws out this warning on arm64.
drivers/firmware/efi/libstub/arm-stub.c: In function 'efi_entry':
drivers/firmware/efi/libstub/arm-stub.c:132:22: warning: variable 'si'
set but not used [-Wunused-but-set-variable]
Fix it by making free_screen_info() a static inline function.
Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Qian Cai <cai@lca.pw>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/arm64')
-rw-r--r-- | arch/arm64/include/asm/efi.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm64/include/asm/efi.h b/arch/arm64/include/asm/efi.h index c9e9a6978e73..d3cb42fd51ec 100644 --- a/arch/arm64/include/asm/efi.h +++ b/arch/arm64/include/asm/efi.h @@ -105,7 +105,11 @@ static inline unsigned long efi_get_max_initrd_addr(unsigned long dram_base, ((protocol##_t *)instance)->f(instance, ##__VA_ARGS__) #define alloc_screen_info(x...) &screen_info -#define free_screen_info(x...) + +static inline void free_screen_info(efi_system_table_t *sys_table_arg, + struct screen_info *si) +{ +} /* redeclare as 'hidden' so the compiler will generate relative references */ extern struct screen_info screen_info __attribute__((__visibility__("hidden"))); |