diff options
author | Sergey Ryazanov <ryazanov.s.a@gmail.com> | 2014-10-13 18:51:44 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-13 20:18:14 -0400 |
commit | cdcee686ee9047185b7a484614f6c2faa5c4a7bb (patch) | |
tree | 6f44560979ce682dfb16a949b6dd6bb963dcb43c | |
parent | 72c231cb70eddb56e7e532f64dc22301044486dc (diff) |
checkpatch: update $allowed_asm_includes macros, add reboot.h and time.h
Several architectures (e.g. x86, MIPS, Blackfin) have asm/reboot.h and
asm/time.h header files, which are not included in linux/reboot.h and
linux/time.h headers. This lead to generation of false positive errors.
Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
Cc: Andy Whitcroft <apw@canonical.com>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rwxr-xr-x | scripts/checkpatch.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 38d64f0c01b8..1700720166d1 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
@@ -425,7 +425,9 @@ foreach my $entry (@mode_permission_funcs) { | |||
425 | 425 | ||
426 | our $allowed_asm_includes = qr{(?x: | 426 | our $allowed_asm_includes = qr{(?x: |
427 | irq| | 427 | irq| |
428 | memory | 428 | memory| |
429 | time| | ||
430 | reboot | ||
429 | )}; | 431 | )}; |
430 | # memory.h: ARM has a custom one | 432 | # memory.h: ARM has a custom one |
431 | 433 | ||