From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751019AbdAPDfQ (ORCPT ); Sun, 15 Jan 2017 22:35:16 -0500 Received: from smtprelay0180.hostedemail.com ([216.40.44.180]:54089 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750827AbdAPDfP (ORCPT ); Sun, 15 Jan 2017 22:35:15 -0500 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::,RULES_HIT:41:355:379:541:599:800:960:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3653:3865:3866:3867:3868:3872:3873:4321:4362:5007:7576:10004:10400:10848:11232:11658:11914:12043:12555:12740:12760:12895:12986:13069:13161:13229:13311:13357:13439:14181:14659:14721:21067:21080:21451:30054:30070:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: feast81_67c0c0008b047 X-Filterd-Recvd-Size: 2068 Message-ID: <1484537711.2835.10.camel@perches.com> Subject: Re: [PATCH v2] checkpatch: update $logFunctions From: Joe Perches To: miles.chen@mediatek.com, Andy Whitcroft , Andrew Morton Cc: linux-kernel@vger.kernel.org, wsd_upstream@mediatek.com Date: Sun, 15 Jan 2017 19:35:11 -0800 In-Reply-To: <1484537124-18083-1-git-send-email-miles.chen@mediatek.com> References: <1484537124-18083-1-git-send-email-miles.chen@mediatek.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.3-0ubuntu0.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-01-16 at 11:25 +0800, miles.chen@mediatek.com wrote: > From: Miles Chen > > Currently checkpatch.pl does not recognize printk_deferred* functions as > log functions and complains about the line length of printk_deferred* > functoins. Add printk_deferred* to logFunctions to fix it. Thanks Miles. s/functoins/functions/ Andrew, if you apply this, could you please correct the spello above? > Signed-off-by: Miles Chen Acked-by: Joe Perches > --- > scripts/checkpatch.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > index 982c52c..36e5932 100755 > --- a/scripts/checkpatch.pl > +++ b/scripts/checkpatch.pl > @@ -424,7 +424,7 @@ our $typeTypedefs = qr{(?x: > our $zero_initializer = qr{(?:(?:0[xX])?0+$Int_type?|NULL|false)\b}; > > our $logFunctions = qr{(?x: > - printk(?:_ratelimited|_once|)| > + printk(?:_ratelimited|_once|_deferred_once|_deferred|)| > (?:[a-z0-9]+_){1,2}(?:printk|emerg|alert|crit|err|warning|warn|notice|info|debug|dbg|vdbg|devel|cont|WARN)(?:_ratelimited|_once|)| > WARN(?:_RATELIMIT|_ONCE|)| > panic|