From: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@linux.intel.com>
To: Bjorn Helgaas <helgaas@kernel.org>, Rob Herring <robh@kernel.org>
Cc: "David S . Miller" <davem@davemloft.net>,
Andreas Larsson <andreas@gaisler.com>,
sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-pci@vger.kernel.org, Bjorn Helgaas <bhelgaas@google.com>
Subject: Re: [PATCH v2 1/4] PCI: Unexport of_pci_parse_bus_range()
Date: Tue, 14 Jan 2025 16:31:18 -0800 [thread overview]
Message-ID: <575dc28b-e406-4d1f-b493-aed1b086a696@linux.intel.com> (raw)
In-Reply-To: <20250113231557.441289-2-helgaas@kernel.org>
Hi,
On 1/13/25 3:15 PM, Bjorn Helgaas wrote:
> From: Bjorn Helgaas <bhelgaas@google.com>
>
> of_pci_parse_bus_range() is only used in drivers/pci/of.c, so make it
> static and unexport it.
>
> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
> Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
> ---
Looks good
Reviewed-by: Kuppuswamy Sathyanarayanan
<sathyanarayanan.kuppuswamy@linux.intel.com>
> drivers/pci/of.c | 4 ++--
> drivers/pci/pci.h | 7 -------
> 2 files changed, 2 insertions(+), 9 deletions(-)
>
> diff --git a/drivers/pci/of.c b/drivers/pci/of.c
> index 52f770bcc481..2f579b691f8e 100644
> --- a/drivers/pci/of.c
> +++ b/drivers/pci/of.c
> @@ -190,7 +190,8 @@ EXPORT_SYMBOL_GPL(of_pci_get_devfn);
> *
> * Returns 0 on success or a negative error-code on failure.
> */
> -int of_pci_parse_bus_range(struct device_node *node, struct resource *res)
> +static int of_pci_parse_bus_range(struct device_node *node,
> + struct resource *res)
> {
> u32 bus_range[2];
> int error;
> @@ -207,7 +208,6 @@ int of_pci_parse_bus_range(struct device_node *node, struct resource *res)
>
> return 0;
> }
> -EXPORT_SYMBOL_GPL(of_pci_parse_bus_range);
>
> /**
> * of_get_pci_domain_nr - Find the host bridge domain number
> diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h
> index 2e40fc63ba31..35faf4770a14 100644
> --- a/drivers/pci/pci.h
> +++ b/drivers/pci/pci.h
> @@ -797,7 +797,6 @@ static inline u64 pci_rebar_size_to_bytes(int size)
> struct device_node;
>
> #ifdef CONFIG_OF
> -int of_pci_parse_bus_range(struct device_node *node, struct resource *res);
> int of_get_pci_domain_nr(struct device_node *node);
> int of_pci_get_max_link_speed(struct device_node *node);
> u32 of_pci_get_slot_power_limit(struct device_node *node,
> @@ -813,12 +812,6 @@ int devm_of_pci_bridge_init(struct device *dev, struct pci_host_bridge *bridge);
> bool of_pci_supply_present(struct device_node *np);
>
> #else
> -static inline int
> -of_pci_parse_bus_range(struct device_node *node, struct resource *res)
> -{
> - return -EINVAL;
> -}
> -
> static inline int
> of_get_pci_domain_nr(struct device_node *node)
> {
--
Sathyanarayanan Kuppuswamy
Linux Kernel Developer
next prev parent reply other threads:[~2025-01-15 0:31 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-13 23:15 [PATCH v2 0/4] PCI: Simplify bus range parsing Bjorn Helgaas
2025-01-13 23:15 ` [PATCH v2 1/4] PCI: Unexport of_pci_parse_bus_range() Bjorn Helgaas
2025-01-15 0:31 ` Sathyanarayanan Kuppuswamy [this message]
2025-01-13 23:15 ` [PATCH v2 2/4] PCI: of: Drop 'No bus range found' message Bjorn Helgaas
2025-01-15 0:31 ` Sathyanarayanan Kuppuswamy
2025-01-13 23:15 ` [PATCH v2 3/4] PCI: of: Simplify devm_of_pci_get_host_bridge_resources() interface Bjorn Helgaas
2025-01-15 0:21 ` Sathyanarayanan Kuppuswamy
2025-01-15 21:28 ` Bjorn Helgaas
2025-01-13 23:15 ` [PATCH v2 4/4] sparc/PCI: Update reference to devm_of_pci_get_host_bridge_resources() Bjorn Helgaas
2025-01-15 0:34 ` Sathyanarayanan Kuppuswamy
2025-01-15 21:29 ` [PATCH v2 0/4] PCI: Simplify bus range parsing Bjorn Helgaas
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=575dc28b-e406-4d1f-b493-aed1b086a696@linux.intel.com \
--to=sathyanarayanan.kuppuswamy@linux.intel.com \
--cc=andreas@gaisler.com \
--cc=bhelgaas@google.com \
--cc=davem@davemloft.net \
--cc=helgaas@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sparclinux@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).