checkpatch: update $allowed_asm_includes macros, add reboot.h and time.h
PATCH 1/1 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 <[email protected]>
--- scripts/checkpatch.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
scripts/checkpatch.pl +3 -1
@@ -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
Signature · 1 line
1.8.1.5
Joe Perches
maintainerQuoted 3 lines · Sergey Ryazanov
Several architectures (e.g. x86, MIPS, Blackfin) have
asm/reboot.handasm/time.hheader files, which are not included inlinux/reboot.handlinux/time.hheaders. This lead to generation of false positive errors.
I've no objection.
Quoted 20 lines
Signed-off-by Sergey Ryazanov <[email protected]>--- scripts/checkpatch.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)scripts/checkpatch.pl +3
-1@@ -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