]> git.baikalelectronics.ru Git - kernel.git/commit
rcu-tasks: Prevent complaints of unused show_rcu_tasks_classic_gp_kthread()
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 25 Aug 2020 15:09:40 +0000 (08:09 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 16 Sep 2020 23:32:36 +0000 (16:32 -0700)
commitb1030a74832f6e4588ed3426f00b9433013bcba6
treee7874895e7bacc7625dbfe62aaf76ff082ef88d9
parente5f0bf958198ed018c9fdf06e8d307ced9af9c95
rcu-tasks: Prevent complaints of unused show_rcu_tasks_classic_gp_kthread()

Commit c5411467e36a ("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: c5411467e36a ("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>
kernel/rcu/tasks.h