From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtprelay.hostedemail.com (smtprelay0127.hostedemail.com [216.40.44.127]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3xyLBz0tjmzDqBc for ; Thu, 21 Sep 2017 12:28:41 +1000 (AEST) 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" Mime-Version: 1.0 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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.