From: Joe Perches <joe@perches.com>
To: David Miller <davem@davemloft.net>
Cc: balbi@ti.com, sboyd@codeaurora.org, mjr@cs.wisc.edu,
netdev@vger.kernel.org
Subject: Re: [PATCH] net: ks8851: convert to threaded IRQ
Date: Mon, 28 Jan 2013 20:33:51 -0800 [thread overview]
Message-ID: <1359434031.4196.18.camel@joe-AO722> (raw)
In-Reply-To: <20130128.223157.1855971357181002973.davem@davemloft.net>
On Mon, 2013-01-28 at 22:31 -0500, David Miller wrote:
> From: Felipe Balbi <balbi@ti.com>
> Date: Wed, 23 Jan 2013 15:51:38 +0200
[]
> > @@ -1505,7 +1485,8 @@ static int ks8851_probe(struct spi_device *spi)
[]
> > - ret = request_irq(spi->irq, ks8851_irq, IRQF_TRIGGER_LOW,
> > + ret = request_threaded_irq(spi->irq, NULL, ks8851_irq,
> > + IRQF_TRIGGER_LOW | IRQF_ONESHOT,
> > ndev->name, ks);
>
> You need to indent the second and third line of this function call
> properly. It should be:
>
> ret = function_call(arg1, arg2,
> arg3, arg4,
> arg5, arg6, etc.);
Instead of writing all these emails all the time,
maybe it'd be better to make the checkpatch messages
that are currently emitted only with the --strict
option (like parenthesis alignment) emitted whenever
working on files in drivers/net/ and net/.
---
scripts/checkpatch.pl | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 9cec6dd..da1d15a 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -35,6 +35,8 @@ my $help = 0;
my $configuration_file = ".checkpatch.conf";
my $max_line_length = 80;
+my $realfile = '';
+
sub help {
my ($exitcode) = @_;
@@ -1287,7 +1289,9 @@ sub WARN {
}
}
sub CHK {
- if ($check && report("CHECK", $_[0], $_[1])) {
+ if ($realfile =~ m@^(drivers/net|net/)@) {
+ WARN($_[0], $_[1]);
+ } elsif ($check && report("CHECK", $_[0], $_[1])) {
our $clean = 0;
our $cnt_chk++;
}
@@ -1381,7 +1385,7 @@ sub process {
our $cnt_chk = 0;
# Trace the real file/line as we go.
- my $realfile = '';
+ $realfile = '';
my $realline = 0;
my $realcnt = 0;
my $here = '';
next prev parent reply other threads:[~2013-01-29 4:33 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-23 13:51 [PATCH] net: ks8851: convert to threaded IRQ Felipe Balbi
2013-01-29 3:31 ` David Miller
2013-01-29 4:33 ` Joe Perches [this message]
2013-01-29 7:16 ` Felipe Balbi
2013-01-29 18:32 ` David Miller
2013-01-29 18:53 ` Stephen Boyd
2013-01-29 19:02 ` Felipe Balbi
2013-01-29 19:21 ` Stephen Boyd
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=1359434031.4196.18.camel@joe-AO722 \
--to=joe@perches.com \
--cc=balbi@ti.com \
--cc=davem@davemloft.net \
--cc=mjr@cs.wisc.edu \
--cc=netdev@vger.kernel.org \
--cc=sboyd@codeaurora.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).