Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp798322rwl; Thu, 5 Jan 2023 04:52:38 -0800 (PST) X-Google-Smtp-Source: AMrXdXusp4BMlVrEKT85iVvyPIfXGi2bUpbRQuNAeDpB7IfW6RMgd0XxGgokrL27mKY04O4QoEq6 X-Received: by 2002:a17:906:4704:b0:7c1:ac8:73a0 with SMTP id y4-20020a170906470400b007c10ac873a0mr45834961ejq.51.1672923158349; Thu, 05 Jan 2023 04:52:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672923158; cv=none; d=google.com; s=arc-20160816; b=KaDFI8u6oIp+nsaBMxqKn7IWAVSzqjmI1GQoR52YL1HYMbmcs2hgEcCVCYZxLRl+cT VVAuvqbiozI6QV1iI+z2AFMjFmgVQ5e9/aFwIbiiZbiBRRet8WyW0jzGT54Cj0gIZpLl FGnKwlX7oY74VdqLTcgpbJPOkWGmoulwikcna1wfF5PjDB8kORZY192MpYDBtjeah4XB XBoZSw00GM6a/io4P3JO+EZtg8dTnpg1BZiYKNAbK5s2twA8jXi+z9JDJdKaWxEkzYOn NZDWadHSyD3HFGF6pY8yr6ZrWt6+HQ0FwR9MuL0z1Pt3KEEH66D1RliIXKz4D/vT6nxA NoRg== 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 :message-id:date:references:organization:in-reply-to:subject:cc:to :from:dkim-signature; bh=mwFUWwgwzgpBqNkhhItyOweQyuE8nhGXCYxHkefat5k=; b=yM/CLBj+abY+nKSL2+lwgDZyHj/RguSqORrr13a+A6GEA+/ijb26iLTrjsi0nFtr3f nDf+EUlR3k/BnXRvyGbcVqpDe7bJYJftEjizXoXLzctKI4oewVb9WVAcWmrt4zrYjGwD utlVAe1Z5BgxKv/A+maaDcoHbiMG3LBcg4dqOCymItLu6d/7FZjtXBlqrNjwCVw2GvGw vPtq4RtefS4SpvyaA/9B1X11+ojEnD5i7W7K+rZZeeIZCpFEsS2o2m92ZvDZKaxTm10S 4YPhy5lG5iq+9OJEuI6EgymHxImXMdQlj8gLRF3o7fnD+cR3jdpuhUtP538JMnfrbyyU blBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mtpyOPdi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i16-20020a0564020f1000b0047bfe02c198si32824490eda.74.2023.01.05.04.52.24; Thu, 05 Jan 2023 04:52:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mtpyOPdi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231964AbjAEMoY (ORCPT + 56 others); Thu, 5 Jan 2023 07:44:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231664AbjAEMoW (ORCPT ); Thu, 5 Jan 2023 07:44:22 -0500 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 895D244C6B for ; Thu, 5 Jan 2023 04:44:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672922661; x=1704458661; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version:content-transfer-encoding; bh=03yRk3YUTRbtUlTbBX6g4yWRvlr9Bn2e6cwwlDOVhrs=; b=mtpyOPdi+uWW0lQOe1LOWDRqMUifCfKlhvO0CJL5EUT2z0iWxFdTiNip Hrtf2szOTIF+9fqf0lSWGgUUYRaB2+25I8aJlG5KHvEq7LGAmX8PZRZSv iOUrqpDafBKN/62xReB9hc5g25SzmiiljWSxMZsd4/WFFMzYZCWh7JzB3 h27GXntTwOXRK8fTdasdlUpw8C2b6bnxL1JBDsm0ZayaTfH6ndcXz1AvK puGhp/S/Wi/0fJ4WIbZV1c9HNFa9qabsew1/b20VixCRQgNVJXXQKSZ6A Aq994JcLS0UbqfCjyo/4W4Y3gp/U+JtngdgBtYca04wuqxc9mGfrlkG2M Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10580"; a="408445950" X-IronPort-AV: E=Sophos;i="5.96,302,1665471600"; d="scan'208";a="408445950" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jan 2023 04:44:20 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10580"; a="724050843" X-IronPort-AV: E=Sophos;i="5.96,302,1665471600"; d="scan'208";a="724050843" Received: from swathish-mobl.ger.corp.intel.com (HELO localhost) ([10.252.10.152]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jan 2023 04:44:16 -0800 From: Jani Nikula To: =?utf-8?Q?Ma=C3=ADra?= Canal , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Oded Gabbay Cc: Melissa Wen , =?utf-8?Q?Andr=C3=A9?= Almeida , Emma Anholt , Rodrigo Siqueira , Wambui Karuga , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, =?utf-8?Q?Ma=C3=ADra?= Canal , Wambui Karuga , Maxime Ripard Subject: Re: [PATCH v4 1/7] drm/debugfs: create device-centered debugfs functions In-Reply-To: <20221219120621.15086-2-mcanal@igalia.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20221219120621.15086-1-mcanal@igalia.com> <20221219120621.15086-2-mcanal@igalia.com> Date: Thu, 05 Jan 2023 14:44:14 +0200 Message-ID: <87bkndw3q9.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 19 Dec 2022, Ma=C3=ADra Canal wrote: > @@ -230,6 +247,12 @@ int drm_debugfs_init(struct drm_minor *minor, int mi= nor_id, > if (dev->driver->debugfs_init) > dev->driver->debugfs_init(minor); >=20=20 > + list_for_each_entry_safe(entry, tmp, &dev->debugfs_list, list) { > + debugfs_create_file(entry->file.name, S_IFREG | S_IRUGO, I know this was merged already, but S_IFREG is redundant, and the octal values are preferred over S_IRUGO. See checkpatch SYMBOLIC_PERMS. This would be just 0444. BR, Jani. > + minor->debugfs_root, entry, &drm_debugfs_entry_fops); > + list_del(&entry->list); > + } > + > return 0; > } >=20=20 --=20 Jani Nikula, Intel Open Source Graphics Center