* [mac80211-next:netlink-policy-export 11/11] include/linux/kern_levels.h:5:18: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'void *'
@ 2019-04-05 14:06 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-04-05 14:06 UTC (permalink / raw)
To: Johannes Berg; +Cc: kbuild-all, linux-wireless
[-- Attachment #1: Type: text/plain, Size: 3702 bytes --]
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 <joe@perches.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 56829 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-04-05 14:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-05 14:06 [mac80211-next:netlink-policy-export 11/11] include/linux/kern_levels.h:5:18: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'void *' kbuild test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox