]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
scripts/kernel-doc: Also give functions symbolic names
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 1 Jun 2016 21:46:24 +0000 (23:46 +0200)
committerJani Nikula <jani.nikula@intel.com>
Fri, 3 Jun 2016 08:41:01 +0000 (11:41 +0300)
state3 = prototype parsing, so name them accordingly.

Cc: Jani Nikula <jani.nikula@intel.com>
Cc: linux-doc@vger.kernel.org
Cc: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
scripts/kernel-doc

index 9fb26d142a56fc49bda2cb0442ccb8f47c93326c..4da6f952d18bac292615cf2523b88966c643a855 100755 (executable)
@@ -2593,7 +2593,7 @@ sub syscall_munge() {
        }
 }
 
-sub process_state3_function($$) {
+sub process_proto_function($$) {
     my $x = shift;
     my $file = shift;
 
@@ -2623,7 +2623,7 @@ sub process_state3_function($$) {
     }
 }
 
-sub process_state3_type($$) {
+sub process_proto_type($$) {
     my $x = shift;
     my $file = shift;
 
@@ -2937,9 +2937,9 @@ sub process_file($) {
                $state = STATE_INLINE;
                $inline_doc_state = STATE_INLINE_NAME;
            } elsif ($decl_type eq 'function') {
-               process_state3_function($_, $file);
+               process_proto_function($_, $file);
            } else {
-               process_state3_type($_, $file);
+               process_proto_type($_, $file);
            }
        } elsif ($state == STATE_DOCBLOCK) {
                if (/$doc_end/)