From: Wu Fengguang <fengguang.wu@intel.com>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>,
"H. Peter Anvin" <hpa@linux.kernel.org>,
"Ingo Molnar" <mingo@elte.hu>,
"Thomas Gleixner" <tglx@linutronix.de>,
"Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>,
"Sachin Sant" <sachinp@in.ibm.com>,
"KAMEZAWA Hiroyuki" <kamezawa.hiroyu@jp.fujitsu.com>,
"Ian Campbell" <ian.campbell@citrix.com>,
"Alok Kataria" <akataria@vmware.com>,
"Jeremy Fitzhardinge" <jeremy@goop.org>,
"Pasi Kärkkäinen" <pasik@iki.fi>
Subject: Re: [GIT PULL] x86/mm fixes
Date: Thu, 4 Mar 2010 08:44:25 +0800 [thread overview]
Message-ID: <20100304004425.GA8035@localhost> (raw)
In-Reply-To: <alpine.LFD.2.00.1003030909590.3627@localhost.localdomain>
On Thu, Mar 04, 2010 at 01:10:46AM +0800, Linus Torvalds wrote:
>
>
> On Wed, 3 Mar 2010, Wu Fengguang wrote:
> >
> > Anyway I just hacked /usr/share/quilt/refresh to automatically run the
> > kernel style checker:
> >
> > # wfg: check for kernel coding style
> > if [ -x scripts/checkpatch.pl ]; then
> > scripts/checkpatch.pl $patch_file
> > fi
>
> It's probably sensible to check things, but do remember that some of the
> things checkpatch warns about are better left the way they are, rather
> than make the code uglier just to make checkpatch happy.
OK. Here is the simple patch for quilt. I guess it may be hardly
acceptable for quilt upstream, so only intends to share it here.
Thanks,
Fengguang
---
--- /usr/share/quilt/refresh.orig 2010-03-04 08:38:27.000000000 +0800
+++ /usr/share/quilt/refresh 2010-03-04 08:38:29.000000000 +0800
@@ -265,6 +265,12 @@ fi
patch_file=$(patch_file_name $patch)
+# check for kernel coding style
+# Linus: please treat its warning as recommendation instead of requirement
+if [ -x scripts/checkpatch.pl ]; then
+ scripts/checkpatch.pl -q $patch_file
+fi
+
trap "" SIGINT
tmp_result=$(gen_tempfile) || die 1
next prev parent reply other threads:[~2010-03-04 0:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <201003020010.o220Ax3Z025848@hera.kernel.org>
2010-03-02 18:39 ` [GIT PULL] x86/mm fixes Linus Torvalds
2010-03-02 19:09 ` H. Peter Anvin
2010-03-02 19:31 ` H. Peter Anvin
2010-03-03 2:08 ` Wu Fengguang
2010-03-03 17:10 ` Linus Torvalds
2010-03-04 0:44 ` Wu Fengguang [this message]
2010-03-04 15:03 ` Peter Zijlstra
2010-03-05 1:07 ` Wu Fengguang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100304004425.GA8035@localhost \
--to=fengguang.wu@intel.com \
--cc=akataria@vmware.com \
--cc=hpa@linux.kernel.org \
--cc=hpa@zytor.com \
--cc=ian.campbell@citrix.com \
--cc=jeremy@goop.org \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=pasik@iki.fi \
--cc=sachinp@in.ibm.com \
--cc=tglx@linutronix.de \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox