From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 870FEECAAD3 for ; Thu, 1 Sep 2022 15:53:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231211AbiIAPx3 (ORCPT ); Thu, 1 Sep 2022 11:53:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233588AbiIAPx1 (ORCPT ); Thu, 1 Sep 2022 11:53:27 -0400 Received: from smtp-bc0b.mail.infomaniak.ch (smtp-bc0b.mail.infomaniak.ch [45.157.188.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E74C68C462 for ; Thu, 1 Sep 2022 08:53:25 -0700 (PDT) Received: from smtp-2-0001.mail.infomaniak.ch (unknown [10.5.36.108]) by smtp-2-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4MJQYw2VD3zMqD8X; Thu, 1 Sep 2022 17:53:24 +0200 (CEST) Received: from ns3096276.ip-94-23-54.eu (unknown [23.97.221.149]) by smtp-2-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4MJQYv5dt5zlh8Tx; Thu, 1 Sep 2022 17:53:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=digikod.net; s=20191114; t=1662047604; bh=/5UiAwQl0oR6WvEdzMPklN5nYUCp04mQ1pozhObj1j4=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=NfnfAuYXhdbSSCloKVNxHWkn9G8NVTe1fkWsXj0CHpYQk70XZC3smJA/DIBaZSZSZ WyyzvXD6D9rSOG+dEboLoYAwMTGRHnb/vy5sDcKlG1M8qNcbZg3gbVcsu2k/MidJNd 1SdAzTFhu6YkVPSfsnFBg7aPCJuLxP6OJNqNhAmQ= Message-ID: <7ed45656-f28b-5aaa-8a5b-84f566eb3bfb@digikod.net> Date: Thu, 1 Sep 2022 17:53:23 +0200 MIME-Version: 1.0 User-Agent: Subject: Re: [RFC PATCH v1] checkpatch: Handle FILE pointer type Content-Language: en-US To: Joe Perches , Andy Whitcroft Cc: Dwaipayan Ray , Lukas Bulwahn , Shuah Khan , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org References: <20220901145948.1456353-1-mic@digikod.net> <4f958a0c7c0aa2fce613371348477c002aa58e90.camel@perches.com> From: =?UTF-8?Q?Micka=c3=abl_Sala=c3=bcn?= In-Reply-To: <4f958a0c7c0aa2fce613371348477c002aa58e90.camel@perches.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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=. 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 >> )}; >