Skip to content

Commit

Permalink
scripts/kernel-doc: Also give functions symbolic names
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Daniel Vetter authored and Jani Nikula committed Jun 3, 2016
1 parent 16e161c commit b7afa92
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/kernel-doc
Original file line number Diff line number Diff line change
Expand Up @@ -2593,7 +2593,7 @@ sub syscall_munge() {
}
}

sub process_state3_function($$) {
sub process_proto_function($$) {
my $x = shift;
my $file = shift;

Expand Down Expand Up @@ -2623,7 +2623,7 @@ sub process_state3_function($$) {
}
}

sub process_state3_type($$) {
sub process_proto_type($$) {
my $x = shift;
my $file = shift;

Expand Down Expand Up @@ -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/)
Expand Down

0 comments on commit b7afa92

Please sign in to comment.