Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1273252pxb; Wed, 10 Feb 2021 04:42:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJxfH8CXuurU7SNLXX2OXOcocTdV7VMr0OaDY2OroCtgs4xXvfYhXqCfReoexmelXJDY53he X-Received: by 2002:a17:906:398c:: with SMTP id h12mr2737709eje.469.1612960929257; Wed, 10 Feb 2021 04:42:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612960929; cv=none; d=google.com; s=arc-20160816; b=KZQa1z/bc5p3vWiGT45tXlkGTShvUhDRqpU4vYQtoFYoKgAYf6xR9ogo2lzoqBxRK8 eb6K3BhyA3x+aOGw+/AovIbx5YJXXsSt88zbwVv9TwPUcY6WrnJOglgpSOJhBbK+1ynK 93yiXwwZfm8Fx8SYWrJ6dp1Fyg0/3HbwfaYGOFEGCmHyG8knTDWP0ierJoD3ZEdm4Nor sftCuic/7p7FreN3notkQiPoawtHGC2GJrEFMg9ECG5ECzp1qiTA9A0he7AX4WVBKOvM VDdxT7jIsGmrhUeTyC/C2Zeos/j81Pnxg39K6cIXojJ/EI9x5zd/QvgF2h2opWWzPY1I LSAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=Meg3XlpSOTbAYGGtoZdXFstv5KNP8DWZUt/1P1aKoEM=; b=Cm4tFKsX/AUouZ2TREylnDXP/Gj9ED/enyU/tQJcKvTZzWyq8JPeXVniap1aEcL+/g b/CbOTC4y/Dj3BOTXi8n5FRDdnMhm/nSTNseZKKqe0EaVDrHsSKOHtJc11j1+URU2OpJ TVFd+iRXMP75nKDlTW8tYE+kmr3rx0KjJX77wukQ2ub41vnqK9f+phpci/In51XE2VJB f6nt2Yz2cdQhoNJiKMXKDZvlb9wAG9w//i0uWXM6CXxu3F4ccvFN47RY6bSxYcLxJsVR n5ehH0yO9HdbQuNZZStcwX4+QCf8OFGsSXb72id7WWqtCAM9JB+mbP8iTIZToHfO3Ymi GFgg== 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 l2si1366842ede.232.2021.02.10.04.41.46; Wed, 10 Feb 2021 04:42:09 -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 S231742AbhBJMjC (ORCPT + 99 others); Wed, 10 Feb 2021 07:39:02 -0500 Received: from smtprelay0193.hostedemail.com ([216.40.44.193]:60942 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229639AbhBJMgr (ORCPT ); Wed, 10 Feb 2021 07:36:47 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay05.hostedemail.com (Postfix) with ESMTP id F3DC31801D2F8; Wed, 10 Feb 2021 12:36:03 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 30,2,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:800:960:967:973:982:988:989:1260:1261:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2525:2553:2560:2563:2682:2685:2828:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3871:3873:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:5007:7652:9025:9040:10010:10400:10848:11026:11232:11658:11783:11889:11914:12043:12297:12438:12740:12895:13069:13095:13161:13223:13229:13311:13357:13439:13894:14181:14659:14721:21080:21433:21451:21611:21627:30012:30054:30060:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:1:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: cork75_4203f8127610 X-Filterd-Recvd-Size: 2735 Received: from [192.168.1.159] (unknown [47.151.137.21]) (Authenticated sender: joe@perches.com) by omf01.hostedemail.com (Postfix) with ESMTPA; Wed, 10 Feb 2021 12:36:02 +0000 (UTC) Message-ID: Subject: Re: [PATCH v2 1/2] pinctrl: use to octal permissions for debugfs files From: Joe Perches To: Andy Shevchenko Cc: Drew Fustini , Linus Walleij , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , Tony Lindgren , Alexandre Belloni , Geert Uytterhoeven , Pantelis Antoniou , Jason Kridner , Robert Nelson Date: Wed, 10 Feb 2021 04:36:00 -0800 In-Reply-To: References: <20210210074946.155417-1-drew@beagleboard.org> <20210210074946.155417-2-drew@beagleboard.org> <87437daafdd86fa5c765ff9b17b6c7b097f0c317.camel@perches.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.38.1-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2021-02-10 at 12:18 +0200, Andy Shevchenko wrote: > On Wed, Feb 10, 2021 at 10:30 AM Joe Perches wrote: > > On Tue, 2021-02-09 at 23:49 -0800, Drew Fustini wrote: > > > > - debugfs_create_file("pinctrl-devices", S_IFREG | S_IRUGO, > > > + debugfs_create_file("pinctrl-devices", 0400, > > > ??????????????????????????debugfs_root, NULL, &pinctrl_devices_fops); > > > > NAK. You've changed the permission levels. > > NAK is usually given when the whole idea is broken. Here is not the > case and you may have helped to amend the patch. NAK IMO just means the patch should not be applied, not that the concept is broken. > ... > > > And you have to keep the S_IFREG or'd along with the octal. > > Perhaps time to read the code? > https://elixir.bootlin.com/linux/latest/source/fs/debugfs/inode.c#L387 Then the commit message is also broken. > > checkpatch does this conversion using this command line: > > > > $ ./scripts/checkpatch.pl -f --show-types --terse drivers/pinctrl/*.[ch] --types=SYMBOLIC_PERMS --fix-inplace > > NAK! See above. The command line above is for octal conversion of the symbolic permissions. Any other conversion would be for a different purpose and that purpose and should be described in the commit message.