Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1143807pxb; Wed, 10 Feb 2021 00:46:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJwMgHZTasudGmS8LVR6mFWOGRTt311hRXFNok8P8nMO9ASCnlRku0Pu38VLPKWp1IsyT1Sp X-Received: by 2002:a17:906:2697:: with SMTP id t23mr1927055ejc.357.1612946785777; Wed, 10 Feb 2021 00:46:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612946785; cv=none; d=google.com; s=arc-20160816; b=kw9L1KENlJpXYfX33v2ysqJnu6/bzsKJSCIYshRg/hMjnhiVbClez8+bMGil6GL0Qg 4jsQ7tZzoWnnVnfiKIFGOZ0yoS9zVbJ5Ri14+vre7WUyoxUtkFPSHNGCbIInPifbEK1O L4Jjz17UIEXoQIpkEHzoWN6J7lsBRG2mJik3NvqI2ibC0UTpQM89DPnDb/Zc2M4jTN3G L3qErhnCxh6bdhMuD2DSZJlwYnIv3eT9x0zeUxOvlzgAuQLhPdoBL9DAJ9cTuhQqvG2b O/6T+aQw1q3M1Jp4WofiTCppDmfev5EGL5MWtGGVyDes10ee0rfo+0oVBl/i5yedk76m Eu+A== 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; bh=9pTnNkDOH+vsAeWCJNUly+UprZNK7/32eov2aiAjk2U=; b=0/mRUq88jexFa8zqL4U0/LhIXheGrCXVWfrOhiHNvnIWKC32u+1PrzxjFoqZePl4gy /AUfxtJc9ZKB9FnxvK4uzksrunp7lj2TUTlgVqeWLow/3WRR6az5uSjb80Ga4tfRxpcy DEGIYQ5oqng7Pj3MxvNlBHOd1Qj8bFWucY6cxLyiGmpqUeKrCGTuKms6/4GCs7fgKz1W arV5Yrt14Qvn3Kkn+cZAg16SBmjm8Wgw169Di+pzN4VvSj5bZDIyBUAkaLp49L5OhRJ1 sDbA5bXKFGodzbsxIZvB5rBNRlng6eh4Agce5GB/MfiA/YaC5dB2MSmUp3bAVRY46Y+w wRFQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jg13si1019140ejc.669.2021.02.10.00.46.02; Wed, 10 Feb 2021 00:46:25 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229874AbhBJIhg (ORCPT + 99 others); Wed, 10 Feb 2021 03:37:36 -0500 Received: from mail-ot1-f44.google.com ([209.85.210.44]:46922 "EHLO mail-ot1-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229784AbhBJIcF (ORCPT ); Wed, 10 Feb 2021 03:32:05 -0500 Received: by mail-ot1-f44.google.com with SMTP id r21so1049281otk.13; Wed, 10 Feb 2021 00:31:46 -0800 (PST) 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=9pTnNkDOH+vsAeWCJNUly+UprZNK7/32eov2aiAjk2U=; b=owHif0uiINVDKIU8mxFRSZSFr/nYaZKmmtXZNYtq0XhP/ukTgm97D4bkjV7O50m5Ro cn3xJyL27AXIrXUmqk6EOu4zAWkfDGG4h10XJAj6C0huozvvb+KujK1k84X5P8zXFubT dEqFlSKKbnVqcZU22VmfNYVGnhq0PRrHHDPXKGOXVfaC/OvLs1aRW+EQRLhzP9hTB66d 2rPSs/Vac0byNkruFUh5EoV4tzjE4ymsGCemQHItLm+c/UEnRuTjZdxpbdnPczmBB4WS 5avBkse1ywz1AakJNuWu4ht9LwwUfNiuoeW6hv0ilOa92PpWhw37j5Nz6hRXa4y441TH LSiw== X-Gm-Message-State: AOAM530e03rCbacdDm2FltSiUMcMVFhsIlxHPi3EGzMoxanNXxnLzbr4 ymY+Ew4tZZ2QtFYYrWcznMDdikFF8WT5HzzBF0A= X-Received: by 2002:a05:6830:148d:: with SMTP id s13mr1331380otq.250.1612945880953; Wed, 10 Feb 2021 00:31:20 -0800 (PST) MIME-Version: 1.0 References: <20210210074946.155417-1-drew@beagleboard.org> <20210210074946.155417-2-drew@beagleboard.org> In-Reply-To: <20210210074946.155417-2-drew@beagleboard.org> From: Geert Uytterhoeven Date: Wed, 10 Feb 2021 09:31:10 +0100 Message-ID: Subject: Re: [PATCH v2 1/2] pinctrl: use to octal permissions for debugfs files To: Drew Fustini Cc: Linus Walleij , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , Tony Lindgren , Andy Shevchenko , Alexandre Belloni , Pantelis Antoniou , Jason Kridner , Robert Nelson Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Drew, On Wed, Feb 10, 2021 at 8:50 AM Drew Fustini wrote: > Switch over pinctrl debugfs files to use octal permissions as they are > preferred over symbolic permissions. Refer to commit f90774e1fd27 > ("checkpatch: look for symbolic permissions and suggest octal instead"). > > Signed-off-by: Drew Fustini Thanks for your patch! > --- a/drivers/pinctrl/core.c > +++ b/drivers/pinctrl/core.c > @@ -1914,11 +1914,11 @@ static void pinctrl_init_debugfs(void) > return; > } > > - debugfs_create_file("pinctrl-devices", S_IFREG | S_IRUGO, > + debugfs_create_file("pinctrl-devices", 0400, What about the loss of S_IFREG? S_IRUGO = 0444, not 0400. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds