[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1268839535.1652.43.camel@Joe-Laptop.home>
Date: Wed, 17 Mar 2010 08:25:35 -0700
From: Joe Perches <joe@...ches.com>
To: Richard Kennedy <richard@....demon.co.uk>
Cc: Andy Whitcroft <apw@...onical.com>,
lkml <linux-kernel@...r.kernel.org>
Subject: Re: checkpatch false positive
On Wed, 2010-03-17 at 11:00 +0000, Richard Kennedy wrote:
> I'm getting this error from checkpatch which is a false positive AFAICT.
> I don't see any other way to code this macro so maybe this rule
> shouldn't apply?.
>
> ERROR: space prohibited before open square bracket '['
> #24: FILE: drivers/staging/wlan-ng/p80211wext.c:1685:
> +#define IW_IOCTL(x) [(x)-SIOCSIWCOMMIT]
While true that this is a false positive, hiding array indexing
brackets in a macro doesn't seem a good idea.
Maybe it'd be better to move the brackets to the use?
--
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