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.
Showing the changes to scripts/checkpatch.pl (1 of 1 file). Show all
Unified · Split
| @@ -425,7 +425,9 @@ foreach my $entry (@mode_permission_funcs) { · 424 unmodified lines | ||
| 425 | 425 | |
| 426 | 426 | our $allowed_asm_includes = qr{(?x: |
| 427 | 427 | irq| |
| 428 | − memory | |
| 428 | + memory| | |
| 429 | + time| | |
| 430 | + reboot | |
| 429 | 431 | )}; |
| 430 | 432 | # memory.h: ARM has a custom one |
| 431 | 433 | |