checkpatch: try to catch missing VMLINUX_SYMBOL() in vmlinux.lds.h
authorMike Frysinger <vapier@gentoo.org>
Tue, 6 Jan 2009 22:41:25 +0000 (14:41 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 6 Jan 2009 23:59:16 +0000 (15:59 -0800)
commit080ba929651a32f1840751d2b862e64c8ee1f0c6
treea600273e6449d16d6256c66ea58ca060b22e8e6e
parent86f9d059c6bc548f6337f01117897a4c823cb4ee
checkpatch: try to catch missing VMLINUX_SYMBOL() in vmlinux.lds.h

Seems like every other release we have someone who updates vmlinux.lds.h
and adds C-visible symbols without VMLINUX_SYMBOL() around them.  So start
checking the file and reject assignments which have plain symbols on
either side.

[apw@canonical.com: soften the check, add tests]
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
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