From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752162AbdIUA11 (ORCPT ); Wed, 20 Sep 2017 20:27:27 -0400 Received: from mail-pf0-f180.google.com ([209.85.192.180]:43270 "EHLO mail-pf0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751762AbdIUA1X (ORCPT ); Wed, 20 Sep 2017 20:27:23 -0400 X-Google-Smtp-Source: AOwi7QBto8/byEz/M7tjo2fzX9WpknHsxoknmf5cbxDRfqHLccd2sCIeVD3c983T6Yo98a8MmkclTg== Date: Thu, 21 Sep 2017 09:27:17 +0900 From: Sergey Senozhatsky To: Joe Perches 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 Subject: Re: [RFC][PATCH v2 7/7] checkpatch: add pF/pf deprecation warning Message-ID: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1505929138.12311.5.camel@perches.com> User-Agent: Mutt/1.9.0 (2017-09-02) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > + $ext_type = "Deprecated"; > + $use = " - use %pS instead"; > + $use =~ s/pS/ps/ if ($bad_extension =~ /pf/); ok, handy :) -ss