public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
From: Rob Herring <robh@kernel.org>
To: "Rafael J. Wysocki" <rafael@kernel.org>,
	Len Brown <lenb@kernel.org>,
	Marcelo Schmitt <marcelo.schmitt1@gmail.com>,
	Lars-Peter Clausen <lars@metafoo.de>,
	Michael Hennerich <Michael.Hennerich@analog.com>,
	Jonathan Cameron <jic23@kernel.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Johannes Berg <johannes@sipsolutions.net>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Jiri Slaby <jirislaby@kernel.org>,
	Thierry Reding <thierry.reding@gmail.com>,
	Jonathan Hunter <jonathanh@nvidia.com>,
	Marc Zyngier <maz@kernel.org>
Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-staging@lists.linux.dev, linux-wireless@vger.kernel.org,
	netdev@vger.kernel.org, linux-serial@vger.kernel.org,
	linux-tegra@vger.kernel.org, linux-acpi@vger.kernel.org,
	devicetree@vger.kernel.org,
	Stephen Rothwell <sfr@canb.auug.org.au>,
	Jacob Keller <jacob.e.keller@intel.com>
Subject: [PATCH v2 10/10] ACPI: Replace irqdomain.h include with struct declarations
Date: Wed, 05 Apr 2023 15:27:24 -0500	[thread overview]
Message-ID: <20230329-acpi-header-cleanup-v2-10-c902e581923b@kernel.org> (raw)
In-Reply-To: <20230329-acpi-header-cleanup-v2-0-c902e581923b@kernel.org>

linux/acpi.h includes irqdomain.h which includes of.h. Break the include
chain by replacing the irqdomain include with forward declarations for
struct irq_domain and irq_domain_ops which is sufficient for acpi.h.

of.h also includes mod_devicetable.h which many drivers implicitly
depend on. As acpi.h already includes it, just move it out of the
'#ifdef CONFIG_ACPI'.

Cc: Marc Zyngier <maz@kernel.org>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Rob Herring <robh@kernel.org>
---
v2:
 - Move mod_devicetable.h out of #ifdef
---
 include/linux/acpi.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/linux/acpi.h b/include/linux/acpi.h
index efff750f326d..96bd672dc336 100644
--- a/include/linux/acpi.h
+++ b/include/linux/acpi.h
@@ -10,12 +10,15 @@
 
 #include <linux/errno.h>
 #include <linux/ioport.h>	/* for struct resource */
-#include <linux/irqdomain.h>
 #include <linux/resource_ext.h>
 #include <linux/device.h>
+#include <linux/mod_devicetable.h>
 #include <linux/property.h>
 #include <linux/uuid.h>
 
+struct irq_domain;
+struct irq_domain_ops;
+
 #ifndef _LINUX
 #define _LINUX
 #endif
@@ -24,7 +27,6 @@
 #ifdef	CONFIG_ACPI
 
 #include <linux/list.h>
-#include <linux/mod_devicetable.h>
 #include <linux/dynamic_debug.h>
 #include <linux/module.h>
 #include <linux/mutex.h>

-- 
2.39.2


  parent reply	other threads:[~2023-04-05 20:27 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-05 20:27 [PATCH v2 00/10] Remove acpi.h implicit include of of.h Rob Herring
2023-04-05 20:27 ` [PATCH v2 01/10] iio: adc: ad7292: Add explicit include for of.h Rob Herring
2023-04-05 20:27 ` [PATCH v2 02/10] staging: iio: resolver: ad2s1210: " Rob Herring
2023-04-05 20:27 ` [PATCH v2 03/10] net: rfkill-gpio: " Rob Herring
2023-04-05 20:27 ` [PATCH v2 04/10] serial: 8250_tegra: " Rob Herring
2023-04-06  8:00   ` Thierry Reding
2023-04-05 20:27 ` [PATCH v2 05/10] ata: pata_macio: Add explicit include of irqdomain.h Rob Herring
2023-04-05 20:27 ` [PATCH v2 06/10] pata: ixp4xx: Add explicit include for of.h Rob Herring
2023-04-05 20:27 ` [PATCH v2 07/10] virtio-mmio: " Rob Herring
2023-04-05 20:27 ` [PATCH v2 08/10] tpm: atmel: " Rob Herring
2023-04-05 20:27 ` [PATCH v2 09/10] fpga: lattice-sysconfig-spi: " Rob Herring
2023-04-05 20:27 ` Rob Herring [this message]
2023-04-06 18:40 ` [PATCH v2 00/10] Remove acpi.h implicit include of of.h Rafael J. Wysocki

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=20230329-acpi-header-cleanup-v2-10-c902e581923b@kernel.org \
    --to=robh@kernel.org \
    --cc=Michael.Hennerich@analog.com \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=edumazet@google.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jacob.e.keller@intel.com \
    --cc=jic23@kernel.org \
    --cc=jirislaby@kernel.org \
    --cc=johannes@sipsolutions.net \
    --cc=jonathanh@nvidia.com \
    --cc=kuba@kernel.org \
    --cc=lars@metafoo.de \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=linux-tegra@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=marcelo.schmitt1@gmail.com \
    --cc=maz@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=rafael@kernel.org \
    --cc=sfr@canb.auug.org.au \
    --cc=thierry.reding@gmail.com \
    /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