Message ID | 20221031153954.1163623-1-helgaas@kernel.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2384253wru; Mon, 31 Oct 2022 08:43:02 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4zormnG+/A/yjDsnKHIHB864BAWwsU0VnOtRETqwzIN/jPWrSoeZFrkdRfM458MYzvMm+3 X-Received: by 2002:a17:906:7212:b0:7ad:bd4b:c41f with SMTP id m18-20020a170906721200b007adbd4bc41fmr9763486ejk.659.1667230981869; Mon, 31 Oct 2022 08:43:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667230981; cv=none; d=google.com; s=arc-20160816; b=GzEbT9vEHY3HHS3aoBxORN8dqVRC0E1i3PohdL0GSK1xD+Mc/KaHFYevqtzCgE7Of7 bjVyYGmEr7hsGm6Q85uu0BqwA8pJY4a19ksrkWOk7vODrrkiSAKDry1ewuy61FdElNXT ajPKv6Av21szD4B44Wq+qo4MgQ9KExIBZey1e6SRoaSSIqfFAp0vapsuFSIjr0oJ4xe9 HzIp0R/djed3RNdqOnikPpHA0l8vZXUxBnkcAWKtbAJwohwkdAaV4jtc0nuokJqeyYpL QxsJlz/RWYjYhfHaeMMhtNgw+W5PrllqUMBMLFvPw8lVz/yqWKs6BKe9zcCS2LbKdnRU jK3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=GSKpYm4qj+P/Z0ypL0bTG9iWzNcI8l9TUabVXJPerMg=; b=giQPLTMmPfS/9IX2hCDyObittsLOuKe0KXcPniGL0IEu+rsmhoAHXrTni+KpCR5UUz uZx0tonByLet+0GVXnK7FFt7mjYEPmrXZypyGiTyHQ3/IWyuMGK+iYV30pTAn+UdSBOI i3T9Rn2lrwlK0B+tlwPfPg/6k90CNVoLqfC2YQIPopBHhu0ndBC9c9BfoL051Hcr0/lx UZHmvwYOd+WSiHp+p+z2U1tateAKJJHWiZvEt/OGoXdKM972PKD9PvSNM7Q/UYWLLNNM fcTndtbdVXsrz/pW7nn388yDeNc5VzGIU4r0j6C88FpzVFJBQ7t7Dfe0I+fMYLglEE+L 6gBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="gBpe/EbW"; 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 l7-20020a50cbc7000000b004615b657cbcsi7164291edi.190.2022.10.31.08.42.37; Mon, 31 Oct 2022 08:43:01 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="gBpe/EbW"; 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 S231836AbiJaPkG (ORCPT <rfc822;kartikey406@gmail.com> + 99 others); Mon, 31 Oct 2022 11:40:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230175AbiJaPkB (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 31 Oct 2022 11:40:01 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F947647C; Mon, 31 Oct 2022 08:40:01 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BFC4E612BB; Mon, 31 Oct 2022 15:40:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D9E88C433D6; Mon, 31 Oct 2022 15:39:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667230800; bh=TRH6TIzTeBtUUYfj015oHC/R+NopKv1SaiciTdGHOko=; h=From:To:Cc:Subject:Date:From; b=gBpe/EbWifFcqhZ5BfRCBjri8ndaXtmIESwYRZe0ZJ/9QH9yy43OtvvIPJ84QuRsJ qVblgIXNCeupWoDgfDRLD4sck8pombdDoeizoKGqhqlscyYPs1rJkUfCQG4MdNPZIQ yAf5JPUuETdzsUBeVKU79ABam7BGmVbLXj20/7GmPUPjZ/M2IfEUXZFATexoA4Smaq CQ6K94+0hZWszeCNqHZU7WW8Qj4zVQNZz5DTKAD5rA4KIiJuVJyWaBIznzyfE86ljD FuiFCdMTQRTBI7IxLbavbOxp3k0//rn3wkSegSXlN51xFdxjfPPHNjAIQ6Aj0KX1EF k/xrwa/o+K15A== From: Bjorn Helgaas <helgaas@kernel.org> To: Lorenzo Pieralisi <lpieralisi@kernel.org> Cc: Kishon Vijay Abraham I <kishon@kernel.org>, Tom Joseph <tjoseph@cadence.com>, Rob Herring <robh@kernel.org>, =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= <kw@linux.com>, Minghuan Lian <minghuan.Lian@nxp.com>, Mingkai Hu <mingkai.hu@nxp.com>, Roy Zang <roy.zang@nxp.com>, Thomas Petazzoni <thomas.petazzoni@bootlin.com>, Thierry Reding <thierry.reding@gmail.com>, Jonathan Hunter <jonathanh@nvidia.com>, Linus Walleij <linus.walleij@linaro.org>, Toan Le <toan@os.amperecomputing.com>, Joyce Ooi <joyce.ooi@intel.com>, Ray Jui <rjui@broadcom.com>, Scott Branden <sbranden@broadcom.com>, Conor Dooley <conor.dooley@microchip.com>, Daire McNamara <daire.mcnamara@microchip.com>, Shawn Lin <shawn.lin@rock-chips.com>, Heiko Stuebner <heiko@sntech.de>, Bharat Kumar Gogada <bharat.kumar.gogada@amd.com>, Michal Simek <michal.simek@amd.com>, bcm-kernel-feedback-list@broadcom.com, linux-omap@vger.kernel.org, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-tegra@vger.kernel.org, linux-riscv@lists.infradead.org, linux-rockchip@lists.infradead.org, Bjorn Helgaas <bhelgaas@google.com> Subject: [PATCH v3 0/5] PCI: Remove unnecessary <linux/of_irq.h> includes Date: Mon, 31 Oct 2022 10:39:49 -0500 Message-Id: <20221031153954.1163623-1-helgaas@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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?1748218394197273645?= X-GMAIL-MSGID: =?utf-8?q?1748218394197273645?= |
Series |
PCI: Remove unnecessary <linux/of_irq.h> includes
|
|
Message
Bjorn Helgaas
Oct. 31, 2022, 3:39 p.m. UTC
From: Bjorn Helgaas <bhelgaas@google.com>
Many host controller drivers #include <linux/of_irq.h> even though they
don't need it. Remove the unnecessary #includes.
v2: https://lore.kernel.org/r/20221025185147.665365-1-helgaas@kernel.org/
v1: https://lore.kernel.org/r/20221019195452.37606-1-helgaas@kernel.org/
Changes from v2 to v3:
- Include <linux/irqdomain.h> explicitly in xgene-msi, which doesn't need
<linux/of_irq.h> itself, but relied on it to include
<linux/irqdomain.h>. On x86, this was covered up by the fact that
<linux/msi.h> includes <asm/msi.h>, which includes <asm/irqdomain.h>,
which includes <linux/irqdomain.h>. But on parisc, <asm/msi.h> is
actually asm-generic/msi.h, which does *not* include
<linux/irqdomain.h>
- Pick up tags from Conor Dooley and Thomas Petazzoni
Changes from v1 to v2:
- Include <linux/irqdomain.h> explicitly in altera-msi and microchip,
which don't need <linux/of_irq.h> itself, but relied on it to include
<linux/irqdomain.h>
- Include <linux/irqdomain.h> explicitly in mvebu, which needs both it
and <linux/of_irq.h>
Bjorn Helgaas (5):
PCI: altera-msi: Include <linux/irqdomain.h> explicitly
PCI: microchip: Include <linux/irqdomain.h> explicitly
PCI: mvebu: Include <linux/irqdomain.h> explicitly
PCI: xgene-msi: Include <linux/irqdomain.h> explicitly
PCI: Remove unnecessary <linux/of_irq.h> includes
drivers/pci/controller/cadence/pci-j721e.c | 1 -
drivers/pci/controller/dwc/pci-layerscape.c | 1 -
drivers/pci/controller/dwc/pcie-armada8k.c | 1 -
drivers/pci/controller/dwc/pcie-tegra194.c | 1 -
drivers/pci/controller/pci-mvebu.c | 1 +
drivers/pci/controller/pci-v3-semi.c | 1 -
drivers/pci/controller/pci-xgene-msi.c | 2 +-
drivers/pci/controller/pci-xgene.c | 1 -
drivers/pci/controller/pcie-altera-msi.c | 2 +-
drivers/pci/controller/pcie-iproc-platform.c | 1 -
drivers/pci/controller/pcie-iproc.c | 1 -
drivers/pci/controller/pcie-microchip-host.c | 2 +-
drivers/pci/controller/pcie-rockchip-host.c | 1 -
drivers/pci/controller/pcie-xilinx-cpm.c | 1 -
drivers/pci/controller/pcie-xilinx-nwl.c | 1 -
15 files changed, 4 insertions(+), 14 deletions(-)
Comments
On Mon, Oct 31, 2022 at 10:39:49AM -0500, Bjorn Helgaas wrote: > From: Bjorn Helgaas <bhelgaas@google.com> > > Many host controller drivers #include <linux/of_irq.h> even though they > don't need it. Remove the unnecessary #includes. > > v2: https://lore.kernel.org/r/20221025185147.665365-1-helgaas@kernel.org/ > v1: https://lore.kernel.org/r/20221019195452.37606-1-helgaas@kernel.org/ > > Changes from v2 to v3: > - Include <linux/irqdomain.h> explicitly in xgene-msi, which doesn't need > <linux/of_irq.h> itself, but relied on it to include > <linux/irqdomain.h>. On x86, this was covered up by the fact that > <linux/msi.h> includes <asm/msi.h>, which includes <asm/irqdomain.h>, > which includes <linux/irqdomain.h>. But on parisc, <asm/msi.h> is > actually asm-generic/msi.h, which does *not* include > <linux/irqdomain.h> > - Pick up tags from Conor Dooley and Thomas Petazzoni > > Changes from v1 to v2: > - Include <linux/irqdomain.h> explicitly in altera-msi and microchip, > which don't need <linux/of_irq.h> itself, but relied on it to include > <linux/irqdomain.h> > - Include <linux/irqdomain.h> explicitly in mvebu, which needs both it > and <linux/of_irq.h> > > Bjorn Helgaas (5): > PCI: altera-msi: Include <linux/irqdomain.h> explicitly > PCI: microchip: Include <linux/irqdomain.h> explicitly > PCI: mvebu: Include <linux/irqdomain.h> explicitly > PCI: xgene-msi: Include <linux/irqdomain.h> explicitly > PCI: Remove unnecessary <linux/of_irq.h> includes > > drivers/pci/controller/cadence/pci-j721e.c | 1 - > drivers/pci/controller/dwc/pci-layerscape.c | 1 - > drivers/pci/controller/dwc/pcie-armada8k.c | 1 - > drivers/pci/controller/dwc/pcie-tegra194.c | 1 - > drivers/pci/controller/pci-mvebu.c | 1 + > drivers/pci/controller/pci-v3-semi.c | 1 - > drivers/pci/controller/pci-xgene-msi.c | 2 +- > drivers/pci/controller/pci-xgene.c | 1 - > drivers/pci/controller/pcie-altera-msi.c | 2 +- > drivers/pci/controller/pcie-iproc-platform.c | 1 - > drivers/pci/controller/pcie-iproc.c | 1 - > drivers/pci/controller/pcie-microchip-host.c | 2 +- > drivers/pci/controller/pcie-rockchip-host.c | 1 - > drivers/pci/controller/pcie-xilinx-cpm.c | 1 - > drivers/pci/controller/pcie-xilinx-nwl.c | 1 - > 15 files changed, 4 insertions(+), 14 deletions(-) I put these on a pci/kbuild branch that I propose to merge in after everything else. Lorenzo, let me know if you prefer another approach. Bjorn
On Mon, Oct 31, 2022 at 10:40 AM Bjorn Helgaas <helgaas@kernel.org> wrote: > > From: Bjorn Helgaas <bhelgaas@google.com> > > Many host controller drivers #include <linux/of_irq.h> even though they > don't need it. Remove the unnecessary #includes. Note that the same is often true of the other of_*.h headers. of_device.h and of_platform.h are tricky though as one includes the other (with a decade old comment to fix). I started down that rabbit hole once... Rob