From: kbuild test robot <lkp@intel.com>
To: Johannes Berg <johannes.berg@intel.com>
Cc: kbuild-all@01.org, linux-wireless@vger.kernel.org
Subject: [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 *'
Date: Fri, 5 Apr 2019 22:06:04 +0800 [thread overview]
Message-ID: <201904052259.J0NWtrdt%lkp@intel.com> (raw)
[-- 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 --]
reply other threads:[~2019-04-05 14:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201904052259.J0NWtrdt%lkp@intel.com \
--to=lkp@intel.com \
--cc=johannes.berg@intel.com \
--cc=kbuild-all@01.org \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox