Message ID | 20230329-acpi-header-cleanup-v1-5-8dc5cd3c610e@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 b10csp697374vqo; Wed, 29 Mar 2023 14:29:03 -0700 (PDT) X-Google-Smtp-Source: AKy350ZIVt+G5vVbnp1YMg8bEtXvPhOA3jpq3CSTvew5mDRs7z0HvUCaSIzCJD0FlY1CidoVbBlS X-Received: by 2002:aa7:96cf:0:b0:624:a58a:d28 with SMTP id h15-20020aa796cf000000b00624a58a0d28mr19619291pfq.4.1680125343129; Wed, 29 Mar 2023 14:29:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680125343; cv=none; d=google.com; s=arc-20160816; b=Eir2pH9pRqUx7BRiWuy4V2A1+0yGZK6sHWzRYdwmilYaC3MnesbsvHdG2pCVR5YWsI kG7rRyOlKsD60qUODp36XCjQ4H5kS1PRa/WzwjN7HlhF51EW7cdry7xAmvOrJ5S6PvDB zaXd1vGRYPupSR+SsyPUfalO8rSKfKgCLku2keh0m7zEMJYT9k00VM4aWtu1HAhZa/qJ ztowt3T6Ed3A+ZBvGc3hcUlAye0tNADeqhq220VMzTNzuUF+VM5/Yrk71Uqsrlrod15t Bvs0IpmsqlNtUWK/MPoSbpdObPzCWhTZ5ScqHC3KsoYb2aFYlWmQQfIgnuyVZpRSiSyH 7Ydg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from; bh=Ztuu6Fsug8mRxKnYsfiismCx0sBKyfeU96HhnyE0Bjs=; b=xCusz7anCUo1kP502MLpuWs5rMArtbShBvS/Kx+11wI02PYIMDkMaBJz/xTM6a4e8p v+zTce0ZSEvLyM8NNqPUOE9iZuKlnGYJtz01BvU7XtZaUYmINbAnd3c8w8mU+5C9egCV DSqpf0amvs06fNBbcrBclYhIhTZvObgpeyn/H6R/C5G0DROg7LTC2LVktay2AZdL1xp/ mXO4f+Q9mMKnBBaCTqNtseQfIlsom22KecBfxenLy1P1JmfW8cFJ4FtoxhrVb7Iq0uZA 6HafDytvwXO3zUMjMRO9Cda1dUH6kI9K2L+q9uO9zbYolNs25yFFDPmOUzQIKys4uUYo MNiA== 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 t10-20020aa7946a000000b00624c3ad6c03si32076060pfq.227.2023.03.29.14.28.49; Wed, 29 Mar 2023 14:29:03 -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 S229996AbjC2VVu (ORCPT <rfc822;rua109.linux@gmail.com> + 99 others); Wed, 29 Mar 2023 17:21:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229871AbjC2VVs (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 29 Mar 2023 17:21:48 -0400 Received: from mail-oi1-f179.google.com (mail-oi1-f179.google.com [209.85.167.179]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A0344EC3; Wed, 29 Mar 2023 14:21:46 -0700 (PDT) Received: by mail-oi1-f179.google.com with SMTP id bj20so12708121oib.3; Wed, 29 Mar 2023 14:21:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680124906; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ztuu6Fsug8mRxKnYsfiismCx0sBKyfeU96HhnyE0Bjs=; b=I6qA/D75s2omWMVeBi8J+UQ29cUBMOLzxP6dBJuK37jMGRnHzNRYGWX+zaoOh5VTHa +Rxa3EyvEus4Ymt06XyEG9+Y/NtRGaJSLYnK4PTTEZ00jyPEHloHJ1o7OdaMlTeqfUAT cQIXXYyeNLojp+pcmrAmhAJRI+c7iRfwBPHozM38Gbfr9wApqN6pfpgQmz5qkcEe3M3T R2pohJZMMsHg6uYB5i8srzu12qzxC6PKZF32akNZ9hwLKt92KRJzXLzd7OyIfXxh1D/b mlyTPcwcJ59MeH9QZ+OEo3auXds7+zXdq4nHSXQl29f9AKtgy6b7AHPXnm/WzArdg7LX W43w== X-Gm-Message-State: AO0yUKXEaaD+7GAE0FrpkpMcYPnxX5Agfluv43vqFjfsCeQWo6oTJgyt 9+Vypy5VT5aHh0em4pe57A== X-Received: by 2002:a05:6808:7cf:b0:35e:d787:ec7f with SMTP id f15-20020a05680807cf00b0035ed787ec7fmr8881054oij.50.1680124905841; Wed, 29 Mar 2023 14:21:45 -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 r184-20020a4a4ec1000000b005251e3f92ecsm14394555ooa.47.2023.03.29.14.21.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Mar 2023 14:21:45 -0700 (PDT) Received: (nullmailer pid 86899 invoked by uid 1000); Wed, 29 Mar 2023 21:21:39 -0000 From: Rob Herring <robh@kernel.org> Date: Wed, 29 Mar 2023 16:20:46 -0500 Subject: [PATCH 5/5] ACPI: Replace irqdomain.h include with struct declarations MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230329-acpi-header-cleanup-v1-5-8dc5cd3c610e@kernel.org> References: <20230329-acpi-header-cleanup-v1-0-8dc5cd3c610e@kernel.org> In-Reply-To: <20230329-acpi-header-cleanup-v1-0-8dc5cd3c610e@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 X-Mailer: b4 0.13-dev X-Spam-Status: No, score=0.8 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?1761739111804117279?= X-GMAIL-MSGID: =?utf-8?q?1761739111804117279?= |
Series |
Remove acpi.h implicit include of of.h
|
|
Commit Message
Rob Herring
March 29, 2023, 9:20 p.m. UTC
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.
Cc: Marc Zyngier <maz@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>
---
include/linux/acpi.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
Comments
Hi Rob, On Wed, Mar 29, 2023 at 11:21 PM Rob Herring <robh@kernel.org> wrote: > > 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. > > Cc: Marc Zyngier <maz@kernel.org> > Signed-off-by: Rob Herring <robh@kernel.org> > --- > include/linux/acpi.h | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/include/linux/acpi.h b/include/linux/acpi.h > index efff750f326d..169c17c0b0dc 100644 > --- a/include/linux/acpi.h > +++ b/include/linux/acpi.h > @@ -10,12 +10,14 @@ > > #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/property.h> > #include <linux/uuid.h> > > +struct irq_domain; > +struct irq_domain_ops; > + > #ifndef _LINUX > #define _LINUX > #endif > > -- This causes build issues in linux-next, so I've dropped the series. I will be happy to pick it up again when the build issues are addressed, though. Thanks!
On Wed, Apr 5, 2023 at 9:59 AM Rafael J. Wysocki <rafael@kernel.org> wrote: > > Hi Rob, > > On Wed, Mar 29, 2023 at 11:21 PM Rob Herring <robh@kernel.org> wrote: > > > > 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. > > > > Cc: Marc Zyngier <maz@kernel.org> > > Signed-off-by: Rob Herring <robh@kernel.org> > > --- > > include/linux/acpi.h | 4 +++- > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > diff --git a/include/linux/acpi.h b/include/linux/acpi.h > > index efff750f326d..169c17c0b0dc 100644 > > --- a/include/linux/acpi.h > > +++ b/include/linux/acpi.h > > @@ -10,12 +10,14 @@ > > > > #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/property.h> > > #include <linux/uuid.h> > > > > +struct irq_domain; > > +struct irq_domain_ops; > > + > > #ifndef _LINUX > > #define _LINUX > > #endif > > > > -- > > This causes build issues in linux-next, so I've dropped the series. I > will be happy to pick it up again when the build issues are addressed, > though. Is it just the one in pata_macio.c or are there others you are aware of? Rob
On Wed, Apr 5, 2023 at 6:48 PM Rob Herring <robh@kernel.org> wrote: > > On Wed, Apr 5, 2023 at 9:59 AM Rafael J. Wysocki <rafael@kernel.org> wrote: > > > > Hi Rob, > > > > On Wed, Mar 29, 2023 at 11:21 PM Rob Herring <robh@kernel.org> wrote: > > > > > > 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. > > > > > > Cc: Marc Zyngier <maz@kernel.org> > > > Signed-off-by: Rob Herring <robh@kernel.org> > > > --- > > > include/linux/acpi.h | 4 +++- > > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > > > diff --git a/include/linux/acpi.h b/include/linux/acpi.h > > > index efff750f326d..169c17c0b0dc 100644 > > > --- a/include/linux/acpi.h > > > +++ b/include/linux/acpi.h > > > @@ -10,12 +10,14 @@ > > > > > > #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/property.h> > > > #include <linux/uuid.h> > > > > > > +struct irq_domain; > > > +struct irq_domain_ops; > > > + > > > #ifndef _LINUX > > > #define _LINUX > > > #endif > > > > > > -- > > > > This causes build issues in linux-next, so I've dropped the series. I > > will be happy to pick it up again when the build issues are addressed, > > though. > > Is it just the one in pata_macio.c or are there others you are aware of? I'm aware of a few: https://lore.kernel.org/lkml/20230403201801.02839c9a@canb.auug.org.au/ https://lore.kernel.org/lkml/20230403112514.47ff91bb@canb.auug.org.au/ https://lore.kernel.org/lkml/20230403111605.7658ec62@canb.auug.org.au/ https://lore.kernel.org/lkml/20230403110650.6b13cb71@canb.auug.org.au/
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index efff750f326d..169c17c0b0dc 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -10,12 +10,14 @@ #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/property.h> #include <linux/uuid.h> +struct irq_domain; +struct irq_domain_ops; + #ifndef _LINUX #define _LINUX #endif