Skip to content
Commit 474d0997 authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

tasks-rcu: Make show_rcu_tasks_gp_kthreads() be static inline



In some architectures, the no-op variant of show_rcu_tasks_gp_kthreads()
get "no previous prototype" compiler warnings.  These are false positives
given that kernel/rcu/tasks.h is included only once.  But why put up
with the compiler noise?

This commit therefore adds "static inline" to this definition to force
the compiler to accept this situation, while also moving it to its proper
place in kernel/rcu/rcu.h.

Reported-by: default avatarkernel test robot <lkp@intel.com>
[ paulmck: Update per Stephen Rothwell feedback. ]
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent cf868c2a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment