[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] drm: Explicitly include correct DT includes
- To: Abhinav Kumar <quic_abhinavk@xxxxxxxxxxx>, Alain Volmat <alain.volmat@xxxxxxxxxxx>, Alexandre Torgue <alexandre.torgue@xxxxxxxxxxx>, Alim Akhtar <alim.akhtar@xxxxxxxxxxx>, Alyssa Rosenzweig <alyssa.rosenzweig@xxxxxxxxxxxxx>, Andrzej Hajda <andrzej.hajda@xxxxxxxxx>, AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx>, Artur Weber <aweber.kernel@xxxxxxxxx>, Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx>, Broadcom internal kernel review list <bcm-kernel-feedback-list@xxxxxxxxxxxx>, Chen-Yu Tsai <wens@xxxxxxxx>, Christian Gmeiner <christian.gmeiner@xxxxxxxxx>, Chun-Kuang Hu <chunkuang.hu@xxxxxxxxxx>, Chunyan Zhang <zhang.lyra@xxxxxxxxx>, Daniel Vetter <daniel@xxxxxxxx>, David Airlie <airlied@xxxxxxxxx>, Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx>, Emma Anholt <emma@xxxxxxxxxx>, Fabio Estevam <festevam@xxxxxxxxx>, Florian Fainelli <florian.fainelli@xxxxxxxxxxxx>, Guido Günther <agx@xxxxxxxxxxx>, Heiko Stübner <heiko@xxxxxxxxx>, Icenow y Zheng <icenowy@xxxxxxx>, Inki Dae <inki.dae@xxxxxxxxxxx>, Jagan Teki <jagan@xxxxxxxxxxxxxxxxxxxx>, Javier Martinez Canillas <javierm@xxxxxxxxxx>, Jernej Skrabec <jernej.skrabec@xxxxxxxxx>, Jerome Brunet <jbrunet@xxxxxxxxxxxx>, Jerry Han <hanxu5@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>, Jianhua Lu <lujianhua000@xxxxxxxxx>, John Stultz <jstultz@xxxxxxxxxx>, Jonas Karlman <jonas@xxxxxxxxx>, Jonathan Hunter <jonathanh@xxxxxxxxxx>, Jyri Sarha <jyri.sarha@xxxxxx>, Kevin Hilman <khilman@xxxxxxxxxxxx>, Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx>, Kyungmin Park <kyungmin.park@xxxxxxxxxxx>, Laurent Pinchart <Laurent.pinchart@xxxxxxxxxxxxxxxx>, Laurentiu Palcu <laurentiu.palcu@xxxxxxxxxxx>, Linus Walleij <linus.walleij@xxxxxxxxxx>, Liu Ying <victor.liu@xxxxxxx>, Liviu Dudau <liviu.dudau@xxxxxxx>, Lucas Stach <l.stach@xxxxxxxxxxxxxx>, Maarten Lankhorst <maarten.lankhorst@xxxxxxxxxxxxxxx>, Marek Szyprowski <m.szyprowski@xxxxxxxxxxx>, Marek Vasut <marex@xxxxxxx>, Marijn Suijten <marijn.suijten@ somainline.org>, Martin Blumenstingl <martin.blumenstingl@xxxxxxxxxxxxxx>, Matthias Brugger <matthias.bgg@xxxxxxxxx>, Maxime Coquelin <mcoquelin.stm32@xxxxxxxxx>, Maxime Ripard <mripard@xxxxxxxxxx>, Mikko Perttunen <mperttunen@xxxxxxxxxx>, NXP Linux Team <linux-imx@xxxxxxx>, Neil Armstrong <neil.armstrong@xxxxxxxxxx>, Oleksandr Andrushchenko <oleksandr_andrushchenko@xxxxxxxx>, Ondrej Jirman <megi@xxxxxx>, Orson Zhai <orsonzhai@xxxxxxxxx>, Paul Cercueil <paul@xxxxxxxxxxxxxxx>, Paul Kocialkowski <paul.kocialkowski@xxxxxxxxxxx>, Pengutronix Kernel Team <kernel@xxxxxxxxxxxxxx>, Philipp Zabel <p.zabel@xxxxxxxxxxxxxx>, Philippe Cornu <philippe.cornu@xxxxxxxxxxx>, Purism Kernel Team <kernel@xxxxxxx>, Qiang Yu <yuq825@xxxxxxxxx>, Raphael Gallais-Pou <raphael.gallais-pou@xxxxxxxxxxx>, Rob Clark <robdclark@xxxxxxxxx>, Rob Herring <robh@xxxxxxxxxx>, Robert Foss <rfoss@xxxxxxxxxx>, Russell King <linux+etnaviv@xxxxxxxxxxxxxxx>, Sam Ravnborg <sam@xxxxxxxxxxxx>, Samuel Holland <samuel@xxxxxxxxxxxx >, Sandy Huang <hjc@xxxxxxxxxxxxxx>, Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>, Sean Paul <sean@xxxxxxxxxx>, Seung-Woo Kim <sw0312.kim@xxxxxxxxxxx>, Shawn Guo <shawnguo@xxxxxxxxxx>, Stefan Agner <stefan@xxxxxxxx>, Steven Price <steven.price@xxxxxxx>, Sumit Semwal <sumit.semwal@xxxxxxxxxx>, Thierry Reding <thierry.reding@xxxxxxxxx>, Thomas Zimmermann <tzimmermann@xxxxxxx>, Tian Tao <tiantao6@xxxxxxxxxxxxx>, Tomeu Vizoso <tomeu.vizoso@xxxxxxxxxxxxx>, Tomi Valkeinen <tomba@xxxxxxxxxx>, Xinliang Liu <xinliang.liu@xxxxxxxxxx>, Xinwei Kong <kong.kongxinwei@xxxxxxxxxxxxx>, Yannick Fertre <yannick.fertre@xxxxxxxxxxx>, Yongqin Liu <yongqin.liu@xxxxxxxxxx>
- From: Kieran Bingham <kieran.bingham+renesas@xxxxxxxxxxxxxxxx>
- Date: Mon, 17 Jul 2023 12:35:59 +0100
- Cc: devicetree@xxxxxxxxxxxxxxx, Ondrej Jirman <megous@xxxxxxxxxx>, dri-devel@xxxxxxxxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, linux-arm-kernel@xxxxxxxxxxxxxxxxxxx, etnaviv@xxxxxxxxxxxxxxxxxxxxx, linux-samsung-soc@xxxxxxxxxxxxxxx, linux-mips@xxxxxxxxxxxxxxx, lima@xxxxxxxxxxxxxxxxxxxxx, linux-mediatek@xxxxxxxxxxxxxxxxxxx, linux-amlogic@xxxxxxxxxxxxxxxxxxx, linux-arm-msm@xxxxxxxxxxxxxxx, freedreno@xxxxxxxxxxxxxxxxxxxxx, linux-rpi-kernel@xxxxxxxxxxxxxxxxxxx, linux-renesas-soc@xxxxxxxxxxxxxxx, linux-rockchip@xxxxxxxxxxxxxxxxxxx, linux-stm32@xxxxxxxxxxxxxxxxxxxxxxxxxxxx, linux-sunxi@xxxxxxxxxxxxxxx, linux-tegra@xxxxxxxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxx
- Delivery-date: Mon, 17 Jul 2023 11:50:33 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
Quoting Rob Herring (2023-07-14 18:45:34)
> The DT of_device.h and of_platform.h date back to the separate
> of_platform_bus_type before it as merged into the regular platform bus.
> As part of that merge prepping Arm DT support 13 years ago, they
> "temporarily" include each other. They also include platform_device.h
> and of.h. As a result, there's a pretty much random mix of those include
> files used throughout the tree. In order to detangle these headers and
> replace the implicit includes with struct declarations, users need to
> explicitly include the correct includes.
>
> Signed-off-by: Rob Herring <robh@xxxxxxxxxx>
> drivers/gpu/drm/renesas/rcar-du/rcar_du_drv.c | 2 +-
> drivers/gpu/drm/renesas/rcar-du/rcar_du_kms.c | 2 ++
> drivers/gpu/drm/renesas/rcar-du/rcar_du_vsp.c | 1 +
> drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c | 1 -
> drivers/gpu/drm/renesas/rcar-du/rzg2l_mipi_dsi.c | 1 -
For drivers/gpu/drm/renesas/rcar-du/
> diff --git a/drivers/gpu/drm/renesas/rcar-du/rcar_du_drv.c
> b/drivers/gpu/drm/renesas/rcar-du/rcar_du_drv.c
> index 1ffde19cb87f..3904b0cca814 100644
> --- a/drivers/gpu/drm/renesas/rcar-du/rcar_du_drv.c
> +++ b/drivers/gpu/drm/renesas/rcar-du/rcar_du_drv.c
> @@ -12,7 +12,7 @@
> #include <linux/io.h>
> #include <linux/mm.h>
> #include <linux/module.h>
> -#include <linux/of_device.h>
> +#include <linux/of.h>
> #include <linux/platform_device.h>
> #include <linux/pm.h>
> #include <linux/slab.h>
> diff --git a/drivers/gpu/drm/renesas/rcar-du/rcar_du_kms.c
> b/drivers/gpu/drm/renesas/rcar-du/rcar_du_kms.c
> index adfb36b0e815..9ff4537c26c8 100644
> --- a/drivers/gpu/drm/renesas/rcar-du/rcar_du_kms.c
> +++ b/drivers/gpu/drm/renesas/rcar-du/rcar_du_kms.c
> @@ -20,8 +20,10 @@
>
> #include <linux/device.h>
> #include <linux/dma-buf.h>
> +#include <linux/of.h>
> #include <linux/of_graph.h>
> #include <linux/of_platform.h>
> +#include <linux/platform_device.h>
> #include <linux/wait.h>
>
> #include "rcar_du_crtc.h"
> diff --git a/drivers/gpu/drm/renesas/rcar-du/rcar_du_vsp.c
> b/drivers/gpu/drm/renesas/rcar-du/rcar_du_vsp.c
> index 45c05d0ffc70..9cbb5e6e2cba 100644
> --- a/drivers/gpu/drm/renesas/rcar-du/rcar_du_vsp.c
> +++ b/drivers/gpu/drm/renesas/rcar-du/rcar_du_vsp.c
> @@ -22,6 +22,7 @@
> #include <linux/bitops.h>
> #include <linux/dma-mapping.h>
> #include <linux/of_platform.h>
> +#include <linux/platform_device.h>
> #include <linux/scatterlist.h>
> #include <linux/slab.h>
> #include <linux/videodev2.h>
> diff --git a/drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c
> b/drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c
> index e10e4d4b89a2..db2e6f16f954 100644
> --- a/drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c
> +++ b/drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c
> @@ -12,7 +12,6 @@
> #include <linux/math64.h>
> #include <linux/module.h>
> #include <linux/of.h>
> -#include <linux/of_device.h>
> #include <linux/of_graph.h>
> #include <linux/platform_device.h>
> #include <linux/reset.h>
> diff --git a/drivers/gpu/drm/renesas/rcar-du/rzg2l_mipi_dsi.c
> b/drivers/gpu/drm/renesas/rcar-du/rzg2l_mipi_dsi.c
> index aa95b85a2964..8048bdca2d6c 100644
> --- a/drivers/gpu/drm/renesas/rcar-du/rzg2l_mipi_dsi.c
> +++ b/drivers/gpu/drm/renesas/rcar-du/rzg2l_mipi_dsi.c
> @@ -10,7 +10,6 @@
> #include <linux/iopoll.h>
> #include <linux/module.h>
> #include <linux/of.h>
> -#include <linux/of_device.h>
> #include <linux/of_graph.h>
> #include <linux/platform_device.h>
> #include <linux/pm_runtime.h>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@xxxxxxxxxxxxxxxx>
|