summaryrefslogtreecommitdiff
path: root/arch/um/include/sysdep-i386/stub.h
diff options
context:
space:
mode:
authorJeff Dike <jdike@addtoit.com>2007-10-16 01:26:44 -0700
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-16 09:43:04 -0700
commit71f926f2ea61994470a53c9e11d3ef993197cada (patch)
tree731d5ce6d0be171f693a1c0960f752a5b8e708fc /arch/um/include/sysdep-i386/stub.h
parent2f8a2dc2cf8012179e35c1f01a1eef45de18f1a7 (diff)
downloadlwn-71f926f2ea61994470a53c9e11d3ef993197cada.tar.gz
lwn-71f926f2ea61994470a53c9e11d3ef993197cada.zip
uml: stop using libc asm/page.h
Remove includes of asm/page.h from libc code. This header seems to be disappearing, and UML doesn't make much use of it anyway. The one use, PAGE_SHIFT in stub.h, is handled by copying the constant from the kernel side of the house in common_offsets.h. Signed-off-by: Jeff Dike <jdike@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/include/sysdep-i386/stub.h')
-rw-r--r--arch/um/include/sysdep-i386/stub.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/um/include/sysdep-i386/stub.h b/arch/um/include/sysdep-i386/stub.h
index 4fffae75ba53..19c85f330fc1 100644
--- a/arch/um/include/sysdep-i386/stub.h
+++ b/arch/um/include/sysdep-i386/stub.h
@@ -9,7 +9,6 @@
#include <sys/mman.h>
#include <asm/ptrace.h>
#include <asm/unistd.h>
-#include <asm/page.h>
#include "stub-data.h"
#include "kern_constants.h"
#include "uml-config.h"
@@ -19,7 +18,7 @@ extern void stub_clone_handler(void);
#define STUB_SYSCALL_RET EAX
#define STUB_MMAP_NR __NR_mmap2
-#define MMAP_OFFSET(o) ((o) >> PAGE_SHIFT)
+#define MMAP_OFFSET(o) ((o) >> UM_KERN_PAGE_SHIFT)
static inline long stub_syscall0(long syscall)
{