]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: emit an error when using predefined timestamp macros
authorJoe Perches <joe@perches.com>
Fri, 13 Feb 2015 22:38:18 +0000 (14:38 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 14 Feb 2015 05:21:39 +0000 (21:21 -0800)
commit00a39a0c02b9278d058b4e53d19c15aaccc390bb
treebe3c61cd325d694c8a3d3e5b8d1d2f28199aa9c4
parentbc4a991dc86ef2ec9069fe07e46667fcc0029b11
checkpatch: emit an error when using predefined timestamp macros

Since commit 38048aca1ced ("Makefile: Build with -Werror=date-time if
the compiler supports it"), use of __DATE__, __TIME__, and __TIMESTAMP__
has not been allowed.

As this test is gcc version specific (> 4.9), it hasn't prevented a few
new uses from creeping into the kernel sources.

Make checkpatch complain about them.

Signed-off-by: Joe Perches <joe@perches.com>
Original-patch-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl