Message ID | 20230410232647.1561308-1-robh@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2216341vqo; Mon, 10 Apr 2023 16:33:08 -0700 (PDT) X-Google-Smtp-Source: AKy350Y0PpBo1Hvd/WYDBiK+rtl2UTAYkVp/0zA4WKM7KGBz0EmmyzUpcW8M9y8bGnL9va0ViMfR X-Received: by 2002:aa7:d859:0:b0:504:8d0c:210b with SMTP id f25-20020aa7d859000000b005048d0c210bmr6731572eds.30.1681169588380; Mon, 10 Apr 2023 16:33:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681169588; cv=none; d=google.com; s=arc-20160816; b=zwYufwV7RV4R2JPGlSJ4RVRhY1MQy82RlEJ3QAlvMdqvUNHFyzxJfT3bKlsaTOknAk vyoXMWR8T52hVGkDo+jzgY3YS3haz+9HNKA5LVG/GA3ZZQCC424p0tHdwrLDKbZT1Hs9 x74pjFgRgYh3dMrwv2ScgH/0QdxJp9O10H3bzDkxCPIw1iXLO45cHrsVm3aqSYj2nojn X5PCGBA2iFDNTfcN/jTwkyUFmoP8pmiTHx0KFOJtZW7QXSZ36xm/i7Nc7tbGhobuWntg xYheELTm7q1T5ALlBt3lA6S5GDCSHz0EG/rLsy/Cr9KhJVGkkeA3ROA8+Xp4dKED6DDE 47gA== 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:subject:cc:to:from; bh=g+lsRPR514idYMKUtLslcoXrNYCKeBOjYwsL0KuiBuc=; b=L6qvAw/R8ktOEXQqAI61XbIaRby81wh6FiwC8q3xJXOmizKJRAP7uFL19Dli3pIZ+b XEVWbekoZy2iDqIRF8GOaPk/twJuYQCPc6O5oK9+RIVOjC8zfkRmaL051C2C+GKs7kRZ i79OeaJ5cmDwbFGbFNJ489rtWLh+oEEgWcYiWHnAqzAghbTDCL6Y+T07zg/v93QVMftu /vjrZlHxKAifZa+wy+lHZsoNkm/eU74Vu6d/JSQUWIH7Y2kh11GJGh/r8Qg63EuAj6q+ RXtcw0eRv08No/2L6ijN6mJRUyLCPsbpXzai9RLH9OUTJmzMwfcx46QYo+sxryHuDFDe +RHg== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b4-20020a05640202c400b005046333f9dasi9990092edx.87.2023.04.10.16.32.44; Mon, 10 Apr 2023 16:33:08 -0700 (PDT) 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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229912AbjDJX06 (ORCPT <rfc822;yuanzuo1009@gmail.com> + 99 others); Mon, 10 Apr 2023 19:26:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229915AbjDJX04 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 10 Apr 2023 19:26:56 -0400 Received: from mail-oi1-f169.google.com (mail-oi1-f169.google.com [209.85.167.169]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9C922700 for <linux-kernel@vger.kernel.org>; Mon, 10 Apr 2023 16:26:53 -0700 (PDT) Received: by mail-oi1-f169.google.com with SMTP id m2so3867181oiw.0 for <linux-kernel@vger.kernel.org>; Mon, 10 Apr 2023 16:26:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681169213; x=1683761213; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=g+lsRPR514idYMKUtLslcoXrNYCKeBOjYwsL0KuiBuc=; b=vx3GfdAsrKxPjcBtcP3AGDaINWmZtde0j27y1SdONlsgxsr0jBu6BXjsBVajQdSS8+ dK1b9ZZyjAMsxCLOydtYVCljm4IUQHXu6DOnFG7ahYP0k/GuK3efIM0BGySRbH/ma0UN ztIdp9Zn2fdvW930poKI4mbAajFNBaJVTqW6cvT7Hk0WiA+We/DCjHV1Quc0QGtDhXFG aj3qsk24EWtmlVCSj0EIcdKPdkGOUgDXiQ1kR4t/IXNXJak9a0N+QtQIGZ6Ho6fg4/T6 A8d4t2BPNVhQ9GyUCKlwDVw3f4CuRSxxlBTtGXG5xalDYZ47uAxeFYqPMpisbo5szllz OiXw== X-Gm-Message-State: AAQBX9eUJWfB0jsG3C/TL6HWVW/rXL4JkWZj9WjbuqdOoz26nzN3zixo 6rqNrMCdItBt6TwPt9Kejg== X-Received: by 2002:aca:220b:0:b0:387:2075:59b with SMTP id b11-20020aca220b000000b003872075059bmr4660945oic.24.1681169212605; Mon, 10 Apr 2023 16:26:52 -0700 (PDT) Received: from robh_at_kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id 17-20020a544191000000b00383ece4c29bsm4930513oiy.6.2023.04.10.16.26.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Apr 2023 16:26:52 -0700 (PDT) Received: (nullmailer pid 1561407 invoked by uid 1000); Mon, 10 Apr 2023 23:26:51 -0000 From: Rob Herring <robh@kernel.org> To: Lucas Stach <l.stach@pengutronix.de>, Russell King <linux+etnaviv@armlinux.org.uk>, Christian Gmeiner <christian.gmeiner@gmail.com>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch> Cc: etnaviv@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm: etnaviv: Replace of_platform.h with explicit includes Date: Mon, 10 Apr 2023 18:26:47 -0500 Message-Id: <20230410232647.1561308-1-robh@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762834082223212838?= X-GMAIL-MSGID: =?utf-8?q?1762834082223212838?= |
Series |
drm: etnaviv: Replace of_platform.h with explicit includes
|
|
Commit Message
Rob Herring
April 10, 2023, 11:26 p.m. UTC
Etnaviv doesn't use anything from of_platform.h, but depends on
of.h, of_device.h, and platform_device.h which are all implicitly
included, but that is going to be removed soon.
Signed-off-by: Rob Herring <robh@kernel.org>
---
drivers/gpu/drm/etnaviv/etnaviv_drv.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
Comments
On Mon, Apr 10, 2023 at 5:26 PM Rob Herring <robh@kernel.org> wrote: > > Etnaviv doesn't use anything from of_platform.h, but depends on > of.h, of_device.h, and platform_device.h which are all implicitly > included, but that is going to be removed soon. > > Signed-off-by: Rob Herring <robh@kernel.org> > --- > drivers/gpu/drm/etnaviv/etnaviv_drv.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) Ping! > > diff --git a/drivers/gpu/drm/etnaviv/etnaviv_drv.c b/drivers/gpu/drm/etnaviv/etnaviv_drv.c > index 44ca803237a5..c68e83ed5a23 100644 > --- a/drivers/gpu/drm/etnaviv/etnaviv_drv.c > +++ b/drivers/gpu/drm/etnaviv/etnaviv_drv.c > @@ -6,7 +6,9 @@ > #include <linux/component.h> > #include <linux/dma-mapping.h> > #include <linux/module.h> > -#include <linux/of_platform.h> > +#include <linux/of.h> > +#include <linux/of_device.h> > +#include <linux/platform_device.h> > #include <linux/uaccess.h> > > #include <drm/drm_debugfs.h> > -- > 2.39.2 >
Reviewed-by: Sui Jingfeng <suijingfeng@loongson.cn> On 2023/6/10 04:17, Rob Herring wrote: > On Mon, Apr 10, 2023 at 5:26 PM Rob Herring <robh@kernel.org> wrote: >> Etnaviv doesn't use anything from of_platform.h, but depends on >> of.h, of_device.h, and platform_device.h which are all implicitly >> included, but that is going to be removed soon. >> >> Signed-off-by: Rob Herring <robh@kernel.org> >> --- >> drivers/gpu/drm/etnaviv/etnaviv_drv.c | 4 +++- >> 1 file changed, 3 insertions(+), 1 deletion(-) > Ping! of_device.h already has 'linux/of.h' and 'linux/platform_device.h' included, Would it be sufficient by simply including linux/of_device.h ? I'm fine with the above question explained. ``` #include <linux/platform_device.h> #include <linux/of_platform.h> /* temporary until merge */ #include <linux/of.h> ``` >> diff --git a/drivers/gpu/drm/etnaviv/etnaviv_drv.c b/drivers/gpu/drm/etnaviv/etnaviv_drv.c >> index 44ca803237a5..c68e83ed5a23 100644 >> --- a/drivers/gpu/drm/etnaviv/etnaviv_drv.c >> +++ b/drivers/gpu/drm/etnaviv/etnaviv_drv.c >> @@ -6,7 +6,9 @@ >> #include <linux/component.h> >> #include <linux/dma-mapping.h> >> #include <linux/module.h> >> -#include <linux/of_platform.h> >> +#include <linux/of.h> >> +#include <linux/of_device.h> >> +#include <linux/platform_device.h> >> #include <linux/uaccess.h> >> >> #include <drm/drm_debugfs.h> >> -- >> 2.39.2 >>
On Sun, Jun 11, 2023 at 12:49 AM Sui Jingfeng <suijingfeng@loongson.cn> wrote: > > Reviewed-by: Sui Jingfeng <suijingfeng@loongson.cn> > > > On 2023/6/10 04:17, Rob Herring wrote: > > On Mon, Apr 10, 2023 at 5:26 PM Rob Herring <robh@kernel.org> wrote: > >> Etnaviv doesn't use anything from of_platform.h, but depends on > >> of.h, of_device.h, and platform_device.h which are all implicitly > >> included, but that is going to be removed soon. > >> > >> Signed-off-by: Rob Herring <robh@kernel.org> > >> --- > >> drivers/gpu/drm/etnaviv/etnaviv_drv.c | 4 +++- > >> 1 file changed, 3 insertions(+), 1 deletion(-) > > Ping! > > > of_device.h already has 'linux/of.h' and 'linux/platform_device.h' included, > > Would it be sufficient by simply including linux/of_device.h ? That's part of what I'm trying to remove. Standard practice is to not rely on implicit includes. Rob
On 2023/6/13 02:15, Rob Herring wrote: > On Sun, Jun 11, 2023 at 12:49 AM Sui Jingfeng <suijingfeng@loongson.cn> wrote: >> Reviewed-by: Sui Jingfeng <suijingfeng@loongson.cn> >> >> >> On 2023/6/10 04:17, Rob Herring wrote: >>> On Mon, Apr 10, 2023 at 5:26 PM Rob Herring <robh@kernel.org> wrote: >>>> Etnaviv doesn't use anything from of_platform.h, but depends on >>>> of.h, of_device.h, and platform_device.h which are all implicitly >>>> included, but that is going to be removed soon. >>>> >>>> Signed-off-by: Rob Herring <robh@kernel.org> >>>> --- >>>> drivers/gpu/drm/etnaviv/etnaviv_drv.c | 4 +++- >>>> 1 file changed, 3 insertions(+), 1 deletion(-) >>> Ping! >> >> of_device.h already has 'linux/of.h' and 'linux/platform_device.h' included, >> >> Would it be sufficient by simply including linux/of_device.h ? > That's part of what I'm trying to remove. Standard practice is to not > rely on implicit includes. Ok, that's fine then. Tested-by: Sui Jingfeng <suijingfeng@loongson.cn> > Rob
Am Freitag, dem 09.06.2023 um 14:17 -0600 schrieb Rob Herring: > On Mon, Apr 10, 2023 at 5:26 PM Rob Herring <robh@kernel.org> wrote: > > > > Etnaviv doesn't use anything from of_platform.h, but depends on > > of.h, of_device.h, and platform_device.h which are all implicitly > > included, but that is going to be removed soon. > > > > Signed-off-by: Rob Herring <robh@kernel.org> > > --- > > drivers/gpu/drm/etnaviv/etnaviv_drv.c | 4 +++- > > 1 file changed, 3 insertions(+), 1 deletion(-) > > Ping! Thanks, applied to etnaviv/next. Regards, Lucas > > > > > diff --git a/drivers/gpu/drm/etnaviv/etnaviv_drv.c b/drivers/gpu/drm/etnaviv/etnaviv_drv.c > > index 44ca803237a5..c68e83ed5a23 100644 > > --- a/drivers/gpu/drm/etnaviv/etnaviv_drv.c > > +++ b/drivers/gpu/drm/etnaviv/etnaviv_drv.c > > @@ -6,7 +6,9 @@ > > #include <linux/component.h> > > #include <linux/dma-mapping.h> > > #include <linux/module.h> > > -#include <linux/of_platform.h> > > +#include <linux/of.h> > > +#include <linux/of_device.h> > > +#include <linux/platform_device.h> > > #include <linux/uaccess.h> > > > > #include <drm/drm_debugfs.h> > > -- > > 2.39.2 > >
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_drv.c b/drivers/gpu/drm/etnaviv/etnaviv_drv.c index 44ca803237a5..c68e83ed5a23 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_drv.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_drv.c @@ -6,7 +6,9 @@ #include <linux/component.h> #include <linux/dma-mapping.h> #include <linux/module.h> -#include <linux/of_platform.h> +#include <linux/of.h> +#include <linux/of_device.h> +#include <linux/platform_device.h> #include <linux/uaccess.h> #include <drm/drm_debugfs.h>