lkml.org 
[lkml]   [2022]   [Sep]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [RFC PATCH v1] checkpatch: Handle FILE pointer type
From


On 01/09/2022 17:49, Joe Perches wrote:
> On Thu, 2022-09-01 at 16:59 +0200, Mickaël Salaün wrote:

[...]

>> +# our $typeKselftestHarnessTypedefs = qr{(?x:
>> +# FIXTURE_(?:DATA|VARIANT)\($Ident\)
>> +# )};
>
> But not this. Random userspace typedefs should likely
> be kept in some local version of checkpatch.
>
> Or maybe add a command line option like --additional_typedefs=<file>.

This is part of the kselftest harness API. Could we take this into
account for files under tools/testing/selftests ?

>
>> our $typeTypedefs = qr{(?x:
>> $typeC99Typedefs\b|
>> $typeOtherOSTypedefs\b|
>> - $typeKernelTypedefs\b
>> + $typeKernelTypedefs\b|
>> + $typeStdioTypedefs\b
>> )};
>

\
 
 \ /
  Last update: 2022-09-01 17:55    [W:0.120 / U:0.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site