[ARM] 3734/1: Fix the unused variable warning in __iounmap()
authorCatalin Marinas <catalin.marinas@arm.com>
Sat, 29 Jul 2006 07:29:30 +0000 (08:29 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 29 Jul 2006 07:29:30 +0000 (08:29 +0100)
Patch from Catalin Marinas

This patch adds #ifdef around some variables in the arch/arm/mm/ioremap.c
file.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/ioremap.c

index dba7ddd..88a999d 100644 (file)
@@ -363,7 +363,9 @@ EXPORT_SYMBOL(__ioremap);
 
 void __iounmap(void __iomem *addr)
 {
+#ifndef CONFIG_SMP
        struct vm_struct **p, *tmp;
+#endif
        unsigned int section_mapping = 0;
 
        addr = (void __iomem *)(PAGE_MASK & (unsigned long)addr);