mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Corey Minyard <cminyard@mvista.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [cminyard-ipmi:for-next 9/11] drivers/char/ipmi/ipmi_msghandler.c:14:31: error: called object is not a function or function pointer
Date: Fri, 15 Apr 2022 21:10:40 +0800	[thread overview]
Message-ID: <202204152125.TxH8q58H-lkp@intel.com> (raw)

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@intel.com/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@intel.com>

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@perches.com>
:::::: CC: Corey Minyard <cminyard@mvista.com>

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

                 reply	other threads:[~2022-04-15 13:11 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=202204152125.TxH8q58H-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=cminyard@mvista.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@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

all inboxes | Powered by JetHome®