Re: [PATCH 2/4] scripts/kernel-doc: Also give functions symbolic names

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 02 Jun 2016, Daniel Vetter <daniel.vetter@xxxxxxxx> wrote:
> state3 = prototype parsing, so name them accordingly.
>
> Cc: Jani Nikula <jani.nikula@xxxxxxxxx>
> Cc: linux-doc@xxxxxxxxxxxxxxx
> Cc: Jonathan Corbet <corbet@xxxxxxx>
> Signed-off-by: Daniel Vetter <daniel.vetter@xxxxxxxx>

Pushed to my sphinx-for-docs-next branch.

BR,
Jani.


> ---
>  scripts/kernel-doc | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/scripts/kernel-doc b/scripts/kernel-doc
> index 9fb26d142a56..4da6f952d18b 100755
> --- a/scripts/kernel-doc
> +++ b/scripts/kernel-doc
> @@ -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/)

-- 
Jani Nikula, Intel Open Source Technology Center
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux