uml: stop using libc asm/page.h
authorJeff Dike <jdike@addtoit.com>
Tue, 16 Oct 2007 08:26:44 +0000 (01:26 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 16 Oct 2007 16:43:04 +0000 (09:43 -0700)
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>
arch/um/include/common-offsets.h
arch/um/include/sysdep-i386/stub.h
arch/um/os-Linux/main.c
arch/um/os-Linux/skas/mem.c
arch/um/os-Linux/start_up.c
arch/um/os-Linux/tt.c

index 6eee343e53eb1d446b29f59b4badce413fbc9956..2378ff42e41c62bb4aa5d919f9a2daeb2ed9406e 100644 (file)
@@ -10,6 +10,7 @@ OFFSET(HOST_TASK_PID, task_struct, pid);
 
 DEFINE(UM_KERN_PAGE_SIZE, PAGE_SIZE);
 DEFINE(UM_KERN_PAGE_MASK, PAGE_MASK);
+DEFINE(UM_KERN_PAGE_SHIFT, PAGE_SHIFT);
 DEFINE(UM_NSEC_PER_SEC, NSEC_PER_SEC);
 
 DEFINE_STR(UM_KERN_EMERG, KERN_EMERG);
index 4fffae75ba531d1083f2f0c41b4a27ec3b40bd38..19c85f330fc1602af09cb6ca9f19953bc6a0ba32 100644 (file)
@@ -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)
 {
index e85f4995a011a16a226f0963941b2bbf0355dea0..919c25be254aaa82636c019fd25e1c2a91c56b21 100644 (file)
@@ -12,7 +12,6 @@
 #include <sys/resource.h>
 #include <sys/mman.h>
 #include <sys/user.h>
-#include <asm/page.h>
 #include "kern_util.h"
 #include "as-layout.h"
 #include "mem_user.h"
index 0f7df4eb903fb79cfcacf3c65322f3f34663dc3f..9fbf210ebfb00bbd6f47e18bfaecc2f67da07d4c 100644 (file)
@@ -9,7 +9,6 @@
 #include <unistd.h>
 #include <sys/mman.h>
 #include <sys/wait.h>
-#include <asm/page.h>
 #include <asm/unistd.h>
 #include "mem_user.h"
 #include "mem.h"
index 46f613975c199ebc2a323b14c399074190c9cd3f..f4f2981f74b9225c35d2f91ecfd649461b08e278 100644 (file)
@@ -19,7 +19,6 @@
 #include <sys/mman.h>
 #include <sys/resource.h>
 #include <asm/unistd.h>
-#include <asm/page.h>
 #include <sys/types.h>
 #include "kern_util.h"
 #include "user.h"
index bcf9359c4e9f4cf87f89bfbea66d62768d70beda..5dc113d3296f46cc4f72134b7a1445139f17f2b3 100644 (file)
@@ -17,7 +17,6 @@
 #include <sys/mman.h>
 #include <asm/ptrace.h>
 #include <asm/unistd.h>
-#include <asm/page.h>
 #include "kern_util.h"
 #include "user.h"
 #include "signal_kern.h"