summaryrefslogtreecommitdiffstats
path: root/include/asm-cris/page.h
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2006-09-21 09:33:55 +0100
committerDavid Woodhouse <dwmw2@infradead.org>2006-09-21 09:33:55 +0100
commited9526b0d342a1c08a19f880c3f0c1d0fec4e8db (patch)
treea09b43d06d123bbf8763eb91a5c2c46632d8e27f /include/asm-cris/page.h
parent2a1b181eff32f497f285fcfc1e771ec469205908 (diff)
Clean up exported headers on CRIS
This fixes most of the issues with exported headers on CRIS, although we do still need to deal with the asm/arch symlink. Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'include/asm-cris/page.h')
-rw-r--r--include/asm-cris/page.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/asm-cris/page.h b/include/asm-cris/page.h
index 81832e9e157..9f13c32552b 100644
--- a/include/asm-cris/page.h
+++ b/include/asm-cris/page.h
@@ -1,6 +1,8 @@
#ifndef _CRIS_PAGE_H
#define _CRIS_PAGE_H
+#ifdef __KERNEL__
+
#include <asm/arch/page.h>
/* PAGE_SHIFT determines the page size */
@@ -12,8 +14,6 @@
#endif
#define PAGE_MASK (~(PAGE_SIZE-1))
-#ifdef __KERNEL__
-
#define clear_page(page) memset((void *)(page), 0, PAGE_SIZE)
#define copy_page(to,from) memcpy((void *)(to), (void *)(from), PAGE_SIZE)
@@ -73,10 +73,10 @@ typedef struct { unsigned long pgprot; } pgprot_t;
#define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \
VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
-#endif /* __KERNEL__ */
-
#include <asm-generic/memory_model.h>
#include <asm-generic/page.h>
+#endif /* __KERNEL__ */
+
#endif /* _CRIS_PAGE_H */