Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1836856pxb; Sat, 23 Apr 2022 19:25:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9QgmN6IvkwVtywi256ENjNHqvNbn5TdnDvPls+OxZnZ0S0KWvMGmvbSHHu+HnnCkkm+7u X-Received: by 2002:a05:6402:43c4:b0:41d:9403:8dca with SMTP id p4-20020a05640243c400b0041d94038dcamr12348099edc.184.1650767118795; Sat, 23 Apr 2022 19:25:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650767118; cv=none; d=google.com; s=arc-20160816; b=DUFojfd8lPMC4ULpl5Q5NfUO2tBxGHxAwdhompWeQQOlfs2qDztkmQt2a+5Zzl/Upz 3QcQmwN9fBkBjQ8Wg2DngjPVLsUzHJDG0GPLKcaxIztMtYyq2bC1qGXIiifImlZJvq1j Dho6Z8vT5LZDIgNNLR5dHkQif02d9HMDfsNg0I2+6BzFyDsjNyRbJapJbAyI1ksc2dZt O/sSrZ8f5W7dkB/MP9GHOuga9sTp1mVfLVxJx68EFdHGm3MDWlo81t8TNJio3vJOTMgx yopIupQ6iH5QUYmgZ5ydMHJ9gMjGeuPso6Gryv9gjGpuqQS/OI0PBbMixyWHxDMvLCwm epfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:from:cc:to :content-language:user-agent:mime-version:date:message-id :dkim-signature; bh=CXFjciE9ABRPGlnRDCO0sfAMNo2nFIeN5583uwm7bGA=; b=P4cy3B/wIDn+rlyLTbK1PZgZNnFWeMEae2zRPO7ieGHQSoGIQNsM0aTGlLZzZtkqfH OWK2YZcugCv8zwSiTw29pgJwL0juCq9HReKpvhXBEVrCnWfbhpykNNnA0YO7Z8ZEbdKC OY6P8Na632qoKnGzi/YpcXGcDRq8OQajyak45UvOI5aopqiOvV9SZ7yV7Sllkw83vXlT txVGkLQxhufOLCt6gb6dPOOjuVI12Bm/GGiqU6iZiLfPUIwRqGU1t/8q1vcc600ZI39K rRwyKZMBr7Udw8nSNZ10OeJEyKElXxRs4I1OLR/N+ERZcBtoSn33OARIkM/KFNWhKejG HI3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@digikod.net header.s=20191114 header.b=X84gzasP; 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 g3-20020a1709061e0300b006e877c9a83esi10066808ejj.996.2022.04.23.19.24.43; Sat, 23 Apr 2022 19:25: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=X84gzasP; 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 S234880AbiDWLsP (ORCPT + 99 others); Sat, 23 Apr 2022 07:48:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235266AbiDWLsM (ORCPT ); Sat, 23 Apr 2022 07:48:12 -0400 Received: from smtp-42ab.mail.infomaniak.ch (smtp-42ab.mail.infomaniak.ch [84.16.66.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 898A183002 for ; Sat, 23 Apr 2022 04:45:13 -0700 (PDT) Received: from smtp-3-0001.mail.infomaniak.ch (unknown [10.4.36.108]) by smtp-2-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4KlqFz34jpzMqFML; Sat, 23 Apr 2022 13:45:11 +0200 (CEST) Received: from ns3096276.ip-94-23-54.eu (unknown [23.97.221.149]) by smtp-3-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4KlqFy3YgyzlhMBp; Sat, 23 Apr 2022 13:45:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=digikod.net; s=20191114; t=1650714311; bh=5oQ+gRaiMvtEmoQjhrcqrcZbqQiRRGUiVauT8l/YIQU=; h=Date:To:Cc:From:Subject:From; b=X84gzasPjND065BI1BzERxp7HpevtXwsQbaIe15uCtTStL6S1Q/V7CFIArfwtt8pp FwdxXUNUr71+nSLSL/qrQ1paWTurUsMBrs7qfuKngfKjiBoXTvGUq2jAODf47ZE5rD YDzZO6MjIb62DtLBmJjhHe8yitj0g4lI8apNWiRU= Message-ID: <8b6b252b-47a6-9d52-f0bd-10d3bc4ad244@digikod.net> Date: Sat, 23 Apr 2022 13:45:32 +0200 MIME-Version: 1.0 User-Agent: Content-Language: en-US To: Miguel Ojeda , Andy Whitcroft , Joe Perches , Dwaipayan Ray , Lukas Bulwahn Cc: Nathan Chancellor , Nick Desaulniers , Tom Rix , llvm@lists.linux.dev, linux-kernel@vger.kernel.org From: =?UTF-8?Q?Micka=c3=abl_Sala=c3=bcn?= Subject: clang-format inconsistencies with checkpatch.pl 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,URIBL_BLOCKED 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 Hi, I would like to use clang-format (with a pinned version, probably 14) to keep a consistent coding style, or at least start with one. However, there is some inconsistencies with the checkpatch.pl script: In some cases, goto labels are indented, which checkpatch.pl doesn't like. checkpatch.pl complains about some functions (e.g. FIXTURE or FIXTURE_VARIANT_ADD) that get an open brace just after but without a space. 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? 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). Regards, Mickaƫl