Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207335
b: refs/heads/master
c: 7840a94
h: refs/heads/master
i:
  207333: 89a8cab
  207331: a2df85f
  207327: 0506efc
v: v3
  • Loading branch information
Wolfram Sang authored and Linus Torvalds committed Aug 10, 2010
1 parent 973247c commit baab3ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1986aaf828ac8398b3d8d9b4151b08c840414ffe
refs/heads/master: 7840a94cd12559d8aee6382fafb85fbc9eb3a2c2
8 changes: 7 additions & 1 deletion trunk/scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,12 @@ sub help {
qr{fastcall},
);

our $allowed_asm_includes = qr{(?x:
irq|
memory
)};
# memory.h: ARM has a custom one

sub build_types {
my $mods = "(?x: \n" . join("|\n ", @modifierList) . "\n)";
my $all = "(?x: \n" . join("|\n ", @typeList) . "\n)";
Expand Down Expand Up @@ -2308,7 +2314,7 @@ sub process {
my $checkfile = "include/linux/$file";
if (-f "$root/$checkfile" &&
$realfile ne $checkfile &&
$1 ne 'irq')
$1 !~ /$allowed_asm_includes/)
{
if ($realfile =~ m{^arch/}) {
CHK("Consider using #include <linux/$file> instead of <asm/$file>\n" . $herecurr);
Expand Down

0 comments on commit baab3ce

Please sign in to comment.