rcu: Remove unused "cpu" parameter from rcu_report_qs_rdp()
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 20 Aug 2020 18:26:14 +0000 (11:26 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 25 Aug 2020 01:40:28 +0000 (18:40 -0700)
commitcfeac3977ab4b6222a01f79997739d2367a8cc94
tree707963754755696b24aa3c0da8fff15bd5e1910a
parentaa40c138cc8f36e2f5c721fd1bdb823a1ef1a237
rcu: Remove unused "cpu" parameter from rcu_report_qs_rdp()

The "cpu" parameter to rcu_report_qs_rdp() is not used, with rdp->cpu
being used instead.  Furtheremore, every call to rcu_report_qs_rdp()
invokes it on rdp->cpu.  This commit therefore removes this unused "cpu"
parameter and converts a check of rdp->cpu against smp_processor_id()
to a WARN_ON_ONCE().

Reported-by: Jann Horn <jannh@google.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree.c
kernel/rcu/tree_plugin.h