[rcu:dev.2021.04.02a 73/73] kernel/rcu/tree.h:420:13: warning: 'rcu_spawn_one_boost_kthread' used but never defined

From: kernel test robot
Date: Wed Apr 07 2021 - 22:19:36 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2021.04.02a
head: 4bc4fd6b7e87ff0bdb1aa2493af85be2784717c0
commit: 4bc4fd6b7e87ff0bdb1aa2493af85be2784717c0 [73/73] rcu: Fix RCU priority boosting and add more debug output
config: sparc-randconfig-p001-20210407 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git/commit/?id=4bc4fd6b7e87ff0bdb1aa2493af85be2784717c0
git remote add rcu https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git
git fetch --no-tags rcu dev.2021.04.02a
git checkout 4bc4fd6b7e87ff0bdb1aa2493af85be2784717c0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc

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

All warnings (new ones prefixed by >>):

In file included from kernel/rcu/tree.c:65:
>> kernel/rcu/tree.h:420:13: warning: 'rcu_spawn_one_boost_kthread' used but never defined
420 | static void rcu_spawn_one_boost_kthread(struct rcu_node *rnp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/rcu_spawn_one_boost_kthread +420 kernel/rcu/tree.h

404
405 /* Forward declarations for tree_plugin.h */
406 static void rcu_bootup_announce(void);
407 static void rcu_qs(void);
408 static int rcu_preempt_blocked_readers_cgp(struct rcu_node *rnp);
409 #ifdef CONFIG_HOTPLUG_CPU
410 static bool rcu_preempt_has_tasks(struct rcu_node *rnp);
411 #endif /* #ifdef CONFIG_HOTPLUG_CPU */
412 static int rcu_print_task_exp_stall(struct rcu_node *rnp);
413 static void rcu_preempt_check_blocked_tasks(struct rcu_node *rnp);
414 static void rcu_flavor_sched_clock_irq(int user);
415 static void dump_blkd_tasks(struct rcu_node *rnp, int ncheck);
416 static void rcu_initiate_boost(struct rcu_node *rnp, unsigned long flags);
417 static void rcu_preempt_boost_start_gp(struct rcu_node *rnp);
418 static bool rcu_is_callbacks_kthread(void);
419 static void rcu_cpu_kthread_setup(unsigned int cpu);
> 420 static void rcu_spawn_one_boost_kthread(struct rcu_node *rnp);
421 static void __init rcu_spawn_boost_kthreads(void);
422 static void rcu_prepare_kthreads(int cpu);
423 static void rcu_cleanup_after_idle(void);
424 static void rcu_prepare_for_idle(void);
425 static bool rcu_preempt_has_tasks(struct rcu_node *rnp);
426 static bool rcu_preempt_need_deferred_qs(struct task_struct *t);
427 static void rcu_preempt_deferred_qs(struct task_struct *t);
428 static void zero_cpu_stall_ticks(struct rcu_data *rdp);
429 static struct swait_queue_head *rcu_nocb_gp_get(struct rcu_node *rnp);
430 static void rcu_nocb_gp_cleanup(struct swait_queue_head *sq);
431 static void rcu_init_one_nocb(struct rcu_node *rnp);
432 static bool rcu_nocb_flush_bypass(struct rcu_data *rdp, struct rcu_head *rhp,
433 unsigned long j);
434 static bool rcu_nocb_try_bypass(struct rcu_data *rdp, struct rcu_head *rhp,
435 bool *was_alldone, unsigned long flags);
436 static void __call_rcu_nocb_wake(struct rcu_data *rdp, bool was_empty,
437 unsigned long flags);
438 static int rcu_nocb_need_deferred_wakeup(struct rcu_data *rdp, int level);
439 static bool do_nocb_deferred_wakeup(struct rcu_data *rdp);
440 static void rcu_boot_init_nocb_percpu_data(struct rcu_data *rdp);
441 static void rcu_spawn_cpu_nocb_kthread(int cpu);
442 static void __init rcu_spawn_nocb_kthreads(void);
443 static void show_rcu_nocb_state(struct rcu_data *rdp);
444 static void rcu_nocb_lock(struct rcu_data *rdp);
445 static void rcu_nocb_unlock(struct rcu_data *rdp);
446 static void rcu_nocb_unlock_irqrestore(struct rcu_data *rdp,
447 unsigned long flags);
448 static void rcu_lockdep_assert_cblist_protected(struct rcu_data *rdp);
449 #ifdef CONFIG_RCU_NOCB_CPU
450 static void __init rcu_organize_nocb_kthreads(void);
451 #define rcu_nocb_lock_irqsave(rdp, flags) \
452 do { \
453 if (!rcu_segcblist_is_offloaded(&(rdp)->cblist)) \
454 local_irq_save(flags); \
455 else \
456 raw_spin_lock_irqsave(&(rdp)->nocb_lock, (flags)); \
457 } while (0)
458 #else /* #ifdef CONFIG_RCU_NOCB_CPU */
459 #define rcu_nocb_lock_irqsave(rdp, flags) local_irq_save(flags)
460 #endif /* #else #ifdef CONFIG_RCU_NOCB_CPU */
461

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip