]> err.no Git - linux-2.6/commitdiff
[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 dba7dddfe57d365a53959c74b84a7e136781c775..88a999df0ab3f59ddaf8fe6da4f942fca750895d 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);