mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Joe Perches <joe@perches.com>
To: David Reaver <me@davidreaver.com>,
	Andy Whitcroft <apw@canonical.com>,
	 Dwaipayan Ray <dwaipayanray1@gmail.com>,
	Lukas Bulwahn <lukas.bulwahn@gmail.com>,
	"Paul E . McKenney"	 <paulmck@linux.ibm.com>,
	Andrew Morton <akpm@linux-foundation.org>
Cc: rcu@vger.kernel.org, linux-kernel@vger.kernel.org,
	Krister Johansen <kjlx@templeofstupid.com>
Subject: Re: [PATCH] checkpatch: Remove migrated RCU APIs from deprecated_apis
Date: Thu, 09 Jan 2025 07:56:51 -0800	[thread overview]
Message-ID: <ae3a285f61f087aed7aa0355d8ca6025994d4119.camel@perches.com> (raw)
In-Reply-To: <20250108192456.47871-1-me@davidreaver.com>

On Wed, 2025-01-08 at 11:24 -0800, David Reaver wrote:
> The deprecated_apis map was created in [1] so checkpatch would flag
> deprecated RCU APIs. These deprecated APIs have since been removed from the
> kernel. This patch removes them from this map so checkpatch doesn't waste
> time looking for them, and so readers of checkpatch looking for deprecated
> APIs don't waste time searching for them.

Acked-by: Joe Perches <joe@perches.com>

Maybe remove the references from rcupdateup.h one day too.

> 
> Link: https://lore.kernel.org/all/20181111192904.3199-13-paulmck@linux.ibm.com/ [1]
> 
> Signed-off-by: David Reaver <me@davidreaver.com>
> ---
>  scripts/checkpatch.pl | 10 ----------
>  1 file changed, 10 deletions(-)
> 
> diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
> index 9eed3683ad76..842a39a01af1 100755
> --- a/scripts/checkpatch.pl
> +++ b/scripts/checkpatch.pl
> @@ -834,1 +834,1 @@ foreach my $entry (@mode_permission_funcs) {
>  $mode_perms_search = "(?:${mode_perms_search})";
> 
>  our %deprecated_apis = (
> -	"synchronize_rcu_bh"			=> "synchronize_rcu",
> -	"synchronize_rcu_bh_expedited"		=> "synchronize_rcu_expedited",
> -	"call_rcu_bh"				=> "call_rcu",
> -	"rcu_barrier_bh"			=> "rcu_barrier",
> -	"synchronize_sched"			=> "synchronize_rcu",
> -	"synchronize_sched_expedited"		=> "synchronize_rcu_expedited",
> -	"call_rcu_sched"			=> "call_rcu",
> -	"rcu_barrier_sched"			=> "rcu_barrier",
> -	"get_state_synchronize_sched"		=> "get_state_synchronize_rcu",
> -	"cond_synchronize_sched"		=> "cond_synchronize_rcu",
>  	"kmap"					=> "kmap_local_page",
>  	"kunmap"				=> "kunmap_local",
>  	"kmap_atomic"				=> "kmap_local_page",


  parent reply	other threads:[~2025-01-09 15:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-08 19:24 David Reaver
2025-01-08 20:01 ` Paul E. McKenney
2025-01-09  0:48 ` Kuan-Wei Chiu
2025-01-09 15:56 ` Joe Perches [this message]
2025-01-09 17:00   ` Paul E. McKenney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ae3a285f61f087aed7aa0355d8ca6025994d4119.camel@perches.com \
    --to=joe@perches.com \
    --cc=akpm@linux-foundation.org \
    --cc=apw@canonical.com \
    --cc=dwaipayanray1@gmail.com \
    --cc=kjlx@templeofstupid.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lukas.bulwahn@gmail.com \
    --cc=me@davidreaver.com \
    --cc=paulmck@linux.ibm.com \
    --cc=rcu@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®