From: <Parthiban.Veerasooran@microchip.com>
To: <robh@kernel.org>
Cc: <devicetree@vger.kernel.org>, <linux-staging@lists.linux.dev>,
<linux-kernel@vger.kernel.org>, <greybus-dev@lists.linaro.org>,
<linux-media@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-amlogic@lists.infradead.org>,
<linux-sunxi@lists.linux.dev>, <linux-tegra@vger.kernel.org>,
<hvaibhav.linux@gmail.com>, <johan@kernel.org>,
<elder@kernel.org>, <slongerbeam@gmail.com>,
<p.zabel@pengutronix.de>, <mchehab@kernel.org>,
<s.hauer@pengutronix.de>, <kernel@pengutronix.de>,
<festevam@gmail.com>, <gregkh@linuxfoundation.org>,
<linux-imx@nxp.com>, <neil.armstrong@linaro.org>,
<khilman@baylibre.com>, <jbrunet@baylibre.com>,
<martin.blumenstingl@googlemail.com>, <mripard@kernel.org>,
<paul.kocialkowski@bootlin.com>, <wens@csie.org>,
<jernej.skrabec@gmail.com>, <samuel@sholland.org>,
<thierry.reding@gmail.com>, <jonathanh@nvidia.com>,
<skomatineni@nvidia.com>, <luca.ceresoli@bootlin.com>,
<Christian.Gromm@microchip.com>
Subject: Re: [PATCH] staging: Explicitly include correct DT includes
Date: Tue, 18 Jul 2023 04:24:55 +0000 [thread overview]
Message-ID: <6d6c8412-1511-a780-30f9-f0cc76112e62@microchip.com> (raw)
In-Reply-To: <20230714175002.4064428-1-robh@kernel.org>
On 14/07/23 11:20 pm, Rob Herring wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
> 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@kernel.org>
> ---
> drivers/staging/most/dim2/dim2.c | 2 +-
Acked-by: Parthiban Veerasooran <parthiban.veerasooran@microchip.com>
>
> diff --git a/drivers/staging/most/dim2/dim2.c b/drivers/staging/most/dim2/dim2.c
> index 44d3252d4612..ed6a9cc88541 100644
> --- a/drivers/staging/most/dim2/dim2.c
> +++ b/drivers/staging/most/dim2/dim2.c
> @@ -8,7 +8,6 @@
> #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
>
> #include <linux/module.h>
> -#include <linux/of_platform.h>
> #include <linux/printk.h>
> #include <linux/kernel.h>
> #include <linux/init.h>
> @@ -21,6 +20,7 @@
> #include <linux/sched.h>
> #include <linux/kthread.h>
> #include <linux/most.h>
> +#include <linux/of.h>
> #include "hal.h"
> #include "errors.h"
> #include "sysfs.h"
> --
> 2.40.1
>
next prev parent reply other threads:[~2023-07-18 4:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-14 17:50 [PATCH] staging: Explicitly include correct DT includes Rob Herring
2023-07-14 18:10 ` [greybus-dev] " Alex Elder
2023-07-17 12:38 ` Luca Ceresoli
2023-07-18 4:24 ` Parthiban.Veerasooran [this message]
2023-07-19 6:38 ` Hans Verkuil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6d6c8412-1511-a780-30f9-f0cc76112e62@microchip.com \
--to=parthiban.veerasooran@microchip.com \
--cc=Christian.Gromm@microchip.com \
--cc=devicetree@vger.kernel.org \
--cc=elder@kernel.org \
--cc=festevam@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=greybus-dev@lists.linaro.org \
--cc=hvaibhav.linux@gmail.com \
--cc=jbrunet@baylibre.com \
--cc=jernej.skrabec@gmail.com \
--cc=johan@kernel.org \
--cc=jonathanh@nvidia.com \
--cc=kernel@pengutronix.de \
--cc=khilman@baylibre.com \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-imx@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=linux-sunxi@lists.linux.dev \
--cc=linux-tegra@vger.kernel.org \
--cc=luca.ceresoli@bootlin.com \
--cc=martin.blumenstingl@googlemail.com \
--cc=mchehab@kernel.org \
--cc=mripard@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=p.zabel@pengutronix.de \
--cc=paul.kocialkowski@bootlin.com \
--cc=robh@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=samuel@sholland.org \
--cc=skomatineni@nvidia.com \
--cc=slongerbeam@gmail.com \
--cc=thierry.reding@gmail.com \
--cc=wens@csie.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox