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 <[email protected]>
:::::: CC: Paul E. McKenney <[email protected]>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip

Reply via email to