diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2012-05-23 07:55:45 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2012-05-24 04:10:05 -0400 |
commit | da477737c5ec99d37cb78dab909aa0402a0ebf18 (patch) | |
tree | dba1fa168ff9673a3079d4d4c9394c3d8be24ddc /arch | |
parent | 02456169e03bcfcebd3115b2a54c1c4a6829c875 (diff) |
s390/headers: remove #ifdef __KERNEL__ from not exported headers
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/s390/include/asm/bitops.h | 5 | ||||
-rw-r--r-- | arch/s390/include/asm/cio.h | 4 | ||||
-rw-r--r-- | arch/s390/include/asm/current.h | 3 | ||||
-rw-r--r-- | arch/s390/include/asm/futex.h | 3 | ||||
-rw-r--r-- | arch/s390/include/asm/io.h | 4 | ||||
-rw-r--r-- | arch/s390/include/asm/kexec.h | 4 | ||||
-rw-r--r-- | arch/s390/include/asm/kmap_types.h | 2 | ||||
-rw-r--r-- | arch/s390/include/asm/processor.h | 8 | ||||
-rw-r--r-- | arch/s390/include/asm/rwsem.h | 3 | ||||
-rw-r--r-- | arch/s390/include/asm/string.h | 4 | ||||
-rw-r--r-- | arch/s390/include/asm/thread_info.h | 4 | ||||
-rw-r--r-- | arch/s390/include/asm/timer.h | 4 | ||||
-rw-r--r-- | arch/s390/include/asm/vdso.h | 5 |
13 files changed, 1 insertions, 52 deletions
diff --git a/arch/s390/include/asm/bitops.h b/arch/s390/include/asm/bitops.h index e5beb490959b..8a503b1acd63 100644 --- a/arch/s390/include/asm/bitops.h +++ b/arch/s390/include/asm/bitops.h | |||
@@ -13,8 +13,6 @@ | |||
13 | * | 13 | * |
14 | */ | 14 | */ |
15 | 15 | ||
16 | #ifdef __KERNEL__ | ||
17 | |||
18 | #ifndef _LINUX_BITOPS_H | 16 | #ifndef _LINUX_BITOPS_H |
19 | #error only <linux/bitops.h> can be included directly | 17 | #error only <linux/bitops.h> can be included directly |
20 | #endif | 18 | #endif |
@@ -834,7 +832,4 @@ static inline int find_next_bit_le(void *vaddr, unsigned long size, | |||
834 | 832 | ||
835 | #include <asm-generic/bitops/ext2-atomic-setbit.h> | 833 | #include <asm-generic/bitops/ext2-atomic-setbit.h> |
836 | 834 | ||
837 | |||
838 | #endif /* __KERNEL__ */ | ||
839 | |||
840 | #endif /* _S390_BITOPS_H */ | 835 | #endif /* _S390_BITOPS_H */ |
diff --git a/arch/s390/include/asm/cio.h b/arch/s390/include/asm/cio.h index fc50a3342da3..4c8d4d5b8bd2 100644 --- a/arch/s390/include/asm/cio.h +++ b/arch/s390/include/asm/cio.h | |||
@@ -10,8 +10,6 @@ | |||
10 | #include <linux/spinlock.h> | 10 | #include <linux/spinlock.h> |
11 | #include <asm/types.h> | 11 | #include <asm/types.h> |
12 | 12 | ||
13 | #ifdef __KERNEL__ | ||
14 | |||
15 | #define LPM_ANYPATH 0xff | 13 | #define LPM_ANYPATH 0xff |
16 | #define __MAX_CSSID 0 | 14 | #define __MAX_CSSID 0 |
17 | 15 | ||
@@ -291,5 +289,3 @@ int chsc_sstpc(void *page, unsigned int op, u16 ctrl); | |||
291 | int chsc_sstpi(void *page, void *result, size_t size); | 289 | int chsc_sstpi(void *page, void *result, size_t size); |
292 | 290 | ||
293 | #endif | 291 | #endif |
294 | |||
295 | #endif | ||
diff --git a/arch/s390/include/asm/current.h b/arch/s390/include/asm/current.h index 83cf36cde2da..7a68084ec2f0 100644 --- a/arch/s390/include/asm/current.h +++ b/arch/s390/include/asm/current.h | |||
@@ -11,13 +11,10 @@ | |||
11 | #ifndef _S390_CURRENT_H | 11 | #ifndef _S390_CURRENT_H |
12 | #define _S390_CURRENT_H | 12 | #define _S390_CURRENT_H |
13 | 13 | ||
14 | #ifdef __KERNEL__ | ||
15 | #include <asm/lowcore.h> | 14 | #include <asm/lowcore.h> |
16 | 15 | ||
17 | struct task_struct; | 16 | struct task_struct; |
18 | 17 | ||
19 | #define current ((struct task_struct *const)S390_lowcore.current_task) | 18 | #define current ((struct task_struct *const)S390_lowcore.current_task) |
20 | 19 | ||
21 | #endif | ||
22 | |||
23 | #endif /* !(_S390_CURRENT_H) */ | 20 | #endif /* !(_S390_CURRENT_H) */ |
diff --git a/arch/s390/include/asm/futex.h b/arch/s390/include/asm/futex.h index 81cf36b691f1..96bc83ea5c90 100644 --- a/arch/s390/include/asm/futex.h +++ b/arch/s390/include/asm/futex.h | |||
@@ -1,8 +1,6 @@ | |||
1 | #ifndef _ASM_S390_FUTEX_H | 1 | #ifndef _ASM_S390_FUTEX_H |
2 | #define _ASM_S390_FUTEX_H | 2 | #define _ASM_S390_FUTEX_H |
3 | 3 | ||
4 | #ifdef __KERNEL__ | ||
5 | |||
6 | #include <linux/futex.h> | 4 | #include <linux/futex.h> |
7 | #include <linux/uaccess.h> | 5 | #include <linux/uaccess.h> |
8 | #include <asm/errno.h> | 6 | #include <asm/errno.h> |
@@ -48,5 +46,4 @@ static inline int futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, | |||
48 | return uaccess.futex_atomic_cmpxchg(uval, uaddr, oldval, newval); | 46 | return uaccess.futex_atomic_cmpxchg(uval, uaddr, oldval, newval); |
49 | } | 47 | } |
50 | 48 | ||
51 | #endif /* __KERNEL__ */ | ||
52 | #endif /* _ASM_S390_FUTEX_H */ | 49 | #endif /* _ASM_S390_FUTEX_H */ |
diff --git a/arch/s390/include/asm/io.h b/arch/s390/include/asm/io.h index 27216d317991..f81a0975cbea 100644 --- a/arch/s390/include/asm/io.h +++ b/arch/s390/include/asm/io.h | |||
@@ -11,8 +11,6 @@ | |||
11 | #ifndef _S390_IO_H | 11 | #ifndef _S390_IO_H |
12 | #define _S390_IO_H | 12 | #define _S390_IO_H |
13 | 13 | ||
14 | #ifdef __KERNEL__ | ||
15 | |||
16 | #include <asm/page.h> | 14 | #include <asm/page.h> |
17 | 15 | ||
18 | #define IO_SPACE_LIMIT 0xffffffff | 16 | #define IO_SPACE_LIMIT 0xffffffff |
@@ -46,6 +44,4 @@ void unxlate_dev_mem_ptr(unsigned long phys, void *addr); | |||
46 | */ | 44 | */ |
47 | #define xlate_dev_kmem_ptr(p) p | 45 | #define xlate_dev_kmem_ptr(p) p |
48 | 46 | ||
49 | #endif /* __KERNEL__ */ | ||
50 | |||
51 | #endif | 47 | #endif |
diff --git a/arch/s390/include/asm/kexec.h b/arch/s390/include/asm/kexec.h index 3f30dac804ea..f4f38826eebb 100644 --- a/arch/s390/include/asm/kexec.h +++ b/arch/s390/include/asm/kexec.h | |||
@@ -10,10 +10,8 @@ | |||
10 | #ifndef _S390_KEXEC_H | 10 | #ifndef _S390_KEXEC_H |
11 | #define _S390_KEXEC_H | 11 | #define _S390_KEXEC_H |
12 | 12 | ||
13 | #ifdef __KERNEL__ | ||
14 | #include <asm/page.h> | ||
15 | #endif | ||
16 | #include <asm/processor.h> | 13 | #include <asm/processor.h> |
14 | #include <asm/page.h> | ||
17 | /* | 15 | /* |
18 | * KEXEC_SOURCE_MEMORY_LIMIT maximum page get_free_page can return. | 16 | * KEXEC_SOURCE_MEMORY_LIMIT maximum page get_free_page can return. |
19 | * I.e. Maximum page that is mapped directly into kernel memory, | 17 | * I.e. Maximum page that is mapped directly into kernel memory, |
diff --git a/arch/s390/include/asm/kmap_types.h b/arch/s390/include/asm/kmap_types.h index 94ec3ee07983..0a88622339ee 100644 --- a/arch/s390/include/asm/kmap_types.h +++ b/arch/s390/include/asm/kmap_types.h | |||
@@ -1,8 +1,6 @@ | |||
1 | #ifdef __KERNEL__ | ||
2 | #ifndef _ASM_KMAP_TYPES_H | 1 | #ifndef _ASM_KMAP_TYPES_H |
3 | #define _ASM_KMAP_TYPES_H | 2 | #define _ASM_KMAP_TYPES_H |
4 | 3 | ||
5 | #include <asm-generic/kmap_types.h> | 4 | #include <asm-generic/kmap_types.h> |
6 | 5 | ||
7 | #endif | 6 | #endif |
8 | #endif /* __KERNEL__ */ | ||
diff --git a/arch/s390/include/asm/processor.h b/arch/s390/include/asm/processor.h index d499b30ea487..0aa04f9bc624 100644 --- a/arch/s390/include/asm/processor.h +++ b/arch/s390/include/asm/processor.h | |||
@@ -20,7 +20,6 @@ | |||
20 | #include <asm/ptrace.h> | 20 | #include <asm/ptrace.h> |
21 | #include <asm/setup.h> | 21 | #include <asm/setup.h> |
22 | 22 | ||
23 | #ifdef __KERNEL__ | ||
24 | /* | 23 | /* |
25 | * Default implementation of macro that returns current | 24 | * Default implementation of macro that returns current |
26 | * instruction pointer ("program counter"). | 25 | * instruction pointer ("program counter"). |
@@ -54,8 +53,6 @@ extern int sysctl_ieee_emulation_warnings; | |||
54 | 53 | ||
55 | #endif /* __s390x__ */ | 54 | #endif /* __s390x__ */ |
56 | 55 | ||
57 | #ifdef __KERNEL__ | ||
58 | |||
59 | #ifndef __s390x__ | 56 | #ifndef __s390x__ |
60 | #define STACK_TOP (1UL << 31) | 57 | #define STACK_TOP (1UL << 31) |
61 | #define STACK_TOP_MAX (1UL << 31) | 58 | #define STACK_TOP_MAX (1UL << 31) |
@@ -64,9 +61,6 @@ extern int sysctl_ieee_emulation_warnings; | |||
64 | #define STACK_TOP_MAX (1UL << 42) | 61 | #define STACK_TOP_MAX (1UL << 42) |
65 | #endif /* __s390x__ */ | 62 | #endif /* __s390x__ */ |
66 | 63 | ||
67 | |||
68 | #endif | ||
69 | |||
70 | #define HAVE_ARCH_PICK_MMAP_LAYOUT | 64 | #define HAVE_ARCH_PICK_MMAP_LAYOUT |
71 | 65 | ||
72 | typedef struct { | 66 | typedef struct { |
@@ -341,8 +335,6 @@ extern void (*s390_base_ext_handler_fn)(void); | |||
341 | 335 | ||
342 | #define ARCH_LOW_ADDRESS_LIMIT 0x7fffffffUL | 336 | #define ARCH_LOW_ADDRESS_LIMIT 0x7fffffffUL |
343 | 337 | ||
344 | #endif | ||
345 | |||
346 | /* | 338 | /* |
347 | * Helper macro for exception table entries | 339 | * Helper macro for exception table entries |
348 | */ | 340 | */ |
diff --git a/arch/s390/include/asm/rwsem.h b/arch/s390/include/asm/rwsem.h index d0eb4653cebd..5a2f731ce128 100644 --- a/arch/s390/include/asm/rwsem.h +++ b/arch/s390/include/asm/rwsem.h | |||
@@ -41,8 +41,6 @@ | |||
41 | #error "please don't include asm/rwsem.h directly, use linux/rwsem.h instead" | 41 | #error "please don't include asm/rwsem.h directly, use linux/rwsem.h instead" |
42 | #endif | 42 | #endif |
43 | 43 | ||
44 | #ifdef __KERNEL__ | ||
45 | |||
46 | #ifndef __s390x__ | 44 | #ifndef __s390x__ |
47 | #define RWSEM_UNLOCKED_VALUE 0x00000000 | 45 | #define RWSEM_UNLOCKED_VALUE 0x00000000 |
48 | #define RWSEM_ACTIVE_BIAS 0x00000001 | 46 | #define RWSEM_ACTIVE_BIAS 0x00000001 |
@@ -319,5 +317,4 @@ static inline long rwsem_atomic_update(long delta, struct rw_semaphore *sem) | |||
319 | return new; | 317 | return new; |
320 | } | 318 | } |
321 | 319 | ||
322 | #endif /* __KERNEL__ */ | ||
323 | #endif /* _S390_RWSEM_H */ | 320 | #endif /* _S390_RWSEM_H */ |
diff --git a/arch/s390/include/asm/string.h b/arch/s390/include/asm/string.h index cd0241db5a46..8cc160c9e1cb 100644 --- a/arch/s390/include/asm/string.h +++ b/arch/s390/include/asm/string.h | |||
@@ -9,8 +9,6 @@ | |||
9 | #ifndef _S390_STRING_H_ | 9 | #ifndef _S390_STRING_H_ |
10 | #define _S390_STRING_H_ | 10 | #define _S390_STRING_H_ |
11 | 11 | ||
12 | #ifdef __KERNEL__ | ||
13 | |||
14 | #ifndef _LINUX_TYPES_H | 12 | #ifndef _LINUX_TYPES_H |
15 | #include <linux/types.h> | 13 | #include <linux/types.h> |
16 | #endif | 14 | #endif |
@@ -152,6 +150,4 @@ size_t strlen(const char *s); | |||
152 | size_t strnlen(const char * s, size_t n); | 150 | size_t strnlen(const char * s, size_t n); |
153 | #endif /* !IN_ARCH_STRING_C */ | 151 | #endif /* !IN_ARCH_STRING_C */ |
154 | 152 | ||
155 | #endif /* __KERNEL__ */ | ||
156 | |||
157 | #endif /* __S390_STRING_H_ */ | 153 | #endif /* __S390_STRING_H_ */ |
diff --git a/arch/s390/include/asm/thread_info.h b/arch/s390/include/asm/thread_info.h index 003b04edcff6..ed27145c9ae3 100644 --- a/arch/s390/include/asm/thread_info.h +++ b/arch/s390/include/asm/thread_info.h | |||
@@ -9,8 +9,6 @@ | |||
9 | #ifndef _ASM_THREAD_INFO_H | 9 | #ifndef _ASM_THREAD_INFO_H |
10 | #define _ASM_THREAD_INFO_H | 10 | #define _ASM_THREAD_INFO_H |
11 | 11 | ||
12 | #ifdef __KERNEL__ | ||
13 | |||
14 | /* | 12 | /* |
15 | * Size of kernel stack for each process | 13 | * Size of kernel stack for each process |
16 | */ | 14 | */ |
@@ -123,8 +121,6 @@ static inline struct thread_info *current_thread_info(void) | |||
123 | #define is_32bit_task() (1) | 121 | #define is_32bit_task() (1) |
124 | #endif | 122 | #endif |
125 | 123 | ||
126 | #endif /* __KERNEL__ */ | ||
127 | |||
128 | #define PREEMPT_ACTIVE 0x4000000 | 124 | #define PREEMPT_ACTIVE 0x4000000 |
129 | 125 | ||
130 | #endif /* _ASM_THREAD_INFO_H */ | 126 | #endif /* _ASM_THREAD_INFO_H */ |
diff --git a/arch/s390/include/asm/timer.h b/arch/s390/include/asm/timer.h index e63069ba39e3..15d647901e5c 100644 --- a/arch/s390/include/asm/timer.h +++ b/arch/s390/include/asm/timer.h | |||
@@ -10,8 +10,6 @@ | |||
10 | #ifndef _ASM_S390_TIMER_H | 10 | #ifndef _ASM_S390_TIMER_H |
11 | #define _ASM_S390_TIMER_H | 11 | #define _ASM_S390_TIMER_H |
12 | 12 | ||
13 | #ifdef __KERNEL__ | ||
14 | |||
15 | #include <linux/timer.h> | 13 | #include <linux/timer.h> |
16 | 14 | ||
17 | #define VTIMER_MAX_SLICE (0x7ffffffffffff000LL) | 15 | #define VTIMER_MAX_SLICE (0x7ffffffffffff000LL) |
@@ -50,6 +48,4 @@ extern void vtime_init(void); | |||
50 | extern void vtime_stop_cpu(void); | 48 | extern void vtime_stop_cpu(void); |
51 | extern void vtime_start_leave(void); | 49 | extern void vtime_start_leave(void); |
52 | 50 | ||
53 | #endif /* __KERNEL__ */ | ||
54 | |||
55 | #endif /* _ASM_S390_TIMER_H */ | 51 | #endif /* _ASM_S390_TIMER_H */ |
diff --git a/arch/s390/include/asm/vdso.h b/arch/s390/include/asm/vdso.h index c4a11cfad3c8..a73eb2e1e918 100644 --- a/arch/s390/include/asm/vdso.h +++ b/arch/s390/include/asm/vdso.h | |||
@@ -1,8 +1,6 @@ | |||
1 | #ifndef __S390_VDSO_H__ | 1 | #ifndef __S390_VDSO_H__ |
2 | #define __S390_VDSO_H__ | 2 | #define __S390_VDSO_H__ |
3 | 3 | ||
4 | #ifdef __KERNEL__ | ||
5 | |||
6 | /* Default link addresses for the vDSOs */ | 4 | /* Default link addresses for the vDSOs */ |
7 | #define VDSO32_LBASE 0 | 5 | #define VDSO32_LBASE 0 |
8 | #define VDSO64_LBASE 0 | 6 | #define VDSO64_LBASE 0 |
@@ -45,7 +43,4 @@ void vdso_free_per_cpu(struct _lowcore *lowcore); | |||
45 | #endif | 43 | #endif |
46 | 44 | ||
47 | #endif /* __ASSEMBLY__ */ | 45 | #endif /* __ASSEMBLY__ */ |
48 | |||
49 | #endif /* __KERNEL__ */ | ||
50 | |||
51 | #endif /* __S390_VDSO_H__ */ | 46 | #endif /* __S390_VDSO_H__ */ |