[efi:efi/memmap 10/12] arch/x86/platform/efi/quirks.c:224:3: note: in expansion of macro 'pr_err'

[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-randconfig-i0-201625 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
        git checkout 5152005b2d1c552a5ad419265060d2a025507baf
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   In file included from include/linux/printk.h:6:0,
                    from include/linux/kernel.h:13,
                    from arch/x86/platform/efi/quirks.c:4:
   arch/x86/platform/efi/quirks.c: In function 'efi_arch_mem_reserve':
>> include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'phys_addr_t {aka long long unsigned int}' [-Wformat=]
    #define KERN_SOH "\001"  /* ASCII Start Of Header */
                     ^
   include/linux/kern_levels.h:10:18: note: in expansion of macro 'KERN_SOH'
    #define KERN_ERR KERN_SOH "3" /* error conditions */
                     ^~~~~~~~
   include/linux/printk.h:264:9: note: in expansion of macro 'KERN_ERR'
     printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
            ^~~~~~~~
>> arch/x86/platform/efi/quirks.c:224:3: note: in expansion of macro 'pr_err'
      pr_err("Failed to lookup EFI memory descriptor for 0x%016x\n", addr);
      ^~~~~~

vim +/pr_err +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