]> err.no Git - linux-2.6/blobdiff - scripts/kernel-doc
Merge branches 'release', 'dmi' and 'misc' into release
[linux-2.6] / scripts / kernel-doc
index 7df099e6d1fd7c8e8081e91ae17dcb3be42034bb..6c18a14386a4da0a467fe8832c2d7b60c08430ea 100755 (executable)
@@ -218,6 +218,7 @@ sub usage {
     print "         [ -function funcname [ -function funcname ...] ]\n";
     print "         [ -nofunction funcname [ -nofunction funcname ...] ]\n";
     print "         c source file(s) > outputfile\n";
+    print "         -v : verbose output, more warnings & other info listed\n";
     exit 1;
 }
 
@@ -1881,6 +1882,13 @@ sub process_file($) {
                } else {
                    $declaration_purpose = "";
                }
+
+               if (($declaration_purpose eq "") && $verbose) {
+                       print STDERR "Warning(${file}:$.): missing initial short description on line:\n";
+                       print STDERR $_;
+                       ++$warnings;
+               }
+
                if ($identifier =~ m/^struct/) {
                    $decl_type = 'struct';
                } elsif ($identifier =~ m/^union/) {