From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752331AbdK0KuH (ORCPT ); Mon, 27 Nov 2017 05:50:07 -0500 Received: from smtprelay0173.hostedemail.com ([216.40.44.173]:58186 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752065AbdK0KuE (ORCPT ); Mon, 27 Nov 2017 05:50:04 -0500 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::,RULES_HIT:41:69:355:379:541:599:800:960:968:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1431:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2197:2198:2199:2200:2393:2559:2562:2693:2828:3138:3139:3140:3141:3142:3353:3622:3653:3865:3867:3868:3870:3872:3874:4321:5007:8957:10004:10400:10848:11026:11232:11473:11658:11914:12043:12296:12438:12555:12740:12760:12895:13069:13311:13357:13439:14181:14659:14721:21080:21221:21627:30054:30070:30083:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: trees51_74be9ea7cc54f X-Filterd-Recvd-Size: 2814 Message-ID: <1511779800.32426.35.camel@perches.com> Subject: Re: [PATCH 4/4] checkpatch: remove ACCESS_ONCE() warning From: Joe Perches To: Mark Rutland , linux-kernel@vger.kernel.org, mingo@redhat.com Cc: acme@redhat.com, apw@canonical.com, paulmck@linux.vnet.ibm.com, peterz@infradead.org Date: Mon, 27 Nov 2017 02:50:00 -0800 In-Reply-To: <20171127103824.36526-5-mark.rutland@arm.com> References: <20171127103824.36526-1-mark.rutland@arm.com> <20171127103824.36526-5-mark.rutland@arm.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.26.1-1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2017-11-27 at 10:38 +0000, Mark Rutland wrote: > Now that ACCESS_ONCE() has been excised from the kernel, any uses will > result in a build error, and we no longer need to whine about it in > checkpatch. > > This patch removes the newly redundant warning. Acked-by: Joe Perches Normally, I send checkpatch patches via Andrew Morton, but this could be merged this directly. > Signed-off-by: Mark Rutland > Cc: Andy Whitcroft > Cc: Ingo Molnar > Cc: Joe Perches > Cc: Paul E. McKenney > Cc: Peter Zijlstra > --- > scripts/checkpatch.pl | 22 ---------------------- > 1 file changed, 22 deletions(-) > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > index 95cda3ecc66b..95c08493b78b 100755 > --- a/scripts/checkpatch.pl > +++ b/scripts/checkpatch.pl > @@ -6233,28 +6233,6 @@ sub process { > } > } > > -# whine about ACCESS_ONCE > - if ($^V && $^V ge 5.10.0 && > - $line =~ /\bACCESS_ONCE\s*$balanced_parens\s*(=(?!=))?\s*($FuncArg)?/) { > - my $par = $1; > - my $eq = $2; > - my $fun = $3; > - $par =~ s/^\(\s*(.*)\s*\)$/$1/; > - if (defined($eq)) { > - if (WARN("PREFER_WRITE_ONCE", > - "Prefer WRITE_ONCE(, ) over ACCESS_ONCE() = \n" . $herecurr) && > - $fix) { > - $fixed[$fixlinenr] =~ s/\bACCESS_ONCE\s*\(\s*\Q$par\E\s*\)\s*$eq\s*\Q$fun\E/WRITE_ONCE($par, $fun)/; > - } > - } else { > - if (WARN("PREFER_READ_ONCE", > - "Prefer READ_ONCE() over ACCESS_ONCE()\n" . $herecurr) && > - $fix) { > - $fixed[$fixlinenr] =~ s/\bACCESS_ONCE\s*\(\s*\Q$par\E\s*\)/READ_ONCE($par)/; > - } > - } > - } > - > # check for mutex_trylock_recursive usage > if ($line =~ /mutex_trylock_recursive/) { > ERROR("LOCKING",