From: kbuild test robot <fengguang.wu@intel.com>
To: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org
Subject: [rcu:rcu/next 40/42] include/linux/rcu_segcblist.h:672:2: note: in expansion of macro 'pr_info'
Date: Wed, 15 Mar 2017 07:06:18 +0800 [thread overview]
Message-ID: <201703150713.hYst5KEQ%fengguang.wu@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4751 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/next
head: 771147ecd0f12220493dba0e1e7e91e2eba7841e
commit: 2c161784c6969441e409a749088a2a42198760fc [40/42] srcu: Use rcu_segcblist to track SRCU callbacks
config: blackfin-allmodconfig (attached as .config)
compiler: bfin-uclinux-gcc (GCC) 6.2.0
reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 2c161784c6969441e409a749088a2a42198760fc
# save the attached .config to linux build tree
make.cross ARCH=blackfin
All warnings (new ones prefixed by >>):
include/linux/rcu_segcblist.h: In function 'rcu_segcblist_dump':
arch/blackfin/kernel/module.c:7:40: error: 'mod' undeclared (first use in this function)
#define pr_fmt(fmt) "module %s: " fmt, mod->name
^
include/linux/printk.h:308:19: note: in expansion of macro 'pr_fmt'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~
>> include/linux/rcu_segcblist.h:672:2: note: in expansion of macro 'pr_info'
pr_info("%p->head = %p\n", rsclp, rsclp->head);
^~~~~~~
arch/blackfin/kernel/module.c:7:40: note: each undeclared identifier is reported only once for each function it appears in
#define pr_fmt(fmt) "module %s: " fmt, mod->name
^
include/linux/printk.h:308:19: note: in expansion of macro 'pr_fmt'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~
>> include/linux/rcu_segcblist.h:672:2: note: in expansion of macro 'pr_info'
pr_info("%p->head = %p\n", rsclp, rsclp->head);
^~~~~~~
vim +/pr_info +672 include/linux/rcu_segcblist.h
f1531c50 kernel/rcu/rcu_segcblist.h Paul E. McKenney 2017-02-08 656
f1531c50 kernel/rcu/rcu_segcblist.h Paul E. McKenney 2017-02-08 657 /*
f1531c50 kernel/rcu/rcu_segcblist.h Paul E. McKenney 2017-02-08 658 * Interim function to return rcu_segcblist head pointer. Longer term, the
f1531c50 kernel/rcu/rcu_segcblist.h Paul E. McKenney 2017-02-08 659 * rcu_segcblist will be used more pervasively, removing the need for this
f1531c50 kernel/rcu/rcu_segcblist.h Paul E. McKenney 2017-02-08 660 * function.
f1531c50 kernel/rcu/rcu_segcblist.h Paul E. McKenney 2017-02-08 661 */
f1531c50 kernel/rcu/rcu_segcblist.h Paul E. McKenney 2017-02-08 662 static inline struct rcu_head **rcu_segcblist_tail(struct rcu_segcblist *rsclp)
f1531c50 kernel/rcu/rcu_segcblist.h Paul E. McKenney 2017-02-08 663 {
f1531c50 kernel/rcu/rcu_segcblist.h Paul E. McKenney 2017-02-08 664 WARN_ON_ONCE(rcu_segcblist_empty(rsclp));
f1531c50 kernel/rcu/rcu_segcblist.h Paul E. McKenney 2017-02-08 665 return rsclp->tails[RCU_NEXT_TAIL];
f1531c50 kernel/rcu/rcu_segcblist.h Paul E. McKenney 2017-02-08 666 }
f1531c50 kernel/rcu/rcu_segcblist.h Paul E. McKenney 2017-02-08 667
f1531c50 kernel/rcu/rcu_segcblist.h Paul E. McKenney 2017-02-08 668 static inline void rcu_segcblist_dump(struct rcu_segcblist *rsclp)
f1531c50 kernel/rcu/rcu_segcblist.h Paul E. McKenney 2017-02-08 669 {
f1531c50 kernel/rcu/rcu_segcblist.h Paul E. McKenney 2017-02-08 670 int i;
f1531c50 kernel/rcu/rcu_segcblist.h Paul E. McKenney 2017-02-08 671
f1531c50 kernel/rcu/rcu_segcblist.h Paul E. McKenney 2017-02-08 @672 pr_info("%p->head = %p\n", rsclp, rsclp->head);
f1531c50 kernel/rcu/rcu_segcblist.h Paul E. McKenney 2017-02-08 673 for (i = RCU_DONE_TAIL; i < RCU_CBLIST_NSEGS; i++)
f1531c50 kernel/rcu/rcu_segcblist.h Paul E. McKenney 2017-02-08 674 pr_info("\t->tails[%d] = %p, ->gp_seq[%d] = %ld\n",
f1531c50 kernel/rcu/rcu_segcblist.h Paul E. McKenney 2017-02-08 675 i, rsclp->tails[i], i, rsclp->gp_seq[i]);
f1531c50 kernel/rcu/rcu_segcblist.h Paul E. McKenney 2017-02-08 676 pr_info("->len = %ld, ->len_lazy = %ld\n", rsclp->len, rsclp->len_lazy);
f1531c50 kernel/rcu/rcu_segcblist.h Paul E. McKenney 2017-02-08 677 }
f1531c50 kernel/rcu/rcu_segcblist.h Paul E. McKenney 2017-02-08 678
f1531c50 kernel/rcu/rcu_segcblist.h Paul E. McKenney 2017-02-08 679 /*
f1531c50 kernel/rcu/rcu_segcblist.h Paul E. McKenney 2017-02-08 680 * Do consistency check on the specified rcu_segcblist structure, but
:::::: The code at line 672 was first introduced by commit
:::::: f1531c507a92aa99bd763292b31ab2f435208528 rcu: Abstract multi-tail callback list handling
:::::: TO: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
:::::: CC: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
---
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: 43874 bytes --]
reply other threads:[~2017-03-14 23: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=201703150713.hYst5KEQ%fengguang.wu@intel.com \
--to=fengguang.wu@intel.com \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=paulmck@linux.vnet.ibm.com \
/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;
as well as URLs for NNTP newsgroup(s).