diff mbox series

efi/x86: libstub: Fix typo in __efi64_argmap* name

Message ID 20220609113730.32062-1-baskov@ispras.ru
State Accepted
Commit aa6d1ed107eba26f49933216cffe797253914132
Headers show
Series efi/x86: libstub: Fix typo in __efi64_argmap* name | expand

Commit Message

Evgeniy Baskov June 9, 2022, 11:37 a.m. UTC
The actual name of the DXE services function used
is set_memory_space_attributes(), not set_memory_space_descriptor().

Change EFI mixed mode helper macro name to match the function name.

Fixes: 31f1a0edff78 ("efi/x86: libstub: Make DXE calls mixed mode safe")
Signed-off-by: Evgeniy Baskov <baskov@ispras.ru>
---
 arch/x86/include/asm/efi.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Ard Biesheuvel June 9, 2022, 11:46 a.m. UTC | #1
On Thu, 9 Jun 2022 at 13:39, Evgeniy Baskov <baskov@ispras.ru> wrote:
>
> The actual name of the DXE services function used
> is set_memory_space_attributes(), not set_memory_space_descriptor().
>
> Change EFI mixed mode helper macro name to match the function name.
>
> Fixes: 31f1a0edff78 ("efi/x86: libstub: Make DXE calls mixed mode safe")
> Signed-off-by: Evgeniy Baskov <baskov@ispras.ru>

Thanks for the fix! I'll queue this up in efi/urgent


> ---
>  arch/x86/include/asm/efi.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/x86/include/asm/efi.h b/arch/x86/include/asm/efi.h
> index 71943dce691e..9636742a80f2 100644
> --- a/arch/x86/include/asm/efi.h
> +++ b/arch/x86/include/asm/efi.h
> @@ -323,7 +323,7 @@ static inline u32 efi64_convert_status(efi_status_t status)
>  #define __efi64_argmap_get_memory_space_descriptor(phys, desc) \
>         (__efi64_split(phys), (desc))
>
> -#define __efi64_argmap_set_memory_space_descriptor(phys, size, flags) \
> +#define __efi64_argmap_set_memory_space_attributes(phys, size, flags) \
>         (__efi64_split(phys), __efi64_split(size), __efi64_split(flags))
>
>  /*
> --
> 2.36.1
>
diff mbox series

Patch

diff --git a/arch/x86/include/asm/efi.h b/arch/x86/include/asm/efi.h
index 71943dce691e..9636742a80f2 100644
--- a/arch/x86/include/asm/efi.h
+++ b/arch/x86/include/asm/efi.h
@@ -323,7 +323,7 @@  static inline u32 efi64_convert_status(efi_status_t status)
 #define __efi64_argmap_get_memory_space_descriptor(phys, desc) \
 	(__efi64_split(phys), (desc))
 
-#define __efi64_argmap_set_memory_space_descriptor(phys, size, flags) \
+#define __efi64_argmap_set_memory_space_attributes(phys, size, flags) \
 	(__efi64_split(phys), __efi64_split(size), __efi64_split(flags))
 
 /*