diff options
author | Kirill A. Shutemov <k.shutemov@gmail.com> | 2008-02-07 03:15:54 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-07 11:42:30 -0500 |
commit | 516c25a86f6bdad77ded01a43c52c5569c8d690c (patch) | |
tree | e7404e73fd103f70958ccb1bc1c74ff1c7ff48bf /include/asm-powerpc | |
parent | c1445db9f72db0537c43a2eab6e1b0f6741162f5 (diff) |
Cleanup asm/{elf,page,user}.h: #ifdef __KERNEL__ is no longer needed
asm/elf.h, asm/page.h and asm/user.h don't export to userspace now, so we can
drop #ifdef __KERNEL__ for them.
[k.shutemov@gmail.com: remove #ifdef __KERNEL_]
Signed-off-by: Kirill A. Shutemov <k.shutemov@gmail.com>
Reviewed-by: David Woodhouse <dwmw2@infradead.org>
Cc: <linux-arch@vger.kernel.org>
Signed-off-by: Kirill A. Shutemov <k.shutemov@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r-- | include/asm-powerpc/page.h | 3 | ||||
-rw-r--r-- | include/asm-powerpc/page_32.h | 2 | ||||
-rw-r--r-- | include/asm-powerpc/page_64.h | 2 | ||||
-rw-r--r-- | include/asm-powerpc/user.h | 4 |
4 files changed, 0 insertions, 11 deletions
diff --git a/include/asm-powerpc/page.h b/include/asm-powerpc/page.h index 236a9210e5fc..61e3725bbd37 100644 --- a/include/asm-powerpc/page.h +++ b/include/asm-powerpc/page.h | |||
@@ -10,7 +10,6 @@ | |||
10 | * 2 of the License, or (at your option) any later version. | 10 | * 2 of the License, or (at your option) any later version. |
11 | */ | 11 | */ |
12 | 12 | ||
13 | #ifdef __KERNEL__ | ||
14 | #include <asm/asm-compat.h> | 13 | #include <asm/asm-compat.h> |
15 | #include <asm/kdump.h> | 14 | #include <asm/kdump.h> |
16 | 15 | ||
@@ -194,6 +193,4 @@ struct vm_area_struct; | |||
194 | #include <asm-generic/memory_model.h> | 193 | #include <asm-generic/memory_model.h> |
195 | #endif /* __ASSEMBLY__ */ | 194 | #endif /* __ASSEMBLY__ */ |
196 | 195 | ||
197 | #endif /* __KERNEL__ */ | ||
198 | |||
199 | #endif /* _ASM_POWERPC_PAGE_H */ | 196 | #endif /* _ASM_POWERPC_PAGE_H */ |
diff --git a/include/asm-powerpc/page_32.h b/include/asm-powerpc/page_32.h index 17110aff26e7..65ea19eec956 100644 --- a/include/asm-powerpc/page_32.h +++ b/include/asm-powerpc/page_32.h | |||
@@ -1,6 +1,5 @@ | |||
1 | #ifndef _ASM_POWERPC_PAGE_32_H | 1 | #ifndef _ASM_POWERPC_PAGE_32_H |
2 | #define _ASM_POWERPC_PAGE_32_H | 2 | #define _ASM_POWERPC_PAGE_32_H |
3 | #ifdef __KERNEL__ | ||
4 | 3 | ||
5 | #define VM_DATA_DEFAULT_FLAGS VM_DATA_DEFAULT_FLAGS32 | 4 | #define VM_DATA_DEFAULT_FLAGS VM_DATA_DEFAULT_FLAGS32 |
6 | 5 | ||
@@ -32,5 +31,4 @@ extern void copy_page(void *to, void *from); | |||
32 | 31 | ||
33 | #endif /* __ASSEMBLY__ */ | 32 | #endif /* __ASSEMBLY__ */ |
34 | 33 | ||
35 | #endif /* __KERNEL__ */ | ||
36 | #endif /* _ASM_POWERPC_PAGE_32_H */ | 34 | #endif /* _ASM_POWERPC_PAGE_32_H */ |
diff --git a/include/asm-powerpc/page_64.h b/include/asm-powerpc/page_64.h index 4ee82c61e4d7..67834eae5702 100644 --- a/include/asm-powerpc/page_64.h +++ b/include/asm-powerpc/page_64.h | |||
@@ -1,6 +1,5 @@ | |||
1 | #ifndef _ASM_POWERPC_PAGE_64_H | 1 | #ifndef _ASM_POWERPC_PAGE_64_H |
2 | #define _ASM_POWERPC_PAGE_64_H | 2 | #define _ASM_POWERPC_PAGE_64_H |
3 | #ifdef __KERNEL__ | ||
4 | 3 | ||
5 | /* | 4 | /* |
6 | * Copyright (C) 2001 PPC64 Team, IBM Corp | 5 | * Copyright (C) 2001 PPC64 Team, IBM Corp |
@@ -183,5 +182,4 @@ do { \ | |||
183 | 182 | ||
184 | #include <asm-generic/page.h> | 183 | #include <asm-generic/page.h> |
185 | 184 | ||
186 | #endif /* __KERNEL__ */ | ||
187 | #endif /* _ASM_POWERPC_PAGE_64_H */ | 185 | #endif /* _ASM_POWERPC_PAGE_64_H */ |
diff --git a/include/asm-powerpc/user.h b/include/asm-powerpc/user.h index e59ade4b3dfb..ba8dd4c12d96 100644 --- a/include/asm-powerpc/user.h +++ b/include/asm-powerpc/user.h | |||
@@ -1,8 +1,6 @@ | |||
1 | #ifndef _ASM_POWERPC_USER_H | 1 | #ifndef _ASM_POWERPC_USER_H |
2 | #define _ASM_POWERPC_USER_H | 2 | #define _ASM_POWERPC_USER_H |
3 | 3 | ||
4 | #ifdef __KERNEL__ | ||
5 | |||
6 | #include <asm/ptrace.h> | 4 | #include <asm/ptrace.h> |
7 | #include <asm/page.h> | 5 | #include <asm/page.h> |
8 | 6 | ||
@@ -50,6 +48,4 @@ struct user { | |||
50 | #define HOST_TEXT_START_ADDR (u.start_code) | 48 | #define HOST_TEXT_START_ADDR (u.start_code) |
51 | #define HOST_DATA_START_ADDR (u.start_data) | 49 | #define HOST_DATA_START_ADDR (u.start_data) |
52 | #define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG) | 50 | #define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG) |
53 | |||
54 | #endif /* __KERNEL__ */ | ||
55 | #endif /* _ASM_POWERPC_USER_H */ | 51 | #endif /* _ASM_POWERPC_USER_H */ |