Re: checkpatch problem

From: David Howells
Date: Wed Sep 22 2010 - 11:33:34 EST


Joe Perches <joe@xxxxxxxxxxx> wrote:

> Maybe restrict the test to $logFunctions that have whitespace
> before newlines?
>
> Something like below.
>
> Caveat: it doesn't necessarily report on the proper line.
>
> For instance:
> printk(KERN_DEBUG "ABCDEF \n");
> vs
> printk(KERN_DEBUG "ABC"
> "DEF \n");
>
> The second example reports the whitespace on the first line,
> not the second line.
>
> scripts/checkpatch.pl | 21 ++++++++++++++++-----
> 1 files changed, 16 insertions(+), 5 deletions(-)

Works for me.

David
--
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/