[efi:efi/memmap 10/12] arch/x86/platform/efi/quirks.c:224:3: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'phys_addr_t'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mfleming/efi.git efi/memmap
head:   b615359a8332f5d5fa35f03fa4f17c21b0020919
commit: 5152005b2d1c552a5ad419265060d2a025507baf [10/12] efi: Allow drivers to reserve boot services forever
config: x86_64-rhel (attached as .config)
compiler: gcc-4.9 (Debian 4.9.3-14) 4.9.3
reproduce:
        git checkout 5152005b2d1c552a5ad419265060d2a025507baf
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   arch/x86/platform/efi/quirks.c: In function 'efi_arch_mem_reserve':
>> arch/x86/platform/efi/quirks.c:224:3: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'phys_addr_t' [-Wformat=]
      pr_err("Failed to lookup EFI memory descriptor for 0x%016x\n", addr);
      ^

vim +224 arch/x86/platform/efi/quirks.c

   208		void *new;
   209	
   210		if (WARN_ON(freed_efi_boot_services))
   211			return;
   212	
   213		for_each_efi_memory_desc_in_map(&boot_services_map, md) {
   214			u64 size, end;
   215	
   216			size = md->num_pages << EFI_PAGE_SHIFT;
   217			end = md->phys_addr + size;
   218	
   219			if (addr >= md->phys_addr && addr < end)
   220				break;
   221		}
   222	
   223		if (!md) {
 > 224			pr_err("Failed to lookup EFI memory descriptor for 0x%016x\n", addr);
   225			return;
   226		}
   227	
   228		mr.range.start = addr;
   229		mr.range.end = addr + size;
   230		mr.attribute = md->attribute;
   231	
   232		num_entries = efi_memmap_split_count(md, &mr.range);

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux