summaryrefslogtreecommitdiff
path: root/include/linux/mm.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@home.transmeta.com>2003-04-20 00:47:49 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2003-04-20 00:47:49 -0700
commit8f421acbbdc3daba1682bdf7b99083f4725ce5d3 (patch)
tree28d8e5910bd466ed487654d5e62269b8446a80bd /include/linux/mm.h
parent2d0ed1066cf5dd005c518be917649ca3f3b5c961 (diff)
parentb009a1c6a6c0273f60d96eca2561bc79da3b6614 (diff)
Merge home.transmeta.com:/home/torvalds/v2.5/akpm
into home.transmeta.com:/home/torvalds/v2.5/linux
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r--include/linux/mm.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index ede6c5ff4181..6aa89d73f65b 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -594,28 +594,10 @@ extern struct vm_area_struct *find_extend_vma(struct mm_struct *mm, unsigned lon
extern unsigned int nr_used_zone_pages(void);
-#ifdef CONFIG_MMU
extern struct page * vmalloc_to_page(void *addr);
extern struct page * follow_page(struct mm_struct *mm, unsigned long address,
int write);
extern int remap_page_range(struct vm_area_struct *vma, unsigned long from,
unsigned long to, unsigned long size, pgprot_t prot);
-#else
-static inline struct page * vmalloc_to_page(void *addr)
-{
- return NULL;
-}
-static inline struct page * follow_page(struct mm_struct *mm,
- unsigned long address, int write)
-{
- return NULL;
-}
-static inline int remap_page_range(struct vm_area_struct *vma,
- unsigned long from, unsigned long to,
- unsigned long size, pgprot_t prot)
-{
- return -EPERM;
-}
-#endif /* CONFIG_MMU */
#endif /* __KERNEL__ */
#endif /* _LINUX_MM_H */