X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;ds=sidebyside;f=scripts%2Fheaders_check.pl;h=7957e7a5166a26b4ab29988273f69006354e03eb;hb=f7448548a9f32db38f243ccd4271617758ddfe2c;hp=50d6cfd1fa778808b659a461884113de502f3f99;hpb=b01b7dc2832a1a286ae84ffa3e940ce9f8e352c2;p=~andy%2Flinux diff --git a/scripts/headers_check.pl b/scripts/headers_check.pl index 50d6cfd1fa7..7957e7a5166 100644 --- a/scripts/headers_check.pl +++ b/scripts/headers_check.pl @@ -64,10 +64,10 @@ sub check_include sub check_declarations { - if ($line =~m/^\s*extern\b/) { + if ($line =~m/^(\s*extern|unsigned|char|short|int|long|void)\b/) { printf STDERR "$filename:$lineno: " . - "userspace cannot call function or variable " . - "defined in the kernel\n"; + "userspace cannot reference function or " . + "variable defined in the kernel\n"; } }