Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3134441imm; Thu, 24 May 2018 23:52:16 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoDB0oG6qXHrpYVLQXM+SS0lf2KW9WDZSzs0Hn33GLCysAAvYKXXT28zq77WVPwSHISbhIx X-Received: by 2002:aa7:8492:: with SMTP id u18-v6mr1268197pfn.225.1527231136090; Thu, 24 May 2018 23:52:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527231136; cv=none; d=google.com; s=arc-20160816; b=dvr2yTeP45RDFjEl9ITI4mfb/IuZ4mF7KJWMnxHEzx9PqfGv/i/wOBsEJAGgGjJDpD cVh9mhVTPV+c2X9JpDQlhCTHbexEcH1h0jpsCJUKFGy0aeUgwPiBIC5e6EXi0kuN9axn sLs0RGj6efDpURH3aEYY2nquCezNfH4vmZ5+sgBo5p5zIrUPtp2zCiTp5LWngKgfuBkH BfcOH0baUyEtovlEN2NcGr1hgIKm3PWKgF930uEOgXsCM1eGNKPRPVp7ksJ+VuyJG2yb BfXyXDqcpGG03HAnNJb4D94tzjIAmJCUgnNJKYKGIWXskKzO2aHFXtOifx45PZWBjFRX A45A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=GAiqgnJ3L9RzZ/gOgEtFUPVwEtoVhMwpwVUH9k2W1sc=; b=COvvtMOSVsbAnEzzmO0uvn+4cdcB+V5mtwXUepuDOVrWo1ut64dSumj0r/KIuneJ4D n/9q4LOE2+1yo4f5WqDyuBAu7SPkGWvsNQxwqE4VxC/z1k24Nyi9ibStuC33sWmV3U5J RvfARhSUs9WRurT/88s+UGYP5+ovHRjIPjDSVP6S+8EYhb3F4tkjibMHvDpsH4XVoCBp 7DmlfLGaqVQPYmxaom09SOhBBNn12+p1NxGItlTJUFoidg395eRFYEPE1AYXJ8ByAL8R piL40TwVFVXrJu90rtgncHE9ScMqH1XPx8sCQkVsmmS7OuLp7dlSAnO1l7H7PTBnBsqe 3kKA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q23-v6si23556943pfj.8.2018.05.24.23.52.00; Thu, 24 May 2018 23:52:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754309AbeEYGuo (ORCPT + 99 others); Fri, 25 May 2018 02:50:44 -0400 Received: from smtprelay0209.hostedemail.com ([216.40.44.209]:40634 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751791AbeEYGum (ORCPT ); Fri, 25 May 2018 02:50:42 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay05.hostedemail.com (Postfix) with ESMTP id 8FC37180CA1BD; Fri, 25 May 2018 06:50:41 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: X-HE-Tag: fight46_532e0d2cc445 X-Filterd-Recvd-Size: 4183 Received: from XPS-9350.home (unknown [47.151.150.235]) (Authenticated sender: joe@perches.com) by omf09.hostedemail.com (Postfix) with ESMTPA; Fri, 25 May 2018 06:50:35 +0000 (UTC) Message-ID: <2108eb98b35ab682d44ca7bf40276e93d9566bbf.camel@perches.com> Subject: Re: [PATCH] gpu: Consistently use octal not symbolic permissions From: Joe Perches To: Jani Nikula , Russell King , Gustavo Padovan , Maarten Lankhorst , Sean Paul , David Airlie , Zhenyu Wang , Zhi Wang , Joonas Lahtinen , Rodrigo Vivi , Rob Clark , Ben Skeggs , Alex Deucher , Christian =?ISO-8859-1?Q?K=F6nig?= , "David (ChunMing) Zhou" , Benjamin Gaignard , Vincent Abriou , Noralf =?ISO-8859-1?Q?Tr=F8nnes?= , Roger He , Dave Airlie , Thierry Reding Cc: Tomi Valkeinen , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, intel-gvt-dev@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-tegra@vger.kernel.org Date: Thu, 24 May 2018 23:50:34 -0700 In-Reply-To: <87a7so44q5.fsf@intel.com> References: <9b0f5f5cf6bccc003beef82f0972be655613075d.1527193246.git.joe@perches.com> <87a7so44q5.fsf@intel.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2018-05-25 at 09:41 +0300, Jani Nikula wrote: > On Thu, 24 May 2018, Joe Perches wrote: > > There is currently a mixture of octal and symbolic permissions uses > > in files in drivers/gpu/drm and one file in drivers/gpu. > > > > There are ~270 existing octal uses and ~115 S_ uses. > > > > Convert all the S_ symbolic permissions to their octal equivalents > > as using octal and not symbolic permissions is preferred by many as more > > readable. > > > > see: https://lkml.org/lkml/2016/8/2/1945 > > > > Done with automated conversion via: > > $ ./scripts/checkpatch.pl -f --types=SYMBOLIC_PERMS --fix-inplace > > > > Miscellanea: > > > > o Wrapped modified multi-line calls to a single line where appropriate > > o Realign modified multi-line calls to open parenthesis > > o drivers/gpu/drm/msm/adreno/a5xx_debugfs.c has a world-writeable > > debug permission for "reset" - perhaps that should be modified > > Signed-off-by: Joe Perches > > --- > > drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 2 +- > > drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 98 +++++++++++----------- > > drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | 3 +- > > drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 9 +- > > drivers/gpu/drm/armada/armada_debugfs.c | 4 +- > > drivers/gpu/drm/drm_debugfs.c | 6 +- > > drivers/gpu/drm/drm_debugfs_crc.c | 4 +- > > drivers/gpu/drm/drm_sysfs.c | 2 +- > > drivers/gpu/drm/i915/gvt/firmware.c | 2 +- > > drivers/gpu/drm/i915/i915_debugfs.c | 8 +- > > drivers/gpu/drm/i915/i915_perf.c | 2 +- > > drivers/gpu/drm/i915/i915_sysfs.c | 22 ++--- > > drivers/gpu/drm/i915/intel_pipe_crc.c | 2 +- > > Please send at least i915 changes separately. There's zero reason to > make our lives harder for this change. The idea is to avoid unnecessary multiple patches for individual trees. But you could do that via something like: $ git am --include='drivers/gpu/drm/i915/*' cheers, Joe