tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 382d2f9e739bc6f151c718b38537ae522ff848cd commit: d8614f2f188affb96159bdb827d2b89abcf78bf1 [6379/7046] efi: memmap: Move manipulation routines into x86 arch tree config: ia64-allmodconfig compiler: ia64-linux-gcc (GCC) 12.1.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=d8614f2f188affb96159bdb827d2b89abcf78bf1 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout d8614f2f188affb96159bdb827d2b89abcf78bf1 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/firmware/efi/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/firmware/efi/memmap.c: In function '__efi_memmap_init': >> drivers/firmware/efi/memmap.c:60:52: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] 60 | efi.memmap.flags); | ^ vim +/if +60 drivers/firmware/efi/memmap.c 21 22 /** 23 * __efi_memmap_init - Common code for mapping the EFI memory map 24 * @data: EFI memory map data 25 * 26 * This function takes care of figuring out which function to use to 27 * map the EFI memory map in efi.memmap based on how far into the boot 28 * we are. 29 * 30 * During bootup EFI_MEMMAP_LATE in data->flags should be clear since we 31 * only have access to the early_memremap*() functions as the vmalloc 32 * space isn't setup. Once the kernel is fully booted we can fallback 33 * to the more robust memremap*() API. 34 * 35 * Returns zero on success, a negative error code on failure. 36 */ 37 int __init __efi_memmap_init(struct efi_memory_map_data *data) 38 { 39 struct efi_memory_map map; 40 phys_addr_t phys_map; 41 42 if (efi_enabled(EFI_PARAVIRT)) 43 return 0; 44 45 phys_map = data->phys_map; 46 47 if (data->flags & EFI_MEMMAP_LATE) 48 map.map = memremap(phys_map, data->size, MEMREMAP_WB); 49 else 50 map.map = early_memremap(phys_map, data->size); 51 52 if (!map.map) { 53 pr_err("Could not map the memory map!\n"); 54 return -ENOMEM; 55 } 56 57 if (efi.memmap.flags & (EFI_MEMMAP_MEMBLOCK | EFI_MEMMAP_SLAB)) 58 __efi_memmap_free(efi.memmap.phys_map, 59 efi.memmap.desc_size * efi.memmap.nr_map, > 60 efi.memmap.flags); 61 62 map.phys_map = data->phys_map; 63 map.nr_map = data->size / data->desc_size; 64 map.map_end = map.map + data->size; 65 66 map.desc_version = data->desc_version; 67 map.desc_size = data->desc_size; 68 map.flags = data->flags; 69 70 set_bit(EFI_MEMMAP, &efi.flags); 71 72 efi.memmap = map; 73 74 return 0; 75 } 76 -- 0-DAY CI Kernel Test Service https://01.org/lkp