Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp2263577pxb; Sun, 24 Apr 2022 09:20:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsAJOtoHa0yWfmD7EXnyLTwimsCOlwzp3u9sZNbT96OyzGsGy/cFHffM0GGQhYZ0qMJKJQ X-Received: by 2002:a63:6b08:0:b0:3aa:de0a:abfd with SMTP id g8-20020a636b08000000b003aade0aabfdmr8230616pgc.353.1650817222887; Sun, 24 Apr 2022 09:20:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650817222; cv=none; d=google.com; s=arc-20160816; b=i/uq9IP/X2DujvTcYe5WFunVoRifEVMMrV4nePg7R6XuLdCaT20HPJ9ZMBesfOW4hp zh34Xm+ai6dkrQ5ZnlfDSrbmX8CiQA836jFkTduRokhZQkLB6P6m/7+so8TeRXIMM0bC 2uUnd2+k2eMQlmk7p88wi/eyX4+H4kyaQudXnE7RMKsTLwngVm0yz55Mkzcu/HuFZWAZ Noytzcv1WUOy2Nagoh4ElfcUy5GmW7+Mag1PNZedkKpNaKIh1o2KeXQuXlWW05RRdqau rqT/bCs4QDTDGHaKSqkaL77eMHIVkJOyLbljrWakPt8BoVvi4Ri7cUROXAfUCp9WUfVI cj3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=IMQZ2RLXAtmsjlcoyG1Ejf9thK9F6e9b1RJe6akdKmw=; b=GE/SZnCULRpawdMCnBPQTHZsULj1opPSr/Pd6b0AtA2Pgm9MqtlIq2CinrGxLlJt/c emN4NorH6u4BtFsPweWA2fQZYnAF+3Jn9CenV2ADPZTRoTNozjT3aRf/sKb1k6bbBCqw SUq49zyIpnncj6UDRKUl/0gjNOXuyoxpM3HRDIcHlEs01ypXp3/SuIlneRB57aWSNETO 7TSlDSODsiy1ZdqYrK+YyqVFcXFsV+w7mTNJip5/pgIb6KKXvRI1DwCcKuyv/uAprsva Qo4XJvbjXzyKfT0WPH+NKLQz8vfLxdj/cS1Sk2vMNMmt1hdq0c9loBqO7t1G+YvqWSUR dJkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=F2azqWjR; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c15-20020a170902b68f00b001568126be52si13286886pls.605.2022.04.24.09.19.56; Sun, 24 Apr 2022 09:20:22 -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=@gmail.com header.s=20210112 header.b=F2azqWjR; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232663AbiDWQSD (ORCPT + 99 others); Sat, 23 Apr 2022 12:18:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232381AbiDWQR5 (ORCPT ); Sat, 23 Apr 2022 12:17:57 -0400 Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FA6F17AA5 for ; Sat, 23 Apr 2022 09:15:00 -0700 (PDT) Received: by mail-io1-xd2c.google.com with SMTP id h83so11568357iof.8 for ; Sat, 23 Apr 2022 09:15:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=IMQZ2RLXAtmsjlcoyG1Ejf9thK9F6e9b1RJe6akdKmw=; b=F2azqWjRMT5A5DXNcKJVPvoYcI5e4vIH72e9V0gpj4ILsmdTzCd4+hWO6cJAIshNqg M0dLDn9RDNJpvKGd4qZ7ueOIEr4wwpSlAKAXE7rOdUmdTZvx/qVezJCC7W50F9heSVtL dnSb1jSNqh6sRcKtjsB2eNbnUlNDzqCoBpEdds/oL1w268tqEbItfNzMHqaqd3HlPQlM gDxW5pI/LJlKFxyv42SOU2P04Zo64CgdTVf1otFndIZGvK5GSFzL4jhJBnqWG9G+ZwkA Zoi6y0nSq2x/EeA4AEkB6wWnSofvmbvhjG3Xi/KNofvEnW5+Gz6u+kW3rnfp/HaAuCcB HfeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=IMQZ2RLXAtmsjlcoyG1Ejf9thK9F6e9b1RJe6akdKmw=; b=cTVSB84jDCQuVAKd1rGUl1GpJ6lBkOPpXrcVY5uOT4Oesa08zQmewe+Wph8IHUlAo6 FohBip+4syc1JN+Fx1hCcZF22mBTQskfe+X21qdtDkM9RrIN9KHt2Gyfir/fHllm+jNX mKux24MMsSIgz2LKMnhff3hZwGOMfHJmRlbjSh1MSmfroGJSSaPImx8VHFLFnD02+fcl LyvA83OpzEFsA/+vdFkIA1k0bFFYt0K8r0nh6hpReA/jh0famwuwYOD0XckwXfMnYIU3 xx7Uycbzdieu/AXcBOWwgSQSjk82ENlXSvhj8vX57uiQjLI/4w40zTXEM3IqMC8O3os4 BaIg== X-Gm-Message-State: AOAM533jVBClZAdzdkzxIpSrhcbh0UmVwaHGIbIvCELlCnpMrrJYHpMr lxqCk5EETKMIdLGtYpM6EjI3wRTXkfJ16N7MasY= X-Received: by 2002:a05:6602:1341:b0:637:d4dc:6f85 with SMTP id i1-20020a056602134100b00637d4dc6f85mr3903365iov.155.1650730499411; Sat, 23 Apr 2022 09:14:59 -0700 (PDT) MIME-Version: 1.0 References: <8b6b252b-47a6-9d52-f0bd-10d3bc4ad244@digikod.net> In-Reply-To: <8b6b252b-47a6-9d52-f0bd-10d3bc4ad244@digikod.net> From: Miguel Ojeda Date: Sat, 23 Apr 2022 18:14:48 +0200 Message-ID: Subject: Re: clang-format inconsistencies with checkpatch.pl To: =?UTF-8?B?TWlja2HDq2wgU2FsYcO8bg==?= Cc: Miguel Ojeda , Andy Whitcroft , Joe Perches , Dwaipayan Ray , Lukas Bulwahn , Nathan Chancellor , Nick Desaulniers , Tom Rix , llvm@lists.linux.dev, linux-kernel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Micka=C3=ABl, On Sat, Apr 23, 2022 at 1:45 PM Micka=C3=ABl Sala=C3=BCn = 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. > 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_entr= y). Note that the prevailing kernel style is to not have a space. This should be fixed with the increase to 11. Cheers, Miguel