Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3145077imm; Fri, 25 May 2018 00:05:20 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpuhpCh5bxvz4NLl/bJvFG5I8EOzVEY0831x0K6Hgbiw6d+ohUMH79S5MyFEpvHBHlnNM0/ X-Received: by 2002:a62:8910:: with SMTP id v16-v6mr1306351pfd.13.1527231920671; Fri, 25 May 2018 00:05:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527231920; cv=none; d=google.com; s=arc-20160816; b=Pio6DumMrUffY9/aihO90OWGe1B6xO44YeeuP7/ssAeAC1aUe5CP1Xew8pIRzC9LPj KikSvsFOws1Hg3NhymR3MFTFHnLcsV5xf2Ul0aJpagcqhZ/7iaNdKnCxMgKCkWSKRCoX Rtcj7yc4Ei79Ernq5+drlZ6YoI+YZQx7q7UdzXLJl+w2UJRLpXv3O8IQgX7oj5eveBcm 86ILaWdlPdKEU4a7ZRkptkwuGAYsMFPKAKh9NljT/hpw3xx6Q6xQ+3IKetD6/GBxKg17 ntTZ7dSJC2lpagOWku4eH7lgjtBdJlTJD+YNMAxrQBtkBp+pb3I8+92Bckdh/1AqCzPV 9YyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :organization:in-reply-to:subject:cc:to:from :arc-authentication-results; bh=VHylaYjK9OVCujTsi0wbBva2z4oVUcn7dZLvwpaVDRg=; b=JnSrClSRso/mzHCoGvUb/eiPb7J50MjkAwnrLpRU18L80sVm0ChOFq7qacNBZ79PkP kOxQqkt7zuBcVx7sXYd5f4YRjOGz+HoEx4kdoXG1+p1Bx0ykpKzuBzaohgT0yrFDZl33 nqFs1hlcyvfpELyii20oC9bSisHkx6mnO3CW/3LgRPOLOZlnFYK+eDcS1X7urC/tFQO+ HiQG8ewEWChwNjSzMWAUVJvyeORuJwv9FzwTkZ4Zv9fYZQwuD7JYzK48y3sFyWd6tEQw 6hXhfSY/0ja7fFunCKK3zah3jvcOFKJJd08QFvV1rg6zny3Q8UIoaXl2QJ8SPu/DsAk8 a70g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h4-v6si22159075pls.490.2018.05.25.00.05.03; Fri, 25 May 2018 00:05:20 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935619AbeEYHEx (ORCPT + 99 others); Fri, 25 May 2018 03:04:53 -0400 Received: from mga11.intel.com ([192.55.52.93]:60734 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934393AbeEYHEv (ORCPT ); Fri, 25 May 2018 03:04:51 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 May 2018 00:04:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,439,1520924400"; d="scan'208";a="58391694" Received: from eezerins-mobl1.ger.corp.intel.com (HELO localhost) ([10.252.8.207]) by fmsmga001.fm.intel.com with ESMTP; 25 May 2018 00:04:41 -0700 From: Jani Nikula To: Joe Perches , 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 =?utf-8?Q?K=C3=B6nig?= , "David \(ChunMing\) Zhou" , Benjamin Gaignard , Vincent Abriou , Noralf =?utf-8?Q?Tr=C3=B8nnes?= , 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 Subject: Re: [PATCH] gpu: Consistently use octal not symbolic permissions In-Reply-To: <2108eb98b35ab682d44ca7bf40276e93d9566bbf.camel@perches.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <9b0f5f5cf6bccc003beef82f0972be655613075d.1527193246.git.joe@perches.com> <87a7so44q5.fsf@intel.com> <2108eb98b35ab682d44ca7bf40276e93d9566bbf.camel@perches.com> Date: Fri, 25 May 2018 10:04:40 +0300 Message-ID: <8736yg43nb.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 24 May 2018, Joe Perches wrote: > 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. You're changing like a dozen trees. And apparently maintainers of different trees also have different opinions on whether this is a good idea or not. Mass changes like this go nowhere, and if they do, will cause unnecessary conflicts that could have been trivially avoided. BR, Jani. > But you could do that via something like: > > $ git am --include='drivers/gpu/drm/i915/*' > > cheers, Joe > -- Jani Nikula, Intel Open Source Graphics Center