[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Indent -ncs arg has no effect in func decl
From: |
Andrey Utkin |
Subject: |
Re: Indent -ncs arg has no effect in func decl |
Date: |
Mon, 28 Dec 2015 13:54:26 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 |
On 12/28/2015 01:46 PM, Andrey Utkin wrote:
> -ncs forces no space between cast sign and casting argument. But this
> option is not effective in function arguments declaration.
>
> It results with this:
>
> void tw5864_h264_put_stream_header(u8 ** buf, size_t * space_left, int qp,
> int width, int height);
>
> checkpatch.pl from Linux kernel scripts doesn't like this:
>
> $ /src/linux-next/scripts/checkpatch.pl -f tw5864.h
> ERROR: "foo ** bar" should be "foo **bar"
> #272: FILE: tw5864.h:272:
> +void tw5864_h264_put_stream_header(u8 ** buf, size_t * space_left, int qp,
>
> ERROR: "foo * bar" should be "foo *bar"
> #272: FILE: tw5864.h:272:
> +void tw5864_h264_put_stream_header(u8 ** buf, size_t * space_left, int qp,
>
> man gives no clue how to fix this.
>
Sorry for noise, found about -T.
signature.asc
Description: OpenPGP digital signature