linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc/fsl-pci: fix warning when CONFIG_SWIOTLB is disabled
@ 2012-09-18  9:57 Jia Hongtao
  2012-09-18 21:06 ` Michael Neuling
  2012-09-19 14:51 ` Kumar Gala
  0 siblings, 2 replies; 3+ messages in thread
From: Jia Hongtao @ 2012-09-18  9:57 UTC (permalink / raw)
  To: linuxppc-dev, galak; +Cc: mikey, b38951

Fix the following warning:
arch/powerpc/sysdev/fsl_pci.c: In function 'fsl_pci_probe':
arch/powerpc/sysdev/fsl_pci.c:867:25: error: unused variable 'hose'

Signed-off-by: Jia Hongtao <B38951@freescale.com>
---
 arch/powerpc/sysdev/fsl_pci.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/sysdev/fsl_pci.c b/arch/powerpc/sysdev/fsl_pci.c
index 2ff3576..3d6f4d8 100644
--- a/arch/powerpc/sysdev/fsl_pci.c
+++ b/arch/powerpc/sysdev/fsl_pci.c
@@ -864,7 +864,9 @@ static int __devinit fsl_pci_probe(struct platform_device *pdev)
 {
 	int ret;
 	struct device_node *node;
+#ifdef CONFIG_SWIOTLB
 	struct pci_controller *hose;
+#endif
 
 	node = pdev->dev.of_node;
 	ret = fsl_add_bridge(node, fsl_pci_primary == node);
-- 
1.7.5.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] powerpc/fsl-pci: fix warning when CONFIG_SWIOTLB is disabled
  2012-09-18  9:57 [PATCH] powerpc/fsl-pci: fix warning when CONFIG_SWIOTLB is disabled Jia Hongtao
@ 2012-09-18 21:06 ` Michael Neuling
  2012-09-19 14:51 ` Kumar Gala
  1 sibling, 0 replies; 3+ messages in thread
From: Michael Neuling @ 2012-09-18 21:06 UTC (permalink / raw)
  To: Jia Hongtao; +Cc: linuxppc-dev

Jia Hongtao <B38951@freescale.com> wrote:

> Fix the following warning:
> arch/powerpc/sysdev/fsl_pci.c: In function 'fsl_pci_probe':
> arch/powerpc/sysdev/fsl_pci.c:867:25: error: unused variable 'hose'
> 
> Signed-off-by: Jia Hongtao <B38951@freescale.com>

Acked-by: Michael Neuling <mikey@neuling.org>

> ---
>  arch/powerpc/sysdev/fsl_pci.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/powerpc/sysdev/fsl_pci.c b/arch/powerpc/sysdev/fsl_pci.c
> index 2ff3576..3d6f4d8 100644
> --- a/arch/powerpc/sysdev/fsl_pci.c
> +++ b/arch/powerpc/sysdev/fsl_pci.c
> @@ -864,7 +864,9 @@ static int __devinit fsl_pci_probe(struct platform_device *pdev)
>  {
>  	int ret;
>  	struct device_node *node;
> +#ifdef CONFIG_SWIOTLB
>  	struct pci_controller *hose;
> +#endif
>  
>  	node = pdev->dev.of_node;
>  	ret = fsl_add_bridge(node, fsl_pci_primary == node);
> -- 
> 1.7.5.1
> 
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] powerpc/fsl-pci: fix warning when CONFIG_SWIOTLB is disabled
  2012-09-18  9:57 [PATCH] powerpc/fsl-pci: fix warning when CONFIG_SWIOTLB is disabled Jia Hongtao
  2012-09-18 21:06 ` Michael Neuling
@ 2012-09-19 14:51 ` Kumar Gala
  1 sibling, 0 replies; 3+ messages in thread
From: Kumar Gala @ 2012-09-19 14:51 UTC (permalink / raw)
  To: Jia Hongtao; +Cc: mikey, linuxppc-dev


On Sep 18, 2012, at 4:57 AM, Jia Hongtao wrote:

> Fix the following warning:
> arch/powerpc/sysdev/fsl_pci.c: In function 'fsl_pci_probe':
> arch/powerpc/sysdev/fsl_pci.c:867:25: error: unused variable 'hose'
> 
> Signed-off-by: Jia Hongtao <B38951@freescale.com>
> ---
> arch/powerpc/sysdev/fsl_pci.c |    2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)

applied to next

- k

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-09-19 14:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-18  9:57 [PATCH] powerpc/fsl-pci: fix warning when CONFIG_SWIOTLB is disabled Jia Hongtao
2012-09-18 21:06 ` Michael Neuling
2012-09-19 14:51 ` Kumar Gala

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).