[rcu:dev.2019.08.01b 66/72] kernel/rcu/rcutorture.c:1767:4: error: implicit declaration of function 'rcu_momentary_dyntick_idle'

From: kbuild test robot
Date: Fri Aug 09 2019 - 16:39:17 EST


tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2019.08.01b
head: 6c92be8b1b81158f48ab0cb00d34d451dae1fa3c
commit: 5f4264e33ca4e7cee035cee5bfa62f6d1bbf2cda [66/72] rcutorture: Emulate dyntick aspect of userspace nohz_full sojourn
config: i386-randconfig-d004-201931 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-10) 7.4.0
reproduce:
git checkout 5f4264e33ca4e7cee035cee5bfa62f6d1bbf2cda
# save the attached .config to linux build tree
make ARCH=i386

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

All errors (new ones prefixed by >>):

kernel/rcu/rcutorture.c: In function 'rcu_torture_fwd_prog_cbfree':
>> kernel/rcu/rcutorture.c:1767:4: error: implicit declaration of function 'rcu_momentary_dyntick_idle' [-Werror=implicit-function-declaration]
rcu_momentary_dyntick_idle();
^~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors

vim +/rcu_momentary_dyntick_idle +1767 kernel/rcu/rcutorture.c

1741
1742 /*
1743 * Free all callbacks on the rcu_fwd_cb_head list, either because the
1744 * test is over or because we hit an OOM event.
1745 */
1746 static unsigned long rcu_torture_fwd_prog_cbfree(void)
1747 {
1748 unsigned long flags;
1749 unsigned long freed = 0;
1750 struct rcu_fwd_cb *rfcp;
1751
1752 for (;;) {
1753 spin_lock_irqsave(&rcu_fwd_lock, flags);
1754 rfcp = rcu_fwd_cb_head;
1755 if (!rfcp) {
1756 spin_unlock_irqrestore(&rcu_fwd_lock, flags);
1757 break;
1758 }
1759 rcu_fwd_cb_head = rfcp->rfc_next;
1760 if (!rcu_fwd_cb_head)
1761 rcu_fwd_cb_tail = &rcu_fwd_cb_head;
1762 spin_unlock_irqrestore(&rcu_fwd_lock, flags);
1763 kfree(rfcp);
1764 freed++;
1765 rcu_torture_fwd_prog_cond_resched(freed);
1766 if (IS_ENABLED(CONFIG_NO_HZ_FULL))
> 1767 rcu_momentary_dyntick_idle();
1768 }
1769 return freed;
1770 }
1771

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

Attachment: .config.gz
Description: application/gzip