From: Sergey Ryazanov Date: Mon, 13 Oct 2014 22:51:44 +0000 (-0700) Subject: checkpatch: update $allowed_asm_includes macros, add reboot.h and time.h X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=cdcee686ee9047185b7a484614f6c2faa5c4a7bb;p=openwrt%2Fstaging%2Fblogic.git 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 Cc: Andy Whitcroft Cc: Joe Perches Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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) { our $allowed_asm_includes = qr{(?x: irq| - memory + memory| + time| + reboot )}; # memory.h: ARM has a custom one