[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20100120153027.GB20271@pengutronix.de>
Date: Wed, 20 Jan 2010 16:30:27 +0100
From: Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>
To: Ben Dooks <ben-linux@...ff.org>
Cc: Mark Brown <broonie@...nsource.wolfsonmicro.com>,
Linux Samsung SoC <linux-samsung-soc@...r.kernel.org>,
Linux Kernel <linux-kernel@...r.kernel.org>,
linux-arm-kernel@...ts.infradead.org
Subject: Re: git pre-commit hook running checkpatch.pl
On Wed, Jan 20, 2010 at 10:01:55AM +0000, Mark Brown wrote:
> On Wed, Jan 20, 2010 at 02:02:02AM +0000, Ben Dooks wrote:
>
> > I've written a git pre-commit[1] hook which stops any commits happening if
> > checkpatch.pl reports problems with the patch. Any comments?
>
> > [1] http://www.fluff.org/ben/linux/githooks/pre-commit
>
> Checkpatch does sometimes generate the occasional false positive which
> can be annoying when they trigger. It can also be a problem when doing
> bugfixes IME - if an existing file has lots of checkpatch issues then a
> fix which maintains the same coding style as the surrounding code can
> trigger checkpatch issues which would if fixed make the code not fit in
> with the rest of the file. Obviously it'd be desirable to fix the file
> but that's a bit unreasonable for people submitting bug fixes,
> especially when pushing fixes to Linus and stable.
>
> That said, monitoring for checkpatch issues is useful.
Maybe only print the warnings instead of stopping a commit? I'd not
like me stopping here not only for the reasons pointed out by Mark and
Russell, but also as I frequently do wip-commits that not necessarily
are checkpatch-clean.
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists