aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/kernel/rcu/tree_stall.h
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2020-05-19 15:02:02 -0700
committerPaul E. McKenney <paulmck@kernel.org>2020-06-29 11:58:50 -0700
commit55fbe86ef303bc8ab040e579fba34a750c08200e (patch)
tree6f6e3fd0b1795945c24da8684822ddf4654171ba /kernel/rcu/tree_stall.h
parenttick/nohz: Narrow down noise while setting current task's tick dependency (diff)
downloadwireguard-linux-55fbe86ef303bc8ab040e579fba34a750c08200e.tar.xz
wireguard-linux-55fbe86ef303bc8ab040e579fba34a750c08200e.zip
rcu: Remove initialized but unused rnp from check_slow_task()
This commit removes the variable rnp from check_slow_task(), which is defined, assigned to, but not otherwise used. Reported-by: kbuild test robot <lkp@intel.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'kernel/rcu/tree_stall.h')
-rw-r--r--kernel/rcu/tree_stall.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/rcu/tree_stall.h b/kernel/rcu/tree_stall.h
index 2768ce6bf657..d203f82a380a 100644
--- a/kernel/rcu/tree_stall.h
+++ b/kernel/rcu/tree_stall.h
@@ -237,14 +237,12 @@ struct rcu_stall_chk_rdr {
*/
static bool check_slow_task(struct task_struct *t, void *arg)
{
- struct rcu_node *rnp;
struct rcu_stall_chk_rdr *rscrp = arg;
if (task_curr(t))
return false; // It is running, so decline to inspect it.
rscrp->nesting = t->rcu_read_lock_nesting;
rscrp->rs = t->rcu_read_unlock_special;
- rnp = t->rcu_blocked_node;
rscrp->on_blkd_list = !list_empty(&t->rcu_node_entry);
return true;
}