Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp704343pxb; Thu, 9 Sep 2021 10:05:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2K5GzlLIFMwGeodT2G50H2f+9ngEe9mmzZhkA/oHNj6CWVBNkQdvgynJ08XfPA8v3cO+N X-Received: by 2002:a50:aa9c:: with SMTP id q28mr1668829edc.199.1631207105818; Thu, 09 Sep 2021 10:05:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631207105; cv=none; d=google.com; s=arc-20160816; b=tThxeZB1ZVZ0ecRf3bJh6r3ev5rbjP3uo8YJqPcy/mTzo6RgpMWiBZQ59QIDfRgt3s MBKDoVlOjG0PRjg0qxKEi2t6xk46IUz8WivTjX33nsDo7b3PdoZBIH5ldcvkeIufozgq HFUHBv5xFHIpoPxQ3izQMYwiFlkqVo2OYZ2anKsMMZEgijy4M4payKZ/BBRQH+1xri/O aryQPAkNK18kaOeyfg4XmUKYSwWTGOWLrj7b9IG9kLzmbwvdv2TMfNThb8ATManm17+q NhosUZ8KRmyyYAwNB/d3fjgqwD208OLK9yawV9pKX9PWTgNhLS0jgSUyK5fbfYRDApyx H9Sw== 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=hIfAoo/G7Fm3X9NrBjLmLLwUCDjhAIFe7S1HChy8r6w=; b=QR+39VZ7QFabrEQrQ2baRXbzPPkwXSTTt5089wA/55/Wl004o7H2/XSk4nYGkva2wX bqrJwilbe5YlH1ddiPBPYutXn69M6yZ3dRt3QK8Ta4iBlcfga8F838QAwp029Z/9Ity2 x2dXWm0w+10NAmMzwMJhI9ad+c5h8Z7mCIIND9G/XqeIM+XDpI7VW88sx6L4eaD3/FfW G1T12Yg40eGwNjodmNSSxPYODeP4YH4r7gXQsCQqcixM/+9l9h4/3rLUJ+um2y3wQuB6 w3Em53iHGLU68O/bqCTi/kSDsMrN87BfZ5vzT13KuJT7o9zH2N7sRzn3Dx04aSqlXnPY UBTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=QDi8VF84; 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 v5si3413092edw.155.2021.09.09.10.04.38; Thu, 09 Sep 2021 10:05:05 -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=QDi8VF84; 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 S240737AbhIIRDs (ORCPT + 99 others); Thu, 9 Sep 2021 13:03:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234524AbhIIRDr (ORCPT ); Thu, 9 Sep 2021 13:03:47 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C865C061574; Thu, 9 Sep 2021 10:02:37 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id k4so5011319lfj.7; Thu, 09 Sep 2021 10:02:37 -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=hIfAoo/G7Fm3X9NrBjLmLLwUCDjhAIFe7S1HChy8r6w=; b=QDi8VF84qL0gTU0hXRG7TTZsVQnC9kV+gq5Zqn9AfAnhX0+OV+3lmh4BNhe+3fQTFP nE3Gsvxq9GBhXO17w1yH0sOPKk+vKjKHXWxPVR2H0lhK9U/ROsbakAk//+sy+u7jyR2T OxfVN0ERZ0iJUWoyMnnQ9wp77ZvhL7MMw0ZfeNiDdPgwTk7QnPit8aJov1qOa6HugRS7 Tt6J3fUZzfs+9GHbzQ18eyBVrX6nhxmsDjoP2NBet+amu6XLz5c5DbXgjDkdFy8TB7Zk K69rOeyZOmJR496VrWiF7KfqzHC3mjed+TZeJWHUZULDSGDns8/hbl61+ljy27gfWJq+ Uo6Q== 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; bh=hIfAoo/G7Fm3X9NrBjLmLLwUCDjhAIFe7S1HChy8r6w=; b=KiY97BcanYToJ6hsAdWp9MPshBZmNr6aNUxx5sOWFYxj7MfQ4in3uhYtSAr+dVE56A SmB4I/PJ6cCJ4HWiWLRh3nK3A96jLl7KFF5f4R0njOjC+f+ECKK1KOr7KM7cf/QKJoYp 9tzj4DzsjqUXVwa4d2WNWOk1Nh1z/QX/RRKFUq/8/AN/2HSUiHsSRpu+bqCIfhf6DP/9 SyUIYixYTAcwPKBeHUc5tuks6ZX9lbrLaX1rNvZ8kfVn9q5pE7FyApRZvlAnWC1NfOJO XmEPmVNV10Gx65Tpt6jIZlXvkCBCpOqUc7KfVPkO1zrxDrPkc+PeWnWfXrqq68Ymd/65 8gwQ== X-Gm-Message-State: AOAM531nnFQZQwoqVTRTW079OBtzCaLK4yXfRn8JkunbrQZiQEresJod mYcxJNXEd4sy/sqf3DpV5CNSFlA74G+2lqgx0gHeC8RbYJ4= X-Received: by 2002:a05:6512:ac4:: with SMTP id n4mr615817lfu.237.1631206955640; Thu, 09 Sep 2021 10:02:35 -0700 (PDT) MIME-Version: 1.0 References: <20210904082330.14864-1-utkarshverma294@gmail.com> In-Reply-To: <20210904082330.14864-1-utkarshverma294@gmail.com> From: Dwaipayan Ray Date: Thu, 9 Sep 2021 22:32:23 +0530 Message-ID: Subject: Re: [PATCH v2] Documentation: checkpatch: Add SYMBOLIC_PERMS message To: Utkarsh Verma Cc: Lukas Bulwahn , Joe Perches , Jonathan Corbet , "open list:DOCUMENTATION" , linux-kernel 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 1:53 PM 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 > Acked-by: Lukas Bulwahn > Reviewed-by: Lukas Bulwahn > --- > 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..41037594ec24 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 Let's remove "only". > + this traditional Unix permission bits for decades and so they find it Maybe you meant "these" here. With these changes made, Acked-by: Dwaipayan Ray > + easier to understand the octal notation than the symbolic macros. > + For example, it is harder to read S_IWUSR|S_IRUGO than 0644, which > + obscures the developer's intent rather than clarifying it. > + > + See: https://lore.kernel.org/lkml/CA+55aFw5v23T-zvDZp-MmD_EYxF8WbafwwB59934FV7g21uMGQ@mail.gmail.com/ > + > > Spacing and Brackets > -------------------- > -- > 2.25.1 >