Skip to content

Commit 78edc00

Browse files
committed
rcu-tasks: Prevent complaints of unused show_rcu_tasks_classic_gp_kthread()
Commit 8344496 ("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: 8344496 ("rcu-tasks: Conditionally compile show_rcu_tasks_gp_kthreads()") Cc: <[email protected]> # 5.8.x Reported-by: Laurent Pinchart <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
1 parent 9123e3a commit 78edc00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/rcu/tasks.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ void exit_tasks_rcu_finish(void) __releases(&tasks_rcu_exit_srcu)
590590
}
591591

592592
#else /* #ifdef CONFIG_TASKS_RCU */
593-
static void show_rcu_tasks_classic_gp_kthread(void) { }
593+
static inline void show_rcu_tasks_classic_gp_kthread(void) { }
594594
void exit_tasks_rcu_start(void) { }
595595
void exit_tasks_rcu_finish(void) { exit_tasks_rcu_finish_trace(current); }
596596
#endif /* #else #ifdef CONFIG_TASKS_RCU */

0 commit comments

Comments
 (0)