* [efi:next 1/4] drivers/firmware/efi/efi.c:1009:37: error: passing 'const efi_memory_desc_t *' to parameter of type 'efi_memory_desc_t *' discards qualifiers
@ 2026-03-10 20:54 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-03-10 20:54 UTC (permalink / raw)
To: Marek Marczykowski-Górecki
Cc: llvm, oe-kbuild-all, linux-efi, Ard Biesheuvel
tree: https://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git next
head: c8da97cbb39c4c043d8456fcae25aa921c844a3f
commit: 5992265762e666564b0275d72e54c514ab20c7f3 [1/4] efi: make efi_mem_type() and efi_mem_attributes() work on Xen PV
config: loongarch-allnoconfig (https://download.01.org/0day-ci/archive/20260311/202603110434.qe4wAhhY-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 122f0b13a237b5024747b4ee99002590cc9a220a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260311/202603110434.qe4wAhhY-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603110434.qe4wAhhY-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/firmware/efi/efi.c:1009:37: error: passing 'const efi_memory_desc_t *' to parameter of type 'efi_memory_desc_t *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
1009 | if (efi_mem_desc_lookup(phys_addr, &md))
| ^~~
drivers/firmware/efi/efi.c:570:19: note: passing argument to parameter here
570 | EXPORT_SYMBOL_GPL(efi_mem_desc_lookup);
| ^
1 error generated.
vim +1009 drivers/firmware/efi/efi.c
993
994 /*
995 * efi_mem_type - lookup memmap type for physical address
996 * @phys_addr: the physical address to lookup
997 *
998 * Search in the EFI memory map for the region covering @phys_addr.
999 * Returns the EFI memory type if the region was found in the memory
1000 * map, -EINVAL otherwise.
1001 */
1002 int efi_mem_type(unsigned long phys_addr)
1003 {
1004 const efi_memory_desc_t md;
1005
1006 if (!efi_enabled(EFI_MEMMAP) && !efi_enabled(EFI_PARAVIRT))
1007 return -ENOTSUPP;
1008
> 1009 if (efi_mem_desc_lookup(phys_addr, &md))
1010 return -EINVAL;
1011
1012 return md.type;
1013 }
1014
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread* [efi:next 1/4] drivers/firmware/efi/efi.c:1009:37: error: passing 'const efi_memory_desc_t *' to parameter of type 'efi_memory_desc_t *' discards qualifiers
@ 2026-03-10 17:38 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-03-10 17:38 UTC (permalink / raw)
To: Marek Marczykowski-Górecki
Cc: llvm, oe-kbuild-all, linux-efi, Ard Biesheuvel
tree: https://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git next
head: c8da97cbb39c4c043d8456fcae25aa921c844a3f
commit: 5992265762e666564b0275d72e54c514ab20c7f3 [1/4] efi: make efi_mem_type() and efi_mem_attributes() work on Xen PV
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20260310/202603101859.RnuowrOx-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260310/202603101859.RnuowrOx-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603101859.RnuowrOx-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/firmware/efi/efi.c:1009:37: error: passing 'const efi_memory_desc_t *' to parameter of type 'efi_memory_desc_t *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
1009 | if (efi_mem_desc_lookup(phys_addr, &md))
| ^~~
drivers/firmware/efi/efi.c:570:19: note: passing argument to parameter here
570 | EXPORT_SYMBOL_GPL(efi_mem_desc_lookup);
| ^
1 error generated.
vim +1009 drivers/firmware/efi/efi.c
993
994 /*
995 * efi_mem_type - lookup memmap type for physical address
996 * @phys_addr: the physical address to lookup
997 *
998 * Search in the EFI memory map for the region covering @phys_addr.
999 * Returns the EFI memory type if the region was found in the memory
1000 * map, -EINVAL otherwise.
1001 */
1002 int efi_mem_type(unsigned long phys_addr)
1003 {
1004 const efi_memory_desc_t md;
1005
1006 if (!efi_enabled(EFI_MEMMAP) && !efi_enabled(EFI_PARAVIRT))
1007 return -ENOTSUPP;
1008
> 1009 if (efi_mem_desc_lookup(phys_addr, &md))
1010 return -EINVAL;
1011
1012 return md.type;
1013 }
1014
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-03-10 20:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-10 20:54 [efi:next 1/4] drivers/firmware/efi/efi.c:1009:37: error: passing 'const efi_memory_desc_t *' to parameter of type 'efi_memory_desc_t *' discards qualifiers kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2026-03-10 17:38 kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox