tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git 
netlink-policy-export
head:   334240a63c7e6da8be21a0c469751afe72e73ef0
commit: 334240a63c7e6da8be21a0c469751afe72e73ef0 [11/11] netlink: add 
infrastructure to expose policies to userspace
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 8.1.0
reproduce:
        wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 334240a63c7e6da8be21a0c469751afe72e73ef0
        # save the attached .config to linux build tree
        GCC_VERSION=8.1.0 make.cross ARCH=xtensa 

All warnings (new ones prefixed by >>):

   In file included from include/linux/printk.h:7,
                    from include/linux/kernel.h:15,
                    from include/linux/list.h:9,
                    from include/linux/module.h:9,
                    from net//netlink/genetlink.c:10:
   net//netlink/genetlink.c: In function 'ctrl_dumppolicy':
>> include/linux/kern_levels.h:5:18: warning: format '%s' expects argument of 
>> type 'char *', but argument 2 has type 'void *' [-Wformat=]
    #define KERN_SOH "\001"  /* ASCII Start Of Header */
                     ^~~~~~
   include/linux/kern_levels.h:15:20: note: in expansion of macro 'KERN_SOH'
    #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */
                       ^~~~~~~~
   net//netlink/genetlink.c:983:11: note: in expansion of macro 'KERN_DEBUG'
       printk(KERN_DEBUG "find by name '%s'\n", 
nla_data(tb[CTRL_ATTR_FAMILY_NAME]));
              ^~~~~~~~~~
   net//netlink/genetlink.c:983:38: note: format string is defined here
       printk(KERN_DEBUG "find by name '%s'\n", 
nla_data(tb[CTRL_ATTR_FAMILY_NAME]));
                                        ~^
                                        %p
--
   In file included from include/linux/printk.h:7,
                    from include/linux/kernel.h:15,
                    from include/linux/list.h:9,
                    from include/linux/module.h:9,
                    from net/netlink/genetlink.c:10:
   net/netlink/genetlink.c: In function 'ctrl_dumppolicy':
>> include/linux/kern_levels.h:5:18: warning: format '%s' expects argument of 
>> type 'char *', but argument 2 has type 'void *' [-Wformat=]
    #define KERN_SOH "\001"  /* ASCII Start Of Header */
                     ^~~~~~
   include/linux/kern_levels.h:15:20: note: in expansion of macro 'KERN_SOH'
    #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */
                       ^~~~~~~~
   net/netlink/genetlink.c:983:11: note: in expansion of macro 'KERN_DEBUG'
       printk(KERN_DEBUG "find by name '%s'\n", 
nla_data(tb[CTRL_ATTR_FAMILY_NAME]));
              ^~~~~~~~~~
   net/netlink/genetlink.c:983:38: note: format string is defined here
       printk(KERN_DEBUG "find by name '%s'\n", 
nla_data(tb[CTRL_ATTR_FAMILY_NAME]));
                                        ~^
                                        %p

vim +5 include/linux/kern_levels.h

314ba352 Joe Perches 2012-07-30  4  
04d2c8c8 Joe Perches 2012-07-30 @5  #define KERN_SOH    "\001"          /* 
ASCII Start Of Header */
04d2c8c8 Joe Perches 2012-07-30  6  #define KERN_SOH_ASCII      '\001'
04d2c8c8 Joe Perches 2012-07-30  7  

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

:::::: TO: Joe Perches <[email protected]>
:::::: CC: Linus Torvalds <[email protected]>

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

Attachment: .config.gz
Description: application/gzip

Reply via email to