Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1849597rwe; Fri, 2 Sep 2022 05:02:02 -0700 (PDT) X-Google-Smtp-Source: AA6agR4IRdtJg3pfR9oVrTBEsfBzn8brZwzwMF8aMobo061ZyOVzHVpn4++2+WJtKv63M5Eayi+U X-Received: by 2002:a17:903:2305:b0:16f:2420:dddf with SMTP id d5-20020a170903230500b0016f2420dddfmr34856401plh.138.1662120122175; Fri, 02 Sep 2022 05:02:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662120122; cv=none; d=google.com; s=arc-20160816; b=x2UtQHaByDrgceeDOZNUyj2BuGQjJpXs+4LDx1LPs5GOcoD79Jgdy7uCDOfJdQpB9v sODlrK9laTlBspn/pviikoXKaQVEAAMVDIld7oLWemVBbfzejT1HowU4pXD8PWWpjH6S HHMI6dXv1+zWp70liypSjEEm5nSvosItm6tGb68OnZlbArZAECauEmNVC2wLYjMY4+Ho 7omcSlv4jBcjabZtdG42w9Q6UHjcFYIrSJEnsmf+BjTqCmo3I1uth9P1E1VeKzAG2cvY BSlsZQNDeisodxbxAVll8nO456ZgE09+ebi0sun49FlDyVFo6Hr58vh9LtU5uaJCEqwj f4JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=rcMtkBf9s5DAETqgTkpkwvgHVVCGVqpTy2Vp0UIiVb0=; b=qU7EIKn7ZW1ZUw0S2XiaL2FeKLQkf3++2xZlgNOb25bDtBgrqJI6ZY6c9TxGKmjeB9 tGzifLS+5l9gMHva/kCZF5qbyO55khLbwC4cFQacYBy4FIoYc2r6EYrwuiLGXjTcibm+ ZffsdLxJlBFfb4uyDDfa0o0LL7cgy+twwoQSJib//yXEuvQ5hVW2I5EcApp+zx3dRiil /HKIVpsspDKJxsnJdx4nuwcEc41CJ2SGK2Y3duiS/cejm+lsldxFr1vL0KFsohxtjuQH goGP19RKIVu9VacrBRDyKxxpWuHTys+AkATr20PU8FBC/HNNUqDM2hbuvkPBZ5y5aQdo dAPg== ARC-Authentication-Results: i=1; mx.google.com; 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 q30-20020a17090a4fa100b001fd83507579si7000001pjh.74.2022.09.02.05.01.39; Fri, 02 Sep 2022 05:02:02 -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; 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 S235568AbiIBMA0 convert rfc822-to-8bit (ORCPT + 99 others); Fri, 2 Sep 2022 08:00:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235485AbiIBMAY (ORCPT ); Fri, 2 Sep 2022 08:00:24 -0400 Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A33DE1E3C1; Fri, 2 Sep 2022 05:00:22 -0700 (PDT) Received: from omf03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 1E9891A11CC; Fri, 2 Sep 2022 12:00:21 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf03.hostedemail.com (Postfix) with ESMTPA id A19246000A; Fri, 2 Sep 2022 12:00:19 +0000 (UTC) Message-ID: <7591cea9e718f6abfee14f08e97937b1c2722dd6.camel@perches.com> Subject: Re: [PATCH v2] checkpatch: Handle FILE pointer type From: Joe Perches To: =?ISO-8859-1?Q?Micka=EBl_Sala=FCn?= , Andy Whitcroft , Andrew Morton Cc: Dwaipayan Ray , Lukas Bulwahn , Shuah Khan , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Date: Fri, 02 Sep 2022 05:00:18 -0700 In-Reply-To: <20220902111923.1488671-1-mic@digikod.net> References: <20220902111923.1488671-1-mic@digikod.net> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.44.4 (3.44.4-1.fc36) MIME-Version: 1.0 X-Rspamd-Queue-Id: A19246000A X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Stat-Signature: cn8fpz4gidom5be91pcx9ywmgu7e7pax X-Rspamd-Server: rspamout02 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX1/IgcKs53YVW32I39B6pP1mbdA0ggHUt6Y= X-HE-Tag: 1662120019-604117 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 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 Acked-by: Joe Perches > 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