summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Ungerer2007-05-17 07:22:41 +0200
committerRussell King2007-05-20 20:36:14 +0200
commit95ba71f76f1cce550cb2e2b345a204d4a926d29c (patch)
tree8de0506f7f4098f62ebc4c1b6739523ca7f31b8f
parent[ARM] 4387/1: fix /proc/cpuinfo formatting for pre-ARM7 parts (diff)
downloadkernel-qcow2-linux-95ba71f76f1cce550cb2e2b345a204d4a926d29c.tar.gz
kernel-qcow2-linux-95ba71f76f1cce550cb2e2b345a204d4a926d29c.tar.xz
kernel-qcow2-linux-95ba71f76f1cce550cb2e2b345a204d4a926d29c.zip
[ARM] 4388/1: no need for arm/mm mmap range checks for non-mmu
We don't need valid_phys_addr_range() or valid_mmap_phys_addr_range() for the !CONFIG_MMU case. Signed-off-by: Greg Ungerer <gerg@uclinux.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r--include/asm-arm/io.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-arm/io.h b/include/asm-arm/io.h
index 8261ff9e7955..1d3caa42a386 100644
--- a/include/asm-arm/io.h
+++ b/include/asm-arm/io.h
@@ -259,9 +259,11 @@ extern void pci_iounmap(struct pci_dev *dev, void __iomem *addr);
#define BIOVEC_MERGEABLE(vec1, vec2) \
((bvec_to_phys((vec1)) + (vec1)->bv_len) == bvec_to_phys((vec2)))
+#ifdef CONFIG_MMU
#define ARCH_HAS_VALID_PHYS_ADDR_RANGE
extern int valid_phys_addr_range(unsigned long addr, size_t size);
extern int valid_mmap_phys_addr_range(unsigned long pfn, size_t size);
+#endif
/*
* Convert a physical pointer to a virtual kernel pointer for /dev/mem