From: Bernd Petrovitsch Date: Thu, 06 Oct 2016 18:33:28 +0000 Subject: Re: [PATCH 37/54] md/raid5: Replace a seq_printf() call by seq_puts() in raid5_status() Message-Id: <1475778808.2520.10.camel@petrovitsch.priv.at> List-Id: References: <566ABCD9.1060404@users.sourceforge.net> <786843ef-4b6f-eb04-7326-2f6f5b408826@users.sourceforge.net> <92c52f1d-d151-cea6-e9ac-31378e6862d0@users.sourceforge.net> <1475771699.1914.10.camel@perches.com> <1475775403.1914.13.camel@perches.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: SF Markus Elfring , Joe Perches Cc: linux-raid@vger.kernel.org, Christoph Hellwig , Guoqing Jiang , Jens Axboe , Mike Christie , Neil Brown , Shaohua Li , Tomasz Majchrzak , LKML , kernel-janitors@vger.kernel.org, Julia Lawall Hi all! On Thu, 2016-10-06 at 19:49 +0200, SF Markus Elfring wrote: > > diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c > > > > [] > > > > > > > > > > @@ -7044,7 +7044,7 @@ static void raid5_status(struct > > > > > seq_file *seq, struct mddev *mddev) > > > > >      rdev && test_bit(In_sync, &rdev- > > > > > >flags) ? "U" : "_"); > > > > >   } > > > > >   rcu_read_unlock(); > > > > > - seq_printf (seq, "]"); > > > > > + seq_puts(seq, "]"); > > > > seq_putc > > > How do you think about the possibility that the script > > > "checkpatch.pl" can also point > > > such a source code transformation out directly? > > > > Why don't _you_ try to implement that in checkpatch instead? > > How are the chances that any other software developer would be > quicker (than me) for such > an addition because of more practical knowledge for the programming > language "Perl"? The above is BTW a pretty simple thing and thus good for a learning experience for regular expressions and copy-pasting a few lines in that perl-script and editing them. MfG, Bernd PS: Sry for the noise - it's somewhat OT here .... -- Bernd Petrovitsch Email : bernd@petrovitsch.priv.at LUGA : http://www.luga.at