Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp934717rwe; Thu, 1 Sep 2022 09:45:18 -0700 (PDT) X-Google-Smtp-Source: AA6agR4tORJK6NXsSctqV9FLeWMJFZHju9oirMT73oUW2VsQSWEqSFJYnpiSCg9ASpwcsZr3Z6pD X-Received: by 2002:a17:907:a053:b0:741:698d:4e40 with SMTP id gz19-20020a170907a05300b00741698d4e40mr15377632ejc.616.1662050718133; Thu, 01 Sep 2022 09:45:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662050718; cv=none; d=google.com; s=arc-20160816; b=eoPZIc3p8bZCRfc0vz47a+iP7Hecjd3Ul9NidF5gi4Sm4MHLbZaBxbQOLwVxaDULPg z+Eugchak9SJV8XFwLzFpdQKdcFQS2dZMb6g/OdtJlidZ83MxaRH7s+5WIerV6jm4uZi s9Qly5I957CmwnJU+PEHGo813KPorj2Bsm6Ux3291seHEg5jbKnFuyM4fXFDZweWn8K4 Yc9dRPzo83oZZUX14j3DvwzHRUwxzh2Ct99uM0ZM/M79gVaIgWqKLx7v4zZRcndhUZBH MBVTGib1N6bOB5LC2Bjk4jCA2mw0zpol90hKwCca0odrM0qzoYejwdqzzAwd1yQywpCa VUeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=n6u/NAle4ud8jHkNL1WJjPF7IcUQlWnYo0mJssQOk0Q=; b=Vwu29AilGJ/QtUSYrqGsFdYQmGZ4OTkyS7iKxtgubnncnCPW3qlVoiOLzf01RCWVnO Zn77zLJYyrD/PXtz+uzU80HTq8JJGRRebRHc29+IPcmrXPZxOOQf06DNaYil4aeODbNC f/YsQoiU83L/83gu2P4KPVdKjCRJETeWeKMvIxWL7/xCOpP0Jv0Is7Aueyie0TLTFjms CNfuWpJpQ7xp215iONaBNwfH5B6U4H96J4/SffEZxdWAUYT+NTBYGk612BSoFGqPG+yE YnWKgde0JWPQW2ghlb+4amqm/+Y1J2up7UBAkY/7xFDCx9ayOKHQp3amazAvx7XgGHgz Uf6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@digikod.net header.s=20191114 header.b=NfnfAuYX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qw33-20020a1709066a2100b00741795a8603si11098399ejc.196.2022.09.01.09.44.52; Thu, 01 Sep 2022 09:45:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@digikod.net header.s=20191114 header.b=NfnfAuYX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234626AbiIAPx3 (ORCPT + 99 others); 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 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 >> )}; >