2023-07-25 14:10:00

by Yue Haibing

[permalink] [raw]
Subject: [PATCH -next] efi: Remove unused extern declaration efi_lookup_mapped_addr()

Since commit 50a0cb565246 ("x86/efi-bgrt: Fix kernel panic when mapping BGRT data")
this extern declaration is not used anymore.

Signed-off-by: YueHaibing <[email protected]>
---
include/linux/efi.h | 1 -
1 file changed, 1 deletion(-)

diff --git a/include/linux/efi.h b/include/linux/efi.h
index c31a9895ecb8..d4ec0d9c896f 100644
--- a/include/linux/efi.h
+++ b/include/linux/efi.h
@@ -727,7 +727,6 @@ static inline efi_status_t efi_query_variable_store(u32 attributes,
return EFI_SUCCESS;
}
#endif
-extern void __iomem *efi_lookup_mapped_addr(u64 phys_addr);

extern int __init __efi_memmap_init(struct efi_memory_map_data *data);
extern int __init efi_memmap_init_early(struct efi_memory_map_data *data);
--
2.34.1



2023-08-03 14:07:52

by Ard Biesheuvel

[permalink] [raw]
Subject: Re: [PATCH -next] efi: Remove unused extern declaration efi_lookup_mapped_addr()

On Tue, 25 Jul 2023 at 16:04, YueHaibing <[email protected]> wrote:
>
> Since commit 50a0cb565246 ("x86/efi-bgrt: Fix kernel panic when mapping BGRT data")
> this extern declaration is not used anymore.
>
> Signed-off-by: YueHaibing <[email protected]>

Queued up in efi/next - thanks,


> ---
> include/linux/efi.h | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/include/linux/efi.h b/include/linux/efi.h
> index c31a9895ecb8..d4ec0d9c896f 100644
> --- a/include/linux/efi.h
> +++ b/include/linux/efi.h
> @@ -727,7 +727,6 @@ static inline efi_status_t efi_query_variable_store(u32 attributes,
> return EFI_SUCCESS;
> }
> #endif
> -extern void __iomem *efi_lookup_mapped_addr(u64 phys_addr);
>
> extern int __init __efi_memmap_init(struct efi_memory_map_data *data);
> extern int __init efi_memmap_init_early(struct efi_memory_map_data *data);
> --
> 2.34.1
>