[cminyard-ipmi:for-next 9/11] drivers/char/ipmi/ipmi_msghandler.c:14:31: error: called object is not a function or function pointer

From: kernel test robot
Date: Fri Apr 15 2022 - 09:11:52 EST


tree: https://github.com/cminyard/linux-ipmi for-next
head: d2e94b3095bb7886bce0fb313bc9f65a94dc6ce5
commit: 7cd75d3cce636c70f968287dfeaee1458564d1ba [9/11] ipmi: Convert pr_debug() to dev_dbg()
config: i386-randconfig-a005 (https://download.01.org/0day-ci/archive/20220415/202204152125.TxH8q58H-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.2.0-19) 11.2.0
reproduce (this is a W=1 build):
# https://github.com/cminyard/linux-ipmi/commit/7cd75d3cce636c70f968287dfeaee1458564d1ba
git remote add cminyard-ipmi https://github.com/cminyard/linux-ipmi
git fetch --no-tags cminyard-ipmi for-next
git checkout 7cd75d3cce636c70f968287dfeaee1458564d1ba
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

In file included from include/linux/printk.h:555,
from include/linux/kernel.h:29,
from arch/x86/include/asm/percpu.h:27,
from arch/x86/include/asm/current.h:6,
from arch/x86/include/asm/processor.h:17,
from arch/x86/include/asm/timex.h:5,
from include/linux/timex.h:65,
from include/linux/time32.h:13,
from include/linux/time.h:60,
from include/linux/stat.h:19,
from include/linux/module.h:13,
from drivers/char/ipmi/ipmi_msghandler.c:17:
drivers/char/ipmi/ipmi_msghandler.c: In function 'i_ipmi_request':
>> drivers/char/ipmi/ipmi_msghandler.c:14:31: error: called object is not a function or function pointer
14 | #define pr_fmt(fmt) "%s" fmt, "IPMI message handler: "
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:134:17: note: in definition of macro '__dynamic_func_call'
134 | func(&id, ##__VA_ARGS__); \
| ^~~~
include/linux/dynamic_debug.h:166:9: note: in expansion of macro '_dynamic_func_call'
166 | _dynamic_func_call(fmt,__dynamic_dev_dbg, \
| ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:155:9: note: in expansion of macro 'dynamic_dev_dbg'
155 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~
drivers/char/ipmi/ipmi_msghandler.c:15:17: note: in expansion of macro 'pr_fmt'
15 | #define dev_fmt pr_fmt
| ^~~~~~
include/linux/dev_printk.h:155:30: note: in expansion of macro 'dev_fmt'
155 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
drivers/char/ipmi/ipmi_msghandler.c:2387:17: note: in expansion of macro 'dev_dbg'
2387 | dev_dbg(intf->si_dev, "Send: %*ph\n",
| ^~~~~~~
drivers/char/ipmi/ipmi_msghandler.c: In function 'handle_ipmb_get_msg_cmd':
>> drivers/char/ipmi/ipmi_msghandler.c:14:31: error: called object is not a function or function pointer
14 | #define pr_fmt(fmt) "%s" fmt, "IPMI message handler: "
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:134:17: note: in definition of macro '__dynamic_func_call'
134 | func(&id, ##__VA_ARGS__); \
| ^~~~
include/linux/dynamic_debug.h:166:9: note: in expansion of macro '_dynamic_func_call'
166 | _dynamic_func_call(fmt,__dynamic_dev_dbg, \
| ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:155:9: note: in expansion of macro 'dynamic_dev_dbg'
155 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~
drivers/char/ipmi/ipmi_msghandler.c:15:17: note: in expansion of macro 'pr_fmt'
15 | #define dev_fmt pr_fmt
| ^~~~~~
include/linux/dev_printk.h:155:30: note: in expansion of macro 'dev_fmt'
155 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
drivers/char/ipmi/ipmi_msghandler.c:3926:17: note: in expansion of macro 'dev_dbg'
3926 | dev_dbg(intf->si_dev, "Invalid command: %*ph\n",
| ^~~~~~~
drivers/char/ipmi/ipmi_msghandler.c: In function 'handle_one_recv_msg':
>> drivers/char/ipmi/ipmi_msghandler.c:14:31: error: called object is not a function or function pointer
14 | #define pr_fmt(fmt) "%s" fmt, "IPMI message handler: "
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:134:17: note: in definition of macro '__dynamic_func_call'
134 | func(&id, ##__VA_ARGS__); \
| ^~~~
include/linux/dynamic_debug.h:166:9: note: in expansion of macro '_dynamic_func_call'
166 | _dynamic_func_call(fmt,__dynamic_dev_dbg, \
| ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:155:9: note: in expansion of macro 'dynamic_dev_dbg'
155 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~
drivers/char/ipmi/ipmi_msghandler.c:15:17: note: in expansion of macro 'pr_fmt'
15 | #define dev_fmt pr_fmt
| ^~~~~~
include/linux/dev_printk.h:155:30: note: in expansion of macro 'dev_fmt'
155 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
drivers/char/ipmi/ipmi_msghandler.c:4535:9: note: in expansion of macro 'dev_dbg'
4535 | dev_dbg(intf->si_dev, "Recv: %*ph\n", msg->rsp_size, msg->rsp);
| ^~~~~~~
drivers/char/ipmi/ipmi_msghandler.c: In function 'smi_from_recv_msg':
>> drivers/char/ipmi/ipmi_msghandler.c:14:31: error: called object is not a function or function pointer
14 | #define pr_fmt(fmt) "%s" fmt, "IPMI message handler: "
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:134:17: note: in definition of macro '__dynamic_func_call'
134 | func(&id, ##__VA_ARGS__); \
| ^~~~
include/linux/dynamic_debug.h:166:9: note: in expansion of macro '_dynamic_func_call'
166 | _dynamic_func_call(fmt,__dynamic_dev_dbg, \
| ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:155:9: note: in expansion of macro 'dynamic_dev_dbg'
155 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~
drivers/char/ipmi/ipmi_msghandler.c:15:17: note: in expansion of macro 'pr_fmt'
15 | #define dev_fmt pr_fmt
| ^~~~~~
include/linux/dev_printk.h:155:30: note: in expansion of macro 'dev_fmt'
155 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
drivers/char/ipmi/ipmi_msghandler.c:4917:9: note: in expansion of macro 'dev_dbg'
4917 | dev_dbg(intf->si_dev, "Resend: %*ph\n",
| ^~~~~~~


vim +14 drivers/char/ipmi/ipmi_msghandler.c

445e2cbda928a3 Joe Perches 2018-05-09 @14 #define pr_fmt(fmt) "%s" fmt, "IPMI message handler: "
445e2cbda928a3 Joe Perches 2018-05-09 15 #define dev_fmt pr_fmt
445e2cbda928a3 Joe Perches 2018-05-09 16

:::::: The code at line 14 was first introduced by commit
:::::: 445e2cbda928a3523c1c1da76788d19df52611c8 ipmi: msghandler: Add and use pr_fmt and dev_fmt, remove PFX

:::::: TO: Joe Perches <joe@xxxxxxxxxxx>
:::::: CC: Corey Minyard <cminyard@xxxxxxxxxx>

--
0-DAY CI Kernel Test Service
https://01.org/lkp