Re: Checkpatch.pl failure
From: Andy Whitcroft
Date: Mon Jan 14 2008 - 12:10:21 EST
On Mon, Jan 14, 2008 at 09:48:53AM -0600, James Bottomley wrote:
> This error:
>
> ERROR: no space before that close parenthesis ')'
> #501: FILE: drivers/scsi/dpt_i2o.c:2299:
> + if (dev_status == 0x02 /*CHECK_CONDITION*/) {
>
> Is definitely wrong. I think it's stripped the comments so now the if
> looks to have a space before the bracket, but stylistically the
> complaint it has errored out for is wrong.
Yes, that is kinda wrong. Its a difficult one to deal with nicely as
basically spacing goes to hell when comments are wedged in the middle.
The rules basically go out the window. In the next version I do at
least have a handle on where comments are, but we have not yet
progressed to where we can simply get the spacing checks right.
I'll think more on it, and see what we can do.
-apw
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/