Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4876015iob; Mon, 9 May 2022 03:50:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxj1mq/RiUj8iRBuSQrJNmb0X84K0soH8fk8LJNJkqKq0YDwEb42B8fRLhYiI02pQgenC+p X-Received: by 2002:a63:6a88:0:b0:3c1:4a6c:be3 with SMTP id f130-20020a636a88000000b003c14a6c0be3mr12501559pgc.13.1652093402877; Mon, 09 May 2022 03:50:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652093402; cv=none; d=google.com; s=arc-20160816; b=Z3xndcmq/PDcPyjjnhjUpFOV/X0mR4jQrzYeD7seYVPjIAD91LyZPjUC3HUgIbu53w Vh3pAL7qqaY93Difu2kKczT3EAZxoNISl2vNfr+t0jCqTKbcT9+9/PgMbVBxJiwNersz 4OUGbC6pk16nZmBqxddCpfjM5ZYzt9QsXKdNAQyo/hljMu+MXSN0w7SLu0GNuhVx/NOT 5XE8ZG8Qva+Z8E2m+ErD7CxDUV/LtccnFEEkrcK2C+9N+YEjTcD+yU+UQN8VFGTkAgqx VD5UkyXjz1NncAgpfK2k7S2hgVoUQV/LwKDogBajRqR6tf/3yb7SiDu4Z5o2U+kwygjp itJQ== 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=8n+UZz9zrRIKwTdPcPWk2HfhPy3k0sFBqqr8zGSJSl4=; b=nPQeiCYRC3Ih/reKc2doofNaLNorqYw12j5y5eLIt/SdgMMUClQwDN4oNGcOkyIhn8 WS715+NGaorlPEEahL+//IIAlMnWp7sSO/TRL1yfTX7q6/TGO8Nfel9Asic2eqtsBNrA yZ04XgCxPA+xJSl3YHZh2bEROld8eT0cNOEhRwxCAB3uyOmQwzVwD9csm0lTJjakSVac Ny9GSrHjHwRDFbOZU6+g1mjOHgPRw3rL1YNp48W8byoQlBrvJDfkF4ZFn4qJ0OPKzJxy t5/aRdgcSYI+NUdCEPGnTkYEDZe7yysHe04DKPsKsaGIbW069xpRoPrSIsYFryzaUBjy jhRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="UN/WwazT"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id j5-20020a654d45000000b003c622eb7a63si11140325pgt.512.2022.05.09.03.50.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:50:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="UN/WwazT"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C5514237BB8; Mon, 9 May 2022 03:10:25 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238148AbiEIJek (ORCPT + 99 others); Mon, 9 May 2022 05:34:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238516AbiEIJKq (ORCPT ); Mon, 9 May 2022 05:10:46 -0400 Received: from mail-io1-xd32.google.com (mail-io1-xd32.google.com [IPv6:2607:f8b0:4864:20::d32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1099637BE6; Mon, 9 May 2022 02:06:50 -0700 (PDT) Received: by mail-io1-xd32.google.com with SMTP id c125so14585402iof.9; Mon, 09 May 2022 02:06:50 -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=8n+UZz9zrRIKwTdPcPWk2HfhPy3k0sFBqqr8zGSJSl4=; b=UN/WwazTyvjfSXpC3RwEF1N+VP/O30WhKkOKb/5LmJ6iNs+PfRuSL1S9SAeNkwyATc 0lF9TZtIQ1wLZqHRlJd93GfJxYODd84iC9HffRl+2D/n/EScTq0WbFp0wMauRSiuLG8O wqnPWMrZiYbclXdn/SkV2VpCXS7s1Xc+GF3obEOM9Kymlf97+PolnAjK/3suIYDtOA0P 6tjbdbaqii30neRcN1Id0ItDqF0ADcmgAt06EyCG8EFSXWw6ou0mRuoEQKBMU1qBDIqO k4l/hJ5btvnzkAqVjDnHtKhzs73PXu54DKB2NpJgJMrlJYUa7uZlKgFFChpDebXsuyKc ivgQ== 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=8n+UZz9zrRIKwTdPcPWk2HfhPy3k0sFBqqr8zGSJSl4=; b=01RC78xp0RVLDm8UkE/Dkl1IpqHb/RqofBNWrCgfXk8YhGBIQWkBGzhf+7+q4dKKV7 sw92edi7g1WoCKlYZR2SG0UxVrzhyTT9a558cuAjRxkpk13tMFN8Rpjr4Er9A036xebh yVWtxmsYPB75D3Py/0zvRhyUJu4WrUdoFCqFpaB7mzUvNijuUS/QyCtUEL0/XN4RTDXi aJslWCs4m7hQJ+XCY1CZ1hQ8cLebYLICgPIbUe3Nj7DIMZ62qb7+Lxh9QsUHoXT14Evv BsZIYE/hmPc/7U6OwrYr+ibokQ2hQF1eXWT9pb+zVXnfmcA9bhjc1bwplk7yAWmtqT3A vygg== X-Gm-Message-State: AOAM5314Ql+E6VaJOWHhI0D8T/4vye9IqdYTV1Xd84RyDEDhGqpgdcQ1 9uvSLJyZhsKfXzy/QPC9prkP/CcZueOJvyUAGW7bQ/uRfaA= X-Received: by 2002:a05:6638:16d2:b0:32b:ebfe:8672 with SMTP id g18-20020a05663816d200b0032bebfe8672mr3066459jat.199.1652087209496; Mon, 09 May 2022 02:06:49 -0700 (PDT) MIME-Version: 1.0 References: <20220506160513.523257-1-mic@digikod.net> In-Reply-To: <20220506160513.523257-1-mic@digikod.net> From: Miguel Ojeda Date: Mon, 9 May 2022 11:06:38 +0200 Message-ID: Subject: Re: [PATCH v1 0/7] Landlock: Clean up coding style with clang-format To: =?UTF-8?B?TWlja2HDq2wgU2FsYcO8bg==?= Cc: James Morris , "Serge E . Hallyn" , Kees Cook , Konstantin Meskhidze , Miguel Ojeda , Paul Moore , Shuah Khan , Tom Rix , linux-kernel , linux-security-module Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 Hi Micka=C3=ABl, (Answering in v1 since I want to quote something in this cover letter) On Fri, May 6, 2022 at 6:03 PM Micka=C3=ABl Sala=C3=BCn w= rote: > > I used a simple coding style for the initial Landlock code. However, > this may be subject to different interpretations. To avoid relying > on tacit knowledge or text editors for these kind of rules, let's > automate it as much as possible thanks to clang-format. This makes the > code formatting simple, consistent and impersonal. Thanks for moving your subsystem to `clang-format`. I am glad you found it useful. > Several versions of clang-format can be use but they may have (small) > different behaviors for undefined/new configuration parts. After > testing different versions, I picked clang-format-14 which is relatively > new and fixes a bug present in version 11 to 13 (visible in the Landlock > formatted code). Which was the bug? Cheers, Miguel