Merge branch 'sh-latest' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal...
[deliverable/linux.git] / scripts / headers_check.pl
index 50d6cfd1fa778808b659a461884113de502f3f99..7957e7a5166a26b4ab29988273f69006354e03eb 100644 (file)
@@ -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";
        }
 }
 
This page took 0.037872 seconds and 5 git commands to generate.