* [PATCH] efi: fix type in efi_mem_type()
@ 2026-03-10 18:56 Marek Marczykowski-Górecki
2026-03-10 20:58 ` Ard Biesheuvel
0 siblings, 1 reply; 2+ messages in thread
From: Marek Marczykowski-Górecki @ 2026-03-10 18:56 UTC (permalink / raw)
To: linux-kernel
Cc: Marek Marczykowski-Górecki, kernel test robot,
Ard Biesheuvel, Ilias Apalodimas,
open list:EXTENSIBLE FIRMWARE INTERFACE (EFI)
Drop const, as use of efi_mem_desc_lookup() will modify the variable.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202603101851.bAhG7uGN-lkp@intel.com/
Fixes: 5992265762e6 "efi: make efi_mem_type() and efi_mem_attributes() work on Xen PV"
Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
---
drivers/firmware/efi/efi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c
index 36efc92bdf02..288834a193d1 100644
--- a/drivers/firmware/efi/efi.c
+++ b/drivers/firmware/efi/efi.c
@@ -1001,7 +1001,7 @@ u64 efi_mem_attributes(unsigned long phys_addr)
*/
int efi_mem_type(unsigned long phys_addr)
{
- const efi_memory_desc_t md;
+ efi_memory_desc_t md;
if (!efi_enabled(EFI_MEMMAP) && !efi_enabled(EFI_PARAVIRT))
return -ENOTSUPP;
--
2.52.0
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] efi: fix type in efi_mem_type()
2026-03-10 18:56 [PATCH] efi: fix type in efi_mem_type() Marek Marczykowski-Górecki
@ 2026-03-10 20:58 ` Ard Biesheuvel
0 siblings, 0 replies; 2+ messages in thread
From: Ard Biesheuvel @ 2026-03-10 20:58 UTC (permalink / raw)
To: Marek Marczykowski-Górecki, linux-kernel
Cc: kernel test robot, Ilias Apalodimas,
open list:EXTENSIBLE FIRMWARE INTERFACE (EFI)
On Tue, 10 Mar 2026, at 19:56, Marek Marczykowski-Górecki wrote:
> Drop const, as use of efi_mem_desc_lookup() will modify the variable.
>
> Reported-by: kernel test robot <lkp@intel.com>
> Closes:
> https://lore.kernel.org/oe-kbuild-all/202603101851.bAhG7uGN-lkp@intel.com/
> Fixes: 5992265762e6 "efi: make efi_mem_type() and efi_mem_attributes()
> work on Xen PV"
> Signed-off-by: Marek Marczykowski-Górecki
> <marmarek@invisiblethingslab.com>
> ---
> drivers/firmware/efi/efi.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Thanks, but i've fixed up the original commit instead.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-03-10 20:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-10 18:56 [PATCH] efi: fix type in efi_mem_type() Marek Marczykowski-Górecki
2026-03-10 20:58 ` Ard Biesheuvel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®