Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1134193pxb; Sat, 4 Sep 2021 01:00:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDxO7eM3F+HO+yBTPZ5oDw3QVrkJe0rGVMyzvI84N5zm1Dzy7XF79EZtXpMyngrXwsKPJg X-Received: by 2002:a17:906:3809:: with SMTP id v9mr3017684ejc.355.1630742444663; Sat, 04 Sep 2021 01:00:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630742444; cv=none; d=google.com; s=arc-20160816; b=WWZz08567U2V12zEWm5gIDQOFHArtTR89xyVA8xBJLXZwRvLIRx4efZEPH+o5owENE R2lrb0/tFbOFRbCChh/7yzlyTZvNuu8RADFAJuHgJ+NeeaCSY8me8NVFkHDYfafyWY7p 9unD1Fx8WRgSgJOQr8UoaT4s6RxGqR8nad2WAPheRBBFLg7DqUAQvyIy0htOTJdN+cHw LDneC5JHMt6Rr6iSywniaLdKgKfwzgYGTyopxZhl20fZ8Cit/UTZXk8EDRPwbvh/NMp/ 8BW9ZloMcSCbtfVoeKE3jXaxeyNkbMqqnOA5eD+xelsFUQ8QIR/yHVXWaqaweuaENMYG nuUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=O7pFDoTDG83sXYm3yFYU/ALPWpomicRzzImF0sKpKW0=; b=U7yw3TeA5r077DxuA7jbVZXzEI857plmexn87M0d9JxfvVtOVDVBznAMiYn5N/gys7 04wH80PgV8+AVSUhgy23kEkJXqOujKR53rcVp7Weha/ZU+uSrEyW3Zn5nK7dUdSBBzEw Qqu6k5RxI4KCRBf3wzjHwxL4r2pBzg0swJn6wSJpaT643X4Vb8kajtTNdc1cJFwEpoBg XDgV+eZgnfbz6ozpnqLbGMXffQneiawuMyq1U0wkvwz4lnBkknNBohLYW/lTnXEZVZQc zhie/vbor4c016MbnOnvZMpwuaWpuYytKaeUa3Z9DRIfsF2tp85o4c7hEEhDkg9ZQymJ NagQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ccMUmEJZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 21si1680430eji.148.2021.09.04.01.00.20; Sat, 04 Sep 2021 01:00:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ccMUmEJZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233578AbhIDHsC (ORCPT + 99 others); Sat, 4 Sep 2021 03:48:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233340AbhIDHsB (ORCPT ); Sat, 4 Sep 2021 03:48:01 -0400 Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 452BDC061575; Sat, 4 Sep 2021 00:47:00 -0700 (PDT) Received: by mail-yb1-xb2d.google.com with SMTP id f15so2820625ybg.3; Sat, 04 Sep 2021 00:47: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; bh=O7pFDoTDG83sXYm3yFYU/ALPWpomicRzzImF0sKpKW0=; b=ccMUmEJZTMqvMiO4qDEJz9UIC9A7ZaCIp9jDhsXqJ5Ev75Fxx6tmimIki1gyPQUPXS WUq6vqhnlpebDLPREpSmGpTghCvaQ7I1t01NqKoILpqjhefYji3+KrmbyFtUkdfSEFMJ UNwklfNd5oZpXUbNtuS3Oq+g4hQudXjwXg1XEFeEAUaktgjFZB/kPlvDx7egLukEmhkQ KlsFkF03WrbLns7SWJ2p3vqZWsqreGnTfotAuElmmYxanXxACNPJgkmZ16+Syj62X9W+ SAM5JaMcIrLBK/eVLU/0qgK95SGuyD2xbVFiDFCL54EJplm833L1/itj17ZCvI0BT/b6 8S9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=O7pFDoTDG83sXYm3yFYU/ALPWpomicRzzImF0sKpKW0=; b=VnOHcGZYGk4w3DggqIXVkchi2r0nDq0eBsww9d7S/50zP0SztsS94VAP2UesXlFlcU im2kq4CqT/8AO0NrfyRfWxB2exH8Xz+OizOYPJ06NxRQ9+W6j9uIsN53rgacEWVUoZCL fq/leZ57rqa6kENjbAQVGB64sSEApZqS/0cuPz/Pf65KcRNjzyH9zIqaIH/dUmDfzHPA qOAMyz88/7G5txxMqoBIqs7M7apeczbPWULTVWFszgMhLP+PpOR6lYybIW1tL0L1PFgC 7+YIH0hm7Xiu/29oYTKfMWi3xUQqFNwOJJ/cTR2IHTTdLl3aZ3rF+bMtM7HuYfcwY0x6 Uozw== X-Gm-Message-State: AOAM532vhwO6zAwXZoHaTO5OOCxi0+NdV+N+2MQpC85rmRmiR2VvOasj +/ggPNjel/fJQBSlQ/p3t5tWWyYPvcdNCoXKXVHgUlmw/Zw= X-Received: by 2002:a25:7ec4:: with SMTP id z187mr3949441ybc.35.1630741619439; Sat, 04 Sep 2021 00:46:59 -0700 (PDT) MIME-Version: 1.0 References: <20210904072951.12556-1-utkarshverma294@gmail.com> In-Reply-To: <20210904072951.12556-1-utkarshverma294@gmail.com> From: Lukas Bulwahn Date: Sat, 4 Sep 2021 09:46:48 +0200 Message-ID: Subject: Re: [PATCH] Documentation: checkpatch: Add SYMBOLIC_PERMS message To: Utkarsh Verma Cc: Dwaipayan Ray , Joe Perches , Jonathan Corbet , "open list:DOCUMENTATION" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Sep 4, 2021 at 9:30 AM Utkarsh Verma wrote: > > Add a new message type SYMBOLIC_PERMS under the 'Permissions' > subsection. Octal permission bits are easier to read and understand > instead of their symbolic macro names. > > Suggested-by: Lukas Bulwahn > Signed-off-by: Utkarsh Verma > --- > Documentation/dev-tools/checkpatch.rst | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/Documentation/dev-tools/checkpatch.rst b/Documentation/dev-tools/checkpatch.rst > index f0956e9ea2d8..01105e9c89de 100644 > --- a/Documentation/dev-tools/checkpatch.rst > +++ b/Documentation/dev-tools/checkpatch.rst > @@ -957,6 +957,17 @@ Permissions > Permission bits should use 4 digit octal permissions (like 0700 or 0444). > Avoid using any other base like decimal. > > + **SYMBOLIC_PERMS** > + Permission bits in the octal form are more readable and easier to > + understand than their symbolic counterparts because many command-line > + tools use this notation only. Experienced kernel developers have been using > + this traditional Unix permission bits for decades and so they find it > + easier to understand the octal notation than the symbolic macros. > + Also, it is harder to read S_IWUSR|S_IRUGO than 0644, which obscures the > + developer's intent rather than clarifying it. Just a quick stylistic nit: s/Also, it is harder to read /For example, it is harder to read/ Other than that: Acked-by: Lukas Bulwahn Reviewed-by: Lukas Bulwahn Feel free to send a quick v2 for my nitpicking, and apply the tags from this email. Lukas > + > + See: https://lore.kernel.org/lkml/CA+55aFw5v23T-zvDZp-MmD_EYxF8WbafwwB59934FV7g21uMGQ@mail.gmail.com/ > + > > Spacing and Brackets > -------------------- > -- > 2.25.1 >