[efi:efi/memmap 10/12] include/linux/kern_levels.h:4:18: warning: format '%p' expects argument of type 'void *', but argument 2 has type 'phys_addr_t {aka long long unsigned int}'

[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:   082f8883d52943e490fce344aa803583ae43fdb2
commit: 9be86f8fb01c84b0ae0fe46addca153b94a389dc [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 9be86f8fb01c84b0ae0fe46addca153b94a389dc
        # 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 '%p' expects argument of type 'void *', 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 %pa\n", addr);
      ^~~~~~

vim +4 include/linux/kern_levels.h

314ba352 Joe Perches 2012-07-30   1  #ifndef __KERN_LEVELS_H__
314ba352 Joe Perches 2012-07-30   2  #define __KERN_LEVELS_H__
314ba352 Joe Perches 2012-07-30   3  
04d2c8c8 Joe Perches 2012-07-30  @4  #define KERN_SOH	"\001"		/* ASCII Start Of Header */
04d2c8c8 Joe Perches 2012-07-30   5  #define KERN_SOH_ASCII	'\001'
04d2c8c8 Joe Perches 2012-07-30   6  
04d2c8c8 Joe Perches 2012-07-30   7  #define KERN_EMERG	KERN_SOH "0"	/* system is unusable */
04d2c8c8 Joe Perches 2012-07-30   8  #define KERN_ALERT	KERN_SOH "1"	/* action must be taken immediately */
04d2c8c8 Joe Perches 2012-07-30   9  #define KERN_CRIT	KERN_SOH "2"	/* critical conditions */
04d2c8c8 Joe Perches 2012-07-30  10  #define KERN_ERR	KERN_SOH "3"	/* error conditions */
04d2c8c8 Joe Perches 2012-07-30  11  #define KERN_WARNING	KERN_SOH "4"	/* warning conditions */
04d2c8c8 Joe Perches 2012-07-30  12  #define KERN_NOTICE	KERN_SOH "5"	/* normal but significant condition */

:::::: The code at line 4 was first introduced by commit
:::::: 04d2c8c83d0e3ac5f78aeede51babb3236200112 printk: convert the format for KERN_<LEVEL> to a 2 byte pattern

:::::: TO: Joe Perches <joe@xxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>

---
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