rcu-tasks: Prevent complaints of unused show_rcu_tasks_classic_gp_kthread()

Commit 8344496e8b49 ("rcu-tasks: Conditionally compile
show_rcu_tasks_gp_kthreads()") introduced conditional
compilation of several functions, but forgot one occurrence of
show_rcu_tasks_classic_gp_kthread() that causes the compiler to warn of
an unused static function. This commit uses "static inline" to avoid
these complaints and possibly also to avoid emitting an actual definition
of this function.

Fixes: 8344496e8b49 ("rcu-tasks: Conditionally compile show_rcu_tasks_gp_kthreads()")
Cc: <stable@vger.kernel.org> # 5.8.x
Reported-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>

+1 -1
+1 -1
kernel/rcu/tasks.h
··· 590 } 591 592 #else /* #ifdef CONFIG_TASKS_RCU */ 593 - static void show_rcu_tasks_classic_gp_kthread(void) { } 594 void exit_tasks_rcu_start(void) { } 595 void exit_tasks_rcu_finish(void) { exit_tasks_rcu_finish_trace(current); } 596 #endif /* #else #ifdef CONFIG_TASKS_RCU */
··· 590 } 591 592 #else /* #ifdef CONFIG_TASKS_RCU */ 593 + static inline void show_rcu_tasks_classic_gp_kthread(void) { } 594 void exit_tasks_rcu_start(void) { } 595 void exit_tasks_rcu_finish(void) { exit_tasks_rcu_finish_trace(current); } 596 #endif /* #else #ifdef CONFIG_TASKS_RCU */