]> nv-tegra.nvidia Code Review - linux-2.6.git/commit
checkpatch: dissallow spaces between stars in pointer types
authorAndy Whitcroft <apw@shadowen.org>
Tue, 6 Jan 2009 22:41:21 +0000 (14:41 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 6 Jan 2009 23:59:16 +0000 (15:59 -0800)
commit65863862ba112bf4d06d5ebc142b9d746d1ee955
tree923755463967ded1f6f6d0e5a09cb92a628ac005
parentfae17daed7312bae708df0cce7e93971308698b5
checkpatch: dissallow spaces between stars in pointer types

Disallow spaces within multiple pointer stars (*) in both casts and
definitions.  Both of these would now be reported:

(char * *)
char * *foo;

Also now consistently detects and reports the attributes within these
structures making the error report itself clearer.

Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl