checkpatch: add check for space after struct, union, and enum
authorAndy Whitcroft <apw@canonical.com>
Tue, 26 Oct 2010 21:23:14 +0000 (14:23 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Oct 2010 23:52:20 +0000 (16:52 -0700)
commit8cf6de7145943caa38c56c61cd83b17687afd900
treef32e86109cce060816afdcbd9e55cd7c991a495b
parent53a3c4487a05b8f26ef72fe434a750a3402c998f
checkpatch: add check for space after struct, union, and enum

Add spacing checks for struct, union, and enum definitions.  Check the
spacing after type and before the equals (=) and open brace ({).

Based on a patch by Joe Perches.

Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl