diff mbox

PCI: rcar: make local symbol static

Message ID 000201cfee66$b319ef90$194dceb0$%han@samsung.com (mailing list archive)
State New, archived
Delegated to: Bjorn Helgaas
Headers show

Commit Message

Jingoo Han Oct. 23, 2014, 2:11 a.m. UTC
Make local symbol static, because this is used only in this file.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/pci/host/pcie-rcar.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Simon Horman Oct. 29, 2014, 1:55 a.m. UTC | #1
On Thu, Oct 23, 2014 at 11:11:47AM +0900, Jingoo Han wrote:
> Make local symbol static, because this is used only in this file.
> 
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>


Acked-by: Simon Horman <horms+renesas@verge.net.au>

> ---
>  drivers/pci/host/pcie-rcar.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/pci/host/pcie-rcar.c b/drivers/pci/host/pcie-rcar.c
> index 61158e0..0df9b29 100644
> --- a/drivers/pci/host/pcie-rcar.c
> +++ b/drivers/pci/host/pcie-rcar.c
> @@ -389,7 +389,7 @@ static void rcar_pcie_add_bus(struct pci_bus *bus)
>  	}
>  }
>  
> -struct hw_pci rcar_pci = {
> +static struct hw_pci rcar_pci = {
>  	.setup          = rcar_pcie_setup,
>  	.map_irq        = of_irq_parse_and_map_pci,
>  	.ops            = &rcar_pcie_ops,
> -- 
> 1.7.9.5
> 
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Bjorn Helgaas Oct. 29, 2014, 4:09 p.m. UTC | #2
On Thu, Oct 23, 2014 at 11:11:47AM +0900, Jingoo Han wrote:
> Make local symbol static, because this is used only in this file.
> 
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>

Applied to pci/host-rcar for v3.19 with Simon's ack, thanks!

> ---
>  drivers/pci/host/pcie-rcar.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/pci/host/pcie-rcar.c b/drivers/pci/host/pcie-rcar.c
> index 61158e0..0df9b29 100644
> --- a/drivers/pci/host/pcie-rcar.c
> +++ b/drivers/pci/host/pcie-rcar.c
> @@ -389,7 +389,7 @@ static void rcar_pcie_add_bus(struct pci_bus *bus)
>  	}
>  }
>  
> -struct hw_pci rcar_pci = {
> +static struct hw_pci rcar_pci = {
>  	.setup          = rcar_pcie_setup,
>  	.map_irq        = of_irq_parse_and_map_pci,
>  	.ops            = &rcar_pcie_ops,
> -- 
> 1.7.9.5
> 
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/pci/host/pcie-rcar.c b/drivers/pci/host/pcie-rcar.c
index 61158e0..0df9b29 100644
--- a/drivers/pci/host/pcie-rcar.c
+++ b/drivers/pci/host/pcie-rcar.c
@@ -389,7 +389,7 @@  static void rcar_pcie_add_bus(struct pci_bus *bus)
 	}
 }
 
-struct hw_pci rcar_pci = {
+static struct hw_pci rcar_pci = {
 	.setup          = rcar_pcie_setup,
 	.map_irq        = of_irq_parse_and_map_pci,
 	.ops            = &rcar_pcie_ops,