lkml.org 
[lkml]   [2022]   [Sep]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2] checkpatch: Handle FILE pointer type
From
Date
On Fri, 2022-09-02 at 13:19 +0200, Mickaël Salaün wrote:
> When using a "FILE *" type, checkpatch considers this an error:
> ERROR: need consistent spacing around '*' (ctx:WxV)
> #32: FILE: f.c:8:
> +static void a(FILE *const b)
[]
> Signed-off-by: Mickaël Salaün <mic@digikod.net>

Acked-by: Joe Perches <joe@perches.com>

> Link: https://lore.kernel.org/r/20220902111923.1488671-1-mic@digikod.net
> ---
> Changes since v1:
> https://lore.kernel.org/r/20220901145948.1456353-1-mic@digikod.net
> * Remove the FIXTURE_{DATA,VARIANT}() comments.
> * Improve commit description.
> ---
> diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
[]
> @@ -576,10 +576,14 @@ our $typeKernelTypedefs = qr{(?x:
> (?:__)?(?:u|s|be|le)(?:8|16|32|64)|
> atomic_t
> )};
> +our $typeStdioTypedefs = qr{(?x:
> + FILE
> +)};
> our $typeTypedefs = qr{(?x:
> $typeC99Typedefs\b|
> $typeOtherOSTypedefs\b|
> - $typeKernelTypedefs\b
> + $typeKernelTypedefs\b|
> + $typeStdioTypedefs\b
> )};
>
> our $zero_initializer = qr{(?:(?:0[xX])?0+$Int_type?|NULL|false)\b};
>
> base-commit: b90cb1053190353cc30f0fef0ef1f378ccc063c5

\
 
 \ /
  Last update: 2022-09-02 14:02    [W:0.035 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site