public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Kalle Valo <kvalo-A+ZNKFmMK5xy9aJCnZT0Uw@public•gmane.org>
To: Joe Perches <joe-6d6DIl74uiNBDgjK7y7TUQ@public•gmane.org>
Cc: Andrew Morton
	<akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public•gmane.org>,
	Andy Whitcroft <apw-26w3C0LaAnFg9hUCZPvPmw@public•gmane.org>,
	"Allan,
	Bruce W" <bruce.w.allan-ral2JQCrhuEAvxtiuMwx3w@public•gmane.org>,
	David Miller <davem-fT/PcQaiUtIeIZ0/mPfg9Q@public•gmane.org>,
	"andrei.emeltchenko.news-Re5JQEeQqe8AvxtiuMwx3w@public•gmane.org"
	<andrei.emeltchenko.news-Re5JQEeQqe8AvxtiuMwx3w@public•gmane.org>,
	"linville-2XuSBdqkA4R54TAoqtyWWQ@public•gmane.org"
	<linville-2XuSBdqkA4R54TAoqtyWWQ@public•gmane.org>,
	"linux-wireless-u79uwXL29TY76Z2rM5mHXA@public•gmane.org"
	<linux-wireless-u79uwXL29TY76Z2rM5mHXA@public•gmane.org>,
	"netdev-u79uwXL29TY76Z2rM5mHXA@public•gmane.org"
	<netdev-u79uwXL29TY76Z2rM5mHXA@public•gmane.org>,
	"linux-kernel-u79uwXL29TY76Z2rM5mHXA@public•gmane.org"
	<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public•gmane.org>
Subject: Re: [PATCH v2] checkpatch: Add some --strict coding style checks
Date: Wed, 29 Feb 2012 16:38:05 +0200	[thread overview]
Message-ID: <4F4E384D.2090802@qca.qualcomm.com> (raw)
In-Reply-To: <1330108675.18464.21.camel@joe2Laptop>

On 02/24/2012 08:37 PM, Joe Perches wrote:
> Argument alignment across multiple lines should
> match the open parenthesis.
> 
> Logical continuations should be at the end of
> the previous line, not the start of a new line.
> 
> These are not required by CodingStyle so make the
> tests active only when using --strict.
> 
> Improved_by_examples_from: "Bruce W. Allen" <bruce.w.allan-ral2JQCrhuEAvxtiuMwx3w@public•gmane.org>
> Signed-off-by: Joe Perches <joe-6d6DIl74uiNBDgjK7y7TUQ@public•gmane.org>

Thanks Joe, this is very useful for me. I seem to have one false alarm
though:

drivers/net/wireless/ath/ath6kl/txrx.c:464: CHECK: Alignment should
match open parenthesis

This is with patches I haven't sent yet so line numbers most likely
don't match, but the code in question is this:

	if (!IS_ALIGNED((unsigned long) skb->data - HTC_HDR_LENGTH, 4) &&
	    skb_cloned(skb)) {

Apparently the cast "(unsigned long)" causes the false alarm as when I
remove it I don't see the warning anymore.

Kalle
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public•gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2012-02-29 14:38 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-20 20:37 pull request: wireless 2012-02-20 John W. Linville
     [not found] ` <20120220203740.GD6740-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org>
2012-02-21  0:23   ` David Miller
     [not found]     ` <20120220.192324.498901675497866305.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>
2012-02-21 15:14       ` John W. Linville
2012-02-21 19:44         ` David Miller
2012-02-21 20:38           ` Andrei Emeltchenko
2012-02-21 20:40             ` David Miller
     [not found]               ` <20120221.154053.2103818562080068513.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>
2012-02-21 20:59                 ` [PATCH] checkpatch: Add some --strict coding style checks Joe Perches
2012-02-21 21:09                   ` Andrew Morton
2012-02-21 21:11                     ` Joe Perches
2012-02-21 22:09                   ` Allan, Bruce W
2012-02-21 23:16                     ` Joe Perches
2012-02-22  1:36                     ` Joe Perches
2012-02-22  1:56                       ` Allan, Bruce W
2012-02-22  1:58                         ` Joe Perches
2012-02-22  2:17                           ` Allan, Bruce W
     [not found]                             ` <804857E1F29AAC47BF68C404FC60A18429B98A-P5GAC/sN6hlcIJlls4ac1rfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2012-02-23  3:43                               ` Joe Perches
2012-02-24 18:22                                 ` Allan, Bruce W
2012-02-24 18:37                                   ` [PATCH v2] " Joe Perches
2012-02-29 14:38                                     ` Kalle Valo [this message]
     [not found]                     ` <804857E1F29AAC47BF68C404FC60A18429B3EE-P5GAC/sN6hlcIJlls4ac1rfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2012-02-22  9:35                       ` [PATCH] " David Laight
2012-02-22  9:46                         ` Johannes Berg
2012-02-22 10:07                 ` pull request: wireless 2012-02-20 Zefir Kurtisi

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=4F4E384D.2090802@qca.qualcomm.com \
    --to=kvalo-a+znkfmmk5xy9ajcnzt0uw@public$(echo .)gmane.org \
    --cc=akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public$(echo .)gmane.org \
    --cc=andrei.emeltchenko.news-Re5JQEeQqe8AvxtiuMwx3w@public$(echo .)gmane.org \
    --cc=apw-26w3C0LaAnFg9hUCZPvPmw@public$(echo .)gmane.org \
    --cc=bruce.w.allan-ral2JQCrhuEAvxtiuMwx3w@public$(echo .)gmane.org \
    --cc=davem-fT/PcQaiUtIeIZ0/mPfg9Q@public$(echo .)gmane.org \
    --cc=joe-6d6DIl74uiNBDgjK7y7TUQ@public$(echo .)gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public$(echo .)gmane.org \
    --cc=linux-wireless-u79uwXL29TY76Z2rM5mHXA@public$(echo .)gmane.org \
    --cc=linville-2XuSBdqkA4R54TAoqtyWWQ@public$(echo .)gmane.org \
    --cc=netdev-u79uwXL29TY76Z2rM5mHXA@public$(echo .)gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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