Skip to content

Commit

Permalink
[ARM] 4388/1: no need for arm/mm mmap range checks for non-mmu
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Ungerer authored and Russell King committed May 20, 2007
1 parent 1d28bff commit 95ba71f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/asm-arm/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 95ba71f

Please sign in to comment.