* [ardb:arm64-bti-veneers 15/18] drivers/firmware/efi/fdtparams.c:140:9: error: implicit declaration of function 'early_memremap_ro'; did you mean 'arch_memremap_wb'?
@ 2026-08-13 6:13 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-08-13 6:13 UTC (permalink / raw)
To: Ard Biesheuvel; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git arm64-bti-veneers
head: 82615c616e8cf0642701dd7adc233e43f761d580
commit: f973919abbc0179c7121f903d7b5d9495f2714a4 [15/18] efi: Pass EFI boot memmap struct address to core kernel
config: arm-randconfig-001-20260813 (https://download.01.org/0day-ci/archive/20260813/202608131437.YZdXNyK7-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260813/202608131437.YZdXNyK7-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/202608131437.YZdXNyK7-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
drivers/firmware/efi/fdtparams.c: In function 'efi_get_fdt_params':
>> drivers/firmware/efi/fdtparams.c:140:9: error: implicit declaration of function 'early_memremap_ro'; did you mean 'arch_memremap_wb'? [-Werror=implicit-function-declaration]
bm = early_memremap_ro(memmap, sizeof(*bm));
^~~~~~~~~~~~~~~~~
arch_memremap_wb
>> drivers/firmware/efi/fdtparams.c:140:7: warning: assignment to 'struct efi_boot_memmap *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
bm = early_memremap_ro(memmap, sizeof(*bm));
^
>> drivers/firmware/efi/fdtparams.c:151:4: error: implicit declaration of function 'early_memunmap'; did you mean 'devm_memunmap'? [-Werror=implicit-function-declaration]
early_memunmap(bm, sizeof(*bm));
^~~~~~~~~~~~~~
devm_memunmap
cc1: some warnings being treated as errors
vim +140 drivers/firmware/efi/fdtparams.c
86
87 u64 __init efi_get_fdt_params(struct efi_memory_map_data *mm)
88 {
89 const void *fdt = initial_boot_params;
90 unsigned long systab, memmap;
91 int i, j, node;
92 struct {
93 void *var;
94 int size;
95 } target[] = {
96 [SYSTAB] = { &systab, sizeof(systab) },
97 [MEMMAP] = { &memmap, sizeof(memmap) },
98 #ifdef CONFIG_XEN
99 [MMBASE] = { &mm->phys_map, sizeof(mm->phys_map) },
100 [MMSIZE] = { &mm->size, sizeof(mm->size) },
101 [DCSIZE] = { &mm->desc_size, sizeof(mm->desc_size) },
102 [DCVERS] = { &mm->desc_version, sizeof(mm->desc_version) },
103 #endif
104 };
105
106 BUILD_BUG_ON(ARRAY_SIZE(target) != ARRAY_SIZE(name));
107 BUILD_BUG_ON(ARRAY_SIZE(target) != ARRAY_SIZE(dt_params[0].params));
108
109 if (!fdt)
110 return 0;
111
112 for (i = 0; i < ARRAY_SIZE(dt_params); i++) {
113 node = fdt_path_offset(fdt, dt_params[i].path);
114 if (node < 0)
115 continue;
116
117 if (efi_enabled(EFI_DBG))
118 pr_info("Getting UEFI parameters from %s in DT:\n",
119 dt_params[i].path);
120
121 for (j = 0; j < ARRAY_SIZE(target); j++) {
122 const char *pname = dt_params[i].params[j];
123
124 if (pname[0] == '\0')
125 continue;
126
127 if (!efi_get_fdt_prop(fdt, node, pname, name[j],
128 target[j].var, target[j].size))
129 continue;
130 if (!j)
131 goto notfound;
132 pr_err("Can't find property '%s' in DT!\n", pname);
133 return 0;
134 }
135 if (IS_ENABLED(CONFIG_XEN) && dt_params[i].paravirt) {
136 set_bit(EFI_PARAVIRT, &efi.flags);
137 } else {
138 struct efi_boot_memmap *bm;
139
> 140 bm = early_memremap_ro(memmap, sizeof(*bm));
141 if (!bm) {
142 pr_err("Cannot remap EFI boot memory map\n");
143 return 0;
144 }
145
146 mm->phys_map = memmap + sizeof(*bm);
147 mm->size = bm->map_size;
148 mm->desc_size = bm->desc_size;
149 mm->desc_version = bm->desc_ver;
150
> 151 early_memunmap(bm, sizeof(*bm));
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-13 6:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-13 6:13 [ardb:arm64-bti-veneers 15/18] drivers/firmware/efi/fdtparams.c:140:9: error: implicit declaration of function 'early_memremap_ro'; did you mean 'arch_memremap_wb'? kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.