* [hch-misc:sockptr /46] include/linux/kern_levels.h:5:18: warning: format '%p' expects argument of type 'void but argument 6 has type 'sockptr_t' {aka 'union <anonymous>'}
@ 2020-07-24 7:14 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-07-24 7:14 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2839 bytes --]
tree: git://git.infradead.org/users/hch/misc.git sockptr
head: 65b86d5658a5bbb84fe436c27cf60a6efb6b5303
commit: 6e97573fbdf946abb3ec30cabcc9aba14284aa3e [/46] net: pass a sockptr_t into ->setsockopt
config: x86_64-rhel-7.6-kselftests (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce (this is a W=1 build):
git checkout 6e97573fbdf946abb3ec30cabcc9aba14284aa3e
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
In file included from include/linux/printk.h:7,
from include/linux/kernel.h:15,
from include/linux/uio.h:8,
from include/linux/socket.h:8,
from include/linux/mISDNif.h:24,
from drivers/isdn/mISDN/socket.c:9:
drivers/isdn/mISDN/socket.c: In function 'data_sock_setsockopt':
>> include/linux/kern_levels.h:5:18: warning: format '%p' expects argument of type 'void *', but argument 6 has type 'sockptr_t' {aka 'union <anonymous>'} [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:15:20: note: in expansion of macro 'KERN_SOH'
15 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */
| ^~~~~~~~
drivers/isdn/mISDN/socket.c:410:10: note: in expansion of macro 'KERN_DEBUG'
410 | printk(KERN_DEBUG "%s(%p, %d, %x, %p, %d)\n", __func__, sock,
| ^~~~~~~~~~
drivers/isdn/mISDN/socket.c:410:38: note: format string is defined here
410 | printk(KERN_DEBUG "%s(%p, %d, %x, %p, %d)\n", __func__, sock,
| ~^
| |
| void *
git remote add hch-misc git://git.infradead.org/users/hch/misc.git
git remote update hch-misc
git checkout 6e97573fbdf946abb3ec30cabcc9aba14284aa3e
vim +5 include/linux/kern_levels.h
314ba3520e513a7 Joe Perches 2012-07-30 4
04d2c8c83d0e3ac Joe Perches 2012-07-30 @5 #define KERN_SOH "\001" /* ASCII Start Of Header */
04d2c8c83d0e3ac Joe Perches 2012-07-30 6 #define KERN_SOH_ASCII '\001'
04d2c8c83d0e3ac 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 CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 49992 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-07-24 7:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-24 7:14 [hch-misc:sockptr /46] include/linux/kern_levels.h:5:18: warning: format '%p' expects argument of type 'void but argument 6 has type 'sockptr_t' {aka 'union <anonymous>'} kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.