[PATCH] powerpc/fsl-pci: fix warning when CONFIG_SWIOTLB is disabled

Subsystems: linux for powerpc (32-bit and 64-bit), the rest

STALE5070d

3 messages, 3 authors, 2012-09-19 · open the first message on its own page

[PATCH] powerpc/fsl-pci: fix warning when CONFIG_SWIOTLB is disabled

From: Jia Hongtao <hidden>
Date: 2012-09-18 10:32:24

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 <redacted>
---
 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

Re: [PATCH] powerpc/fsl-pci: fix warning when CONFIG_SWIOTLB is disabled

From: Michael Neuling <hidden>
Date: 2012-09-18 21:06:39

Jia Hongtao [off-list ref] 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 <redacted>
Acked-by: Michael Neuling <redacted>
quoted hunk
---
 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

Re: [PATCH] powerpc/fsl-pci: fix warning when CONFIG_SWIOTLB is disabled

From: Kumar Gala <hidden>
Date: 2012-09-19 14:52:21

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 <redacted>
---
arch/powerpc/sysdev/fsl_pci.c |    2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
applied to next

- k
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help