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 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 '} [-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_ to a 2 byte pattern :::::: TO: Joe Perches :::::: CC: Linus Torvalds --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org