From: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: Hadar Gat <hadar.gat-5wv7dgnIgG8@public.gmane.org>
Cc: "Jose Abreu" <joabreu-HKixBCOQz3hWk0Htik3J/w@public.gmane.org>,
"Alexandre Belloni"
<alexandre.belloni-LDxbnhwyfcJBDgjK7y7TUQ@public.gmane.org>,
"Heiko Stübner" <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>,
"David Airlie" <airlied-cv59FeDIM0c@public.gmane.org>,
"Linus Walleij"
<linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
"Liviu Dudau" <liviu.dudau-5wv7dgnIgG8@public.gmane.org>,
dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org,
"Sandy Huang" <hjc-TNX95d0MmH7DzftRWevZcw@public.gmane.org>,
"Thierry Reding"
<thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
"Miquel Raynal"
<miquel.raynal-LDxbnhwyfcJBDgjK7y7TUQ@public.gmane.org>,
netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
"Kishon Vijay Abraham I" <kishon-l0cyMroinI0@public.gmane.org>,
"Lee Jones" <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
linux-stm32-XDFAJ8BFU24N7RejjzZ/Li2xQDfSxrLKVpNB7YpNyf8@public.gmane.org,
"Vignesh Raghavendra" <vigneshr-l0cyMroinI0@public.gmane.org>,
linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
"Lorenzo Pieralisi"
<lorenzo.pieralisi-5wv7dgnIgG8@public.gmane.org>,
"Frank Rowand"
<frowand.list-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
"Richard Weinberger" <richard-/L3Ra7n9ekc@public.gmane.org>,
"Joerg Roedel" <joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>,
"Vinod Koul" <vkoul-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Subject: Re: [PATCH] of_device: removed #include that caused a recursion in included headers
Date: Mon, 20 Apr 2020 15:36:47 -0500 [thread overview]
Message-ID: <20200420203647.GA23189@bogus> (raw)
In-Reply-To: <1586784960-22692-1-git-send-email-hadar.gat-5wv7dgnIgG8@public.gmane.org>
On Mon, Apr 13, 2020 at 04:35:53PM +0300, Hadar Gat wrote:
> Both of_platform.h and of_device.h were included each other.
> In of_device.h, removed unneeded #include to of_platform.h
> and added include to of_platform.h in the files that needs it.
Guess we forgot about that temporary comment!
Both of these headers have a lot of things we don't want 'normal'
drivers calling. The most common thing needed from of_device.h is
of_match_device/of_device_get_match_data. A good number are only for
ibmebus. Maybe the header should be split or the former just moved
to of.h.
For of_platform.h, it seems we have a bunch of unneeded includes:
$ git grep 'of_platform\.h' drivers/ | wc
560 1120 36049
$ git grep -E 'of_(platform_(pop|def)|find_device)' drivers/ | wc
248 1215 20630
Would nice to drop those (or switch to of_device.h?) too.
Be sure to build on Sparc. It's the oddball.
>
> Signed-off-by: Hadar Gat <hadar.gat-5wv7dgnIgG8@public.gmane.org>
> ---
> drivers/base/platform.c | 1 +
> drivers/bus/vexpress-config.c | 1 +
> drivers/dma/at_hdmac.c | 1 +
> drivers/dma/stm32-dmamux.c | 1 +
> drivers/dma/ti/dma-crossbar.c | 1 +
> drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 1 +
> drivers/gpu/drm/msm/hdmi/hdmi.c | 1 +
> drivers/gpu/drm/msm/msm_drv.c | 1 +
> drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c | 1 +
> drivers/gpu/drm/sun4i/sun4i_tcon.c | 1 +
> drivers/iio/adc/stm32-adc-core.c | 1 +
> drivers/iio/adc/stm32-dfsdm-adc.c | 1 +
> drivers/iio/adc/stm32-dfsdm-core.c | 1 +
> drivers/iommu/tegra-smmu.c | 1 +
> drivers/memory/atmel-ebi.c | 1 +
> drivers/mfd/palmas.c | 1 +
> drivers/mfd/ssbi.c | 1 +
> drivers/mtd/nand/raw/omap2.c | 1 +
> drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 1 +
> drivers/net/ethernet/ti/cpsw.c | 1 +
> drivers/phy/tegra/xusb.c | 1 +
> drivers/pinctrl/nomadik/pinctrl-nomadik.c | 1 +
> drivers/soc/samsung/exynos-pmu.c | 1 +
> drivers/soc/sunxi/sunxi_sram.c | 1 +
> include/linux/of_device.h | 2 --
> lib/genalloc.c | 1 +
> 26 files changed, 25 insertions(+), 2 deletions(-)
next prev parent reply other threads:[~2020-04-20 20:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-13 13:35 [PATCH] of_device: removed #include that caused a recursion in included headers Hadar Gat
[not found] ` <1586784960-22692-1-git-send-email-hadar.gat-5wv7dgnIgG8@public.gmane.org>
2020-04-13 22:45 ` kbuild test robot
2020-04-13 22:56 ` kbuild test robot
2020-04-13 23:02 ` kbuild test robot
2020-04-20 20:36 ` Rob Herring [this message]
2020-04-21 8:16 ` Hadar Gat
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=20200420203647.GA23189@bogus \
--to=robh-dgejt+ai2ygdnm+yrofe0a@public.gmane.org \
--cc=airlied-cv59FeDIM0c@public.gmane.org \
--cc=alexandre.belloni-LDxbnhwyfcJBDgjK7y7TUQ@public.gmane.org \
--cc=dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
--cc=frowand.list-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=hadar.gat-5wv7dgnIgG8@public.gmane.org \
--cc=heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org \
--cc=hjc-TNX95d0MmH7DzftRWevZcw@public.gmane.org \
--cc=joabreu-HKixBCOQz3hWk0Htik3J/w@public.gmane.org \
--cc=joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org \
--cc=kishon-l0cyMroinI0@public.gmane.org \
--cc=lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
--cc=linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
--cc=linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-stm32-XDFAJ8BFU24N7RejjzZ/Li2xQDfSxrLKVpNB7YpNyf8@public.gmane.org \
--cc=liviu.dudau-5wv7dgnIgG8@public.gmane.org \
--cc=lorenzo.pieralisi-5wv7dgnIgG8@public.gmane.org \
--cc=miquel.raynal-LDxbnhwyfcJBDgjK7y7TUQ@public.gmane.org \
--cc=netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=richard-/L3Ra7n9ekc@public.gmane.org \
--cc=thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=vigneshr-l0cyMroinI0@public.gmane.org \
--cc=vkoul-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.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