scripts/checkpatch.pl: add WARN on sizeof(&foo)
authorJoe Perches <joe@perches.com>
Fri, 5 Mar 2010 21:43:48 +0000 (13:43 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 6 Mar 2010 19:26:44 +0000 (11:26 -0800)
commit8f53a9b80f011080555c498d2ca2dc6b1a77c42c
treeb4636535f12817c107ba8fc1932882984eee9e46
parent849382948992cc6482c778b1e854c19368b60c05
scripts/checkpatch.pl: add WARN on sizeof(&foo)

sizeof(&foo) is frequently an error.  Warn on its use.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: 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