Re: [PATCH 15/19] rcu/context-tracking: Remove unused and/or unecessary middle functions

From: Frederic Weisbecker
Date: Fri Mar 11 2022 - 10:20:04 EST


On Wed, Mar 09, 2022 at 05:40:15PM +0100, nicolas saenz julienne wrote:
> On Wed, 2022-03-02 at 16:48 +0100, Frederic Weisbecker wrote:
> > Some eqs functions are now only used internally by context tracking, so
> > their public declarations can be removed.
> >
> > Also middle functions such as rcu_user_*() and rcu_idle_*()
> > which now directly call to rcu_eqs_enter() and rcu_eqs_exit() can be
> > wiped out as well.
> >
> > Signed-off-by: Frederic Weisbecker <frederic@xxxxxxxxxx>
> > Cc: Paul E. McKenney <paulmck@xxxxxxxxxx>
> > Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
> > Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> > Cc: Neeraj Upadhyay <quic_neeraju@xxxxxxxxxxx>
> > Cc: Uladzislau Rezki <uladzislau.rezki@xxxxxxxx>
> > Cc: Joel Fernandes <joel@xxxxxxxxxxxxxxxxx>
> > Cc: Boqun Feng <boqun.feng@xxxxxxxxx>
> > Cc: Nicolas Saenz Julienne <nsaenz@xxxxxxxxxx>
> > Cc: Marcelo Tosatti <mtosatti@xxxxxxxxxx>
> > Cc: Xiongfeng Wang <wangxiongfeng2@xxxxxxxxxx>
> > Cc: Yu Liao<liaoyu15@xxxxxxxxxx>
> > Cc: Phil Auld <pauld@xxxxxxxxxx>
> > Cc: Paul Gortmaker<paul.gortmaker@xxxxxxxxxxxxx>
> > Cc: Alex Belits <abelits@xxxxxxxxxxx>
> > ---
>
> You missed rcu_user_{enter,exit} declarations in rcupdate.h
>
> There are also comments refering to them in kernel/context_tracking.c and
> Documentation/RCU/stallwarn.rst.

And I thought nobody would notice ;-)

Thanks!