From: Joe Perches <joe@perches.com>
To: Kim Phillips <kim.phillips@freescale.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
Andy Whitcroft <apw@canonical.com>
Subject: Re: [PATCH] checkpatch: Make --strict a default for files in drivers/net and net/
Date: Fri, 09 May 2014 14:44:12 -0700 [thread overview]
Message-ID: <1399671852.2912.29.camel@joe-AO725> (raw)
In-Reply-To: <20140509162914.8f8ac84b3a973820a21e5c2d@freescale.com>
On Fri, 2014-05-09 at 16:29 -0500, Kim Phillips wrote:
[]
> > > this isn't easily extensible/scalable to other subsystems, or
> > > say something like "all Freescale drivers." Having it configurable
> > > in .checkpatch.conf might be a better solution, but I don't believe
> > > networking should be the only subsystem that can take advantage of
> > > the extra checkpatch CHECKs.
> >
> > staging probably could too.
>
> why call staging out to be subject to stricter checks than the rest
> of the kernel, when it's code that's _known_ to be non-compliant?
Staging is mostly a "play area sandbox" for people
that want to submit "my first kernel patch" and
GregKH seems to apply style-only patches like that.
> > > Can we enable --strict universally in the Linux kernel, maybe like
> > > so:?
> >
> > I don't think that's appropriate (yet?).
>
> why not? checkpatch CHECKs seem reasonably stable AFAICT.
Several maintainers have their own style or don't
care at all about what indentation is used.
Several maintainers prefer stasis to what they
perceive as changes that are just whitespace noise.
> would an alternative option be to promote CHECKs like parentheses
> alignment to WARN status?
Probably not.
> > Try that with a per-file "wc -l" for checks per LOC
>
> good point, that reinforces the statement back for networking :) :
>
> {drivers/}net/ : 0.013 CHECKs per .[hc] file line
> everything else: 0.43 CHECKs per .[hc] file line
> no net, no drivers/staging: 0.38 CHECKs per .[hc] file line
yup. cheers, Joe
prev parent reply other threads:[~2014-05-09 21:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-07 18:13 [PATCH] checkpatch: Make --strict a default for files in drivers/net and net/ Joe Perches
2014-05-09 20:37 ` Kim Phillips
2014-05-09 20:56 ` Joe Perches
2014-05-09 21:29 ` Kim Phillips
2014-05-09 21:44 ` Joe Perches [this message]
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=1399671852.2912.29.camel@joe-AO725 \
--to=joe@perches.com \
--cc=akpm@linux-foundation.org \
--cc=apw@canonical.com \
--cc=kim.phillips@freescale.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).