Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp210570iob; Mon, 2 May 2022 17:18:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwds/5sUwh6La6OCLv/mT0mswkDB9G7FIFuJuJW9m+D7Wpi7h9zKkeYPGl6Nsw+/8jzPC4y X-Received: by 2002:a63:4765:0:b0:3ab:812a:ded2 with SMTP id w37-20020a634765000000b003ab812aded2mr11973485pgk.214.1651537138918; Mon, 02 May 2022 17:18:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651537138; cv=none; d=google.com; s=arc-20160816; b=rMHFwoiLfcaLE/AmqmFQM0Bvws3J0wcPa0wWoezL4tZZIlUUqPQAimEzuIOEd+M8Eb dYbK/2SL9C4bD9/KlU/3EMp5+7Mg3gRpXYr0I/UFt1UrLd3WSJhOvaQ0Oz6/RK/nG0g8 NFBn7ODroZd4SFmRWpwGnDrzGe8KEZf8QwvSEKSVo9FwPto+a5lpsta7P5oczgWtdiCc STe4MyMplfeCM8zs1Prqsqa0si4uh8roYCzJ4mxWaWsREh6ZheJrQOcSM01ATbOhk6Sh S83lVcDq1MRgEAOOsGXn2zcmJ/3B4roXW9XnhrWJevBYHU+HWsi824q+3hoWRAnq1Eo1 YkzQ== 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:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=0lT5p4QlNYG+llty5mMg+yrlsqI1HLA73kjZgaAgglg=; b=kPKGAe05vLJdAoAk7RJgIlXAJIJTi/x1w5OK/I8P7sxa9mFCwvGl1A1JouWeQzcF6E ORB3ERV/0C6o7+V4otLwndZDnFDMhTY2LL2r6AviVF0fXZey3/9p1kYUdJrM/SoL/9Nl K9B0Qao7rVtj0aajmFOcBDOIx2tVcUKYBMcm4u8Xr2qc1LKqSyDDGPXqeVDg2YRg1lKL dm1ue3ZuHbdL3jK5PAkssXZ2hx29riVXm+VNUZ8dNwwobSBEoNv5ylF3xl6l2Vi91ePK PQgqLYn8kOWgs2xJc9g+lLsCNX93SQSPBDQsGyRUAo779It1qKeY5Pt9mJL3+cFEXXiH X+dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@digikod.net header.s=20191114 header.b=sYTRVnzK; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id b18-20020a056a000cd200b0050dcf85b9e1si1377480pfv.141.2022.05.02.17.18.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 17:18:58 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@digikod.net header.s=20191114 header.b=sYTRVnzK; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1A9722A703; Mon, 2 May 2022 17:16:09 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1384518AbiEBKdC (ORCPT + 99 others); Mon, 2 May 2022 06:33:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1384595AbiEBKcy (ORCPT ); Mon, 2 May 2022 06:32:54 -0400 Received: from smtp-190e.mail.infomaniak.ch (smtp-190e.mail.infomaniak.ch [185.125.25.14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED359BCB4 for ; Mon, 2 May 2022 03:28:32 -0700 (PDT) Received: from smtp-2-0000.mail.infomaniak.ch (unknown [10.5.36.107]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4KsK7L19PDzMpnT4; Mon, 2 May 2022 12:28:30 +0200 (CEST) Received: from ns3096276.ip-94-23-54.eu (unknown [23.97.221.149]) by smtp-2-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4KsK7K1rsBzlhSLy; Mon, 2 May 2022 12:28:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=digikod.net; s=20191114; t=1651487310; bh=bptxyVnLNXDttaSUgFWYcO2XLQjIKj3V2V77zSKRijg=; h=Date:To:Cc:References:From:Subject:In-Reply-To:From; b=sYTRVnzK1acffNdh7/XJLYB4Fjo92WqaJCNs/hMVa+uJfHNWBKhAZHNpBtt1fEaMD 237w1h/545j3O0sw7hscVWWqPSrmj4czUN0G/e84DS0j+Fw9voO3MZkJyguMiD9ffv FTxBLd6NoJWv7jjmx56xV1bhdGBqEtTYdhXHZ2Xc= Message-ID: <32f41b83-2019-475b-b72a-6b824fe796f8@digikod.net> Date: Mon, 2 May 2022 12:29:41 +0200 MIME-Version: 1.0 User-Agent: Content-Language: en-US To: Miguel Ojeda Cc: Miguel Ojeda , Andy Whitcroft , Joe Perches , Dwaipayan Ray , Lukas Bulwahn , Nathan Chancellor , Nick Desaulniers , Tom Rix , llvm@lists.linux.dev, linux-kernel References: <8b6b252b-47a6-9d52-f0bd-10d3bc4ad244@digikod.net> From: =?UTF-8?Q?Micka=c3=abl_Sala=c3=bcn?= Subject: Re: clang-format inconsistencies with checkpatch.pl In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 23/04/2022 18:14, Miguel Ojeda wrote: > Hi Mickaël, > > On Sat, Apr 23, 2022 at 1:45 PM Mickaël Salaün wrote: >> >> I also noticed that there is some clang-format configuration lines that >> are commented because of incompatibilities with versions older than 6. >> Shouldn't we require a minimal version, at least the 6th? > > I will be increasing this cycle the version to 11, which is the > minimum LLVM supported at the moment, and then keep it sync'd to that > minimum. OK, thanks. > >> About checkpatch.pl, it incorrectly warns about space between function >> name and open parenthesis for *for_each* functions (specifically >> interpreted as "for" statements in .clang-format, e.g. list_for_each_entry). > > Note that the prevailing kernel style is to not have a space. This > should be fixed with the increase to 11. I was talking about the ForEachMacros exceptions. Should these be removed or at least not updated for new for_each functions [1]? [1] https://lore.kernel.org/r/20220412153906.428179-1-mic@digikod.net