Re: [RFC][PATCH v2 7/7] checkpatch: add pF/pf deprecation warning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Joe Perches <joe@xxxxxxxxxxx>
- Subject: Re: [RFC][PATCH v2 7/7] checkpatch: add pF/pf deprecation warning
- From: Sergey Senozhatsky <sergey.senozhatsky.work@xxxxxxxxx>
- Date: Thu, 21 Sep 2017 09:27:17 +0900
- Cc: Sergey Senozhatsky <sergey.senozhatsky@xxxxxxxxx>, Tony Luck <tony.luck@xxxxxxxxx>, Fenghua Yu <fenghua.yu@xxxxxxxxx>, Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>, Paul Mackerras <paulus@xxxxxxxxx>, Michael Ellerman <mpe@xxxxxxxxxxxxxx>, James Bottomley <jejb@xxxxxxxxxxxxxxxx>, Helge Deller <deller@xxxxxx>, Petr Mladek <pmladek@xxxxxxxx>, Steven Rostedt <rostedt@xxxxxxxxxxx>, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, Jessica Yu <jeyu@xxxxxxxxxx>, Alexei Starovoitov <ast@xxxxxxxxxx>, linux-ia64@xxxxxxxxxxxxxxx, linux-parisc@xxxxxxxxxxxxxxx, linuxppc-dev@xxxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, Andy Whitcroft <apw@xxxxxxxxxxxxx>
- In-reply-to: <1505929138.12311.5.camel@perches.com>
- References: <20170920162910.32053-1-sergey.senozhatsky@gmail.com> <20170920162910.32053-8-sergey.senozhatsky@gmail.com> <1505929138.12311.5.camel@perches.com>
- User-agent: Mutt/1.9.0 (2017-09-02)
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
--
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]