lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <575dc28b-e406-4d1f-b493-aed1b086a696@linux.intel.com>
Date: Tue, 14 Jan 2025 16:31:18 -0800
From: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@...ux.intel.com>
To: Bjorn Helgaas <helgaas@...nel.org>, Rob Herring <robh@...nel.org>
Cc: "David S . Miller" <davem@...emloft.net>,
 Andreas Larsson <andreas@...sler.com>, sparclinux@...r.kernel.org,
 linux-kernel@...r.kernel.org, linux-pci@...r.kernel.org,
 Bjorn Helgaas <bhelgaas@...gle.com>
Subject: Re: [PATCH v2 1/4] PCI: Unexport of_pci_parse_bus_range()

Hi,

On 1/13/25 3:15 PM, Bjorn Helgaas wrote:
> From: Bjorn Helgaas <bhelgaas@...gle.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@...gle.com>
> Reviewed-by: Rob Herring (Arm) <robh@...nel.org>
> ---
Looks good

Reviewed-by: Kuppuswamy Sathyanarayanan 
<sathyanarayanan.kuppuswamy@...ux.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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ