aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um
diff options
context:
space:
mode:
authorJeff Dike <jdike@addtoit.com>2007-10-16 04:26:44 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-16 12:43:04 -0400
commit71f926f2ea61994470a53c9e11d3ef993197cada (patch)
tree731d5ce6d0be171f693a1c0960f752a5b8e708fc /arch/um
parent2f8a2dc2cf8012179e35c1f01a1eef45de18f1a7 (diff)
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')
-rw-r--r--arch/um/include/common-offsets.h1
-rw-r--r--arch/um/include/sysdep-i386/stub.h3
-rw-r--r--arch/um/os-Linux/main.c1
-rw-r--r--arch/um/os-Linux/skas/mem.c1
-rw-r--r--arch/um/os-Linux/start_up.c1
-rw-r--r--arch/um/os-Linux/tt.c1
6 files changed, 2 insertions, 6 deletions
diff --git a/arch/um/include/common-offsets.h b/arch/um/include/common-offsets.h
index 6eee343e53eb..2378ff42e41c 100644
--- a/arch/um/include/common-offsets.h
+++ b/arch/um/include/common-offsets.h
@@ -10,6 +10,7 @@ OFFSET(HOST_TASK_PID, task_struct, pid);
10 10
11DEFINE(UM_KERN_PAGE_SIZE, PAGE_SIZE); 11DEFINE(UM_KERN_PAGE_SIZE, PAGE_SIZE);
12DEFINE(UM_KERN_PAGE_MASK, PAGE_MASK); 12DEFINE(UM_KERN_PAGE_MASK, PAGE_MASK);
13DEFINE(UM_KERN_PAGE_SHIFT, PAGE_SHIFT);
13DEFINE(UM_NSEC_PER_SEC, NSEC_PER_SEC); 14DEFINE(UM_NSEC_PER_SEC, NSEC_PER_SEC);
14 15
15DEFINE_STR(UM_KERN_EMERG, KERN_EMERG); 16DEFINE_STR(UM_KERN_EMERG, KERN_EMERG);
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 @@
9#include <sys/mman.h> 9#include <sys/mman.h>
10#include <asm/ptrace.h> 10#include <asm/ptrace.h>
11#include <asm/unistd.h> 11#include <asm/unistd.h>
12#include <asm/page.h>
13#include "stub-data.h" 12#include "stub-data.h"
14#include "kern_constants.h" 13#include "kern_constants.h"
15#include "uml-config.h" 14#include "uml-config.h"
@@ -19,7 +18,7 @@ extern void stub_clone_handler(void);
19 18
20#define STUB_SYSCALL_RET EAX 19#define STUB_SYSCALL_RET EAX
21#define STUB_MMAP_NR __NR_mmap2 20#define STUB_MMAP_NR __NR_mmap2
22#define MMAP_OFFSET(o) ((o) >> PAGE_SHIFT) 21#define MMAP_OFFSET(o) ((o) >> UM_KERN_PAGE_SHIFT)
23 22
24static inline long stub_syscall0(long syscall) 23static inline long stub_syscall0(long syscall)
25{ 24{
diff --git a/arch/um/os-Linux/main.c b/arch/um/os-Linux/main.c
index e85f4995a011..919c25be254a 100644
--- a/arch/um/os-Linux/main.c
+++ b/arch/um/os-Linux/main.c
@@ -12,7 +12,6 @@
12#include <sys/resource.h> 12#include <sys/resource.h>
13#include <sys/mman.h> 13#include <sys/mman.h>
14#include <sys/user.h> 14#include <sys/user.h>
15#include <asm/page.h>
16#include "kern_util.h" 15#include "kern_util.h"
17#include "as-layout.h" 16#include "as-layout.h"
18#include "mem_user.h" 17#include "mem_user.h"
diff --git a/arch/um/os-Linux/skas/mem.c b/arch/um/os-Linux/skas/mem.c
index 0f7df4eb903f..9fbf210ebfb0 100644
--- a/arch/um/os-Linux/skas/mem.c
+++ b/arch/um/os-Linux/skas/mem.c
@@ -9,7 +9,6 @@
9#include <unistd.h> 9#include <unistd.h>
10#include <sys/mman.h> 10#include <sys/mman.h>
11#include <sys/wait.h> 11#include <sys/wait.h>
12#include <asm/page.h>
13#include <asm/unistd.h> 12#include <asm/unistd.h>
14#include "mem_user.h" 13#include "mem_user.h"
15#include "mem.h" 14#include "mem.h"
diff --git a/arch/um/os-Linux/start_up.c b/arch/um/os-Linux/start_up.c
index 46f613975c19..f4f2981f74b9 100644
--- a/arch/um/os-Linux/start_up.c
+++ b/arch/um/os-Linux/start_up.c
@@ -19,7 +19,6 @@
19#include <sys/mman.h> 19#include <sys/mman.h>
20#include <sys/resource.h> 20#include <sys/resource.h>
21#include <asm/unistd.h> 21#include <asm/unistd.h>
22#include <asm/page.h>
23#include <sys/types.h> 22#include <sys/types.h>
24#include "kern_util.h" 23#include "kern_util.h"
25#include "user.h" 24#include "user.h"
diff --git a/arch/um/os-Linux/tt.c b/arch/um/os-Linux/tt.c
index bcf9359c4e9f..5dc113d3296f 100644
--- a/arch/um/os-Linux/tt.c
+++ b/arch/um/os-Linux/tt.c
@@ -17,7 +17,6 @@
17#include <sys/mman.h> 17#include <sys/mman.h>
18#include <asm/ptrace.h> 18#include <asm/ptrace.h>
19#include <asm/unistd.h> 19#include <asm/unistd.h>
20#include <asm/page.h>
21#include "kern_util.h" 20#include "kern_util.h"
22#include "user.h" 21#include "user.h"
23#include "signal_kern.h" 22#include "signal_kern.h"