From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751605AbdIUC2l (ORCPT ); Wed, 20 Sep 2017 22:28:41 -0400 Received: from smtprelay0114.hostedemail.com ([216.40.44.114]:41422 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751095AbdIUC2j (ORCPT ); Wed, 20 Sep 2017 22:28:39 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 30,2,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::::::::::::::::::,RULES_HIT:41:355:379:541:599:960: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:3867:3868:3871:3872:3873:4321:5007:6742:10004:10400:10848:11232:11658:11914:12740:12895:13069:13095:13141:13230:13311:13357:13439:13894:14659:14721:21080:21433:21505:21627:30054: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:1,LUA_SUMMARY:none X-HE-Tag: dolls02_85476e8990344 X-Filterd-Recvd-Size: 2600 Message-ID: <1505960913.12311.18.camel@perches.com> Subject: Re: [RFC][PATCH v2 7/7] checkpatch: add pF/pf deprecation warning From: Joe Perches To: Sergey Senozhatsky Cc: Sergey Senozhatsky , Tony Luck , Fenghua Yu , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , James Bottomley , Helge Deller , Petr Mladek , Steven Rostedt , Andrew Morton , Jessica Yu , Alexei Starovoitov , linux-ia64@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Andy Whitcroft Date: Wed, 20 Sep 2017 19:28:33 -0700 In-Reply-To: <20170921002717.GA773@jagdpanzerIV.localdomain> References: <20170920162910.32053-1-sergey.senozhatsky@gmail.com> <20170920162910.32053-8-sergey.senozhatsky@gmail.com> <1505929138.12311.5.camel@perches.com> <20170921002717.GA773@jagdpanzerIV.localdomain> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.6-1ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2017-09-21 at 09:27 +0900, Sergey Senozhatsky wrote: > On (09/20/17 10:38), Joe Perches wrote: > > On Thu, 2017-09-21 at 01:29 +0900, Sergey Senozhatsky wrote: > > > We deprecated '%pF/%pf' printk specifiers, since '%pS/%ps' is now smart > > > enough to handle function pointer dereference on platforms where such > > > dereference is required. > > > > > > checkpatch warning example: > > > > > > WARNING: Use '%pS/%ps' instead. This pointer extension was deprecated: '%pF' > > > > If this series is accepted, I think this message > > is unclear and would prefer something like: > > sure, can tweak the patch. > > [..] > >   if ($bad_extension ne "") { > >   my $stat_real = raw_line($linenr, 0); > > + my $ext_type = "Invalid"; > > + my $use = ""; > >   for (my $count = $linenr + 1; $count <= $lc; $count++) { > >   $stat_real = $stat_real . "\n" . raw_line($count, 0); > >   } > > + if ($bad_extension =~ /p[Ff]/i) { > > I think /i is not necessary here You are right, it's not.