Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Heiko Carstens and committed by
Martin Schwidefsky
da477737 02456169

+1 -56
-5
arch/s390/include/asm/bitops.h
··· 13 13 * 14 14 */ 15 15 16 - #ifdef __KERNEL__ 17 - 18 16 #ifndef _LINUX_BITOPS_H 19 17 #error only <linux/bitops.h> can be included directly 20 18 #endif ··· 831 833 #include <asm-generic/bitops/le.h> 832 834 833 835 #include <asm-generic/bitops/ext2-atomic-setbit.h> 834 - 835 - 836 - #endif /* __KERNEL__ */ 837 836 838 837 #endif /* _S390_BITOPS_H */
-4
arch/s390/include/asm/cio.h
··· 10 10 #include <linux/spinlock.h> 11 11 #include <asm/types.h> 12 12 13 - #ifdef __KERNEL__ 14 - 15 13 #define LPM_ANYPATH 0xff 16 14 #define __MAX_CSSID 0 17 15 ··· 287 289 /* Function from drivers/s390/cio/chsc.c */ 288 290 int chsc_sstpc(void *page, unsigned int op, u16 ctrl); 289 291 int chsc_sstpi(void *page, void *result, size_t size); 290 - 291 - #endif 292 292 293 293 #endif
-3
arch/s390/include/asm/current.h
··· 11 11 #ifndef _S390_CURRENT_H 12 12 #define _S390_CURRENT_H 13 13 14 - #ifdef __KERNEL__ 15 14 #include <asm/lowcore.h> 16 15 17 16 struct task_struct; 18 17 19 18 #define current ((struct task_struct *const)S390_lowcore.current_task) 20 - 21 - #endif 22 19 23 20 #endif /* !(_S390_CURRENT_H) */
-3
arch/s390/include/asm/futex.h
··· 1 1 #ifndef _ASM_S390_FUTEX_H 2 2 #define _ASM_S390_FUTEX_H 3 3 4 - #ifdef __KERNEL__ 5 - 6 4 #include <linux/futex.h> 7 5 #include <linux/uaccess.h> 8 6 #include <asm/errno.h> ··· 46 48 return uaccess.futex_atomic_cmpxchg(uval, uaddr, oldval, newval); 47 49 } 48 50 49 - #endif /* __KERNEL__ */ 50 51 #endif /* _ASM_S390_FUTEX_H */
-4
arch/s390/include/asm/io.h
··· 11 11 #ifndef _S390_IO_H 12 12 #define _S390_IO_H 13 13 14 - #ifdef __KERNEL__ 15 - 16 14 #include <asm/page.h> 17 15 18 16 #define IO_SPACE_LIMIT 0xffffffff ··· 43 45 * Convert a virtual cached pointer to an uncached pointer 44 46 */ 45 47 #define xlate_dev_kmem_ptr(p) p 46 - 47 - #endif /* __KERNEL__ */ 48 48 49 49 #endif
+1 -3
arch/s390/include/asm/kexec.h
··· 10 10 #ifndef _S390_KEXEC_H 11 11 #define _S390_KEXEC_H 12 12 13 - #ifdef __KERNEL__ 14 - #include <asm/page.h> 15 - #endif 16 13 #include <asm/processor.h> 14 + #include <asm/page.h> 17 15 /* 18 16 * KEXEC_SOURCE_MEMORY_LIMIT maximum page get_free_page can return. 19 17 * I.e. Maximum page that is mapped directly into kernel memory,
-2
arch/s390/include/asm/kmap_types.h
··· 1 - #ifdef __KERNEL__ 2 1 #ifndef _ASM_KMAP_TYPES_H 3 2 #define _ASM_KMAP_TYPES_H 4 3 5 4 #include <asm-generic/kmap_types.h> 6 5 7 6 #endif 8 - #endif /* __KERNEL__ */
-8
arch/s390/include/asm/processor.h
··· 20 20 #include <asm/ptrace.h> 21 21 #include <asm/setup.h> 22 22 23 - #ifdef __KERNEL__ 24 23 /* 25 24 * Default implementation of macro that returns current 26 25 * instruction pointer ("program counter"). ··· 53 54 54 55 #endif /* __s390x__ */ 55 56 56 - #ifdef __KERNEL__ 57 - 58 57 #ifndef __s390x__ 59 58 #define STACK_TOP (1UL << 31) 60 59 #define STACK_TOP_MAX (1UL << 31) ··· 60 63 #define STACK_TOP (1UL << (test_thread_flag(TIF_31BIT) ? 31:42)) 61 64 #define STACK_TOP_MAX (1UL << 42) 62 65 #endif /* __s390x__ */ 63 - 64 - 65 - #endif 66 66 67 67 #define HAVE_ARCH_PICK_MMAP_LAYOUT 68 68 ··· 334 340 extern void (*s390_base_ext_handler_fn)(void); 335 341 336 342 #define ARCH_LOW_ADDRESS_LIMIT 0x7fffffffUL 337 - 338 - #endif 339 343 340 344 /* 341 345 * Helper macro for exception table entries
-3
arch/s390/include/asm/rwsem.h
··· 41 41 #error "please don't include asm/rwsem.h directly, use linux/rwsem.h instead" 42 42 #endif 43 43 44 - #ifdef __KERNEL__ 45 - 46 44 #ifndef __s390x__ 47 45 #define RWSEM_UNLOCKED_VALUE 0x00000000 48 46 #define RWSEM_ACTIVE_BIAS 0x00000001 ··· 317 319 return new; 318 320 } 319 321 320 - #endif /* __KERNEL__ */ 321 322 #endif /* _S390_RWSEM_H */
-4
arch/s390/include/asm/string.h
··· 9 9 #ifndef _S390_STRING_H_ 10 10 #define _S390_STRING_H_ 11 11 12 - #ifdef __KERNEL__ 13 - 14 12 #ifndef _LINUX_TYPES_H 15 13 #include <linux/types.h> 16 14 #endif ··· 149 151 size_t strlen(const char *s); 150 152 size_t strnlen(const char * s, size_t n); 151 153 #endif /* !IN_ARCH_STRING_C */ 152 - 153 - #endif /* __KERNEL__ */ 154 154 155 155 #endif /* __S390_STRING_H_ */
-4
arch/s390/include/asm/thread_info.h
··· 9 9 #ifndef _ASM_THREAD_INFO_H 10 10 #define _ASM_THREAD_INFO_H 11 11 12 - #ifdef __KERNEL__ 13 - 14 12 /* 15 13 * Size of kernel stack for each process 16 14 */ ··· 120 122 #else 121 123 #define is_32bit_task() (1) 122 124 #endif 123 - 124 - #endif /* __KERNEL__ */ 125 125 126 126 #define PREEMPT_ACTIVE 0x4000000 127 127
-4
arch/s390/include/asm/timer.h
··· 10 10 #ifndef _ASM_S390_TIMER_H 11 11 #define _ASM_S390_TIMER_H 12 12 13 - #ifdef __KERNEL__ 14 - 15 13 #include <linux/timer.h> 16 14 17 15 #define VTIMER_MAX_SLICE (0x7ffffffffffff000LL) ··· 47 49 48 50 extern void vtime_stop_cpu(void); 49 51 extern void vtime_start_leave(void); 50 - 51 - #endif /* __KERNEL__ */ 52 52 53 53 #endif /* _ASM_S390_TIMER_H */
-5
arch/s390/include/asm/vdso.h
··· 1 1 #ifndef __S390_VDSO_H__ 2 2 #define __S390_VDSO_H__ 3 3 4 - #ifdef __KERNEL__ 5 - 6 4 /* Default link addresses for the vDSOs */ 7 5 #define VDSO32_LBASE 0 8 6 #define VDSO64_LBASE 0 ··· 43 45 #endif 44 46 45 47 #endif /* __ASSEMBLY__ */ 46 - 47 - #endif /* __KERNEL__ */ 48 - 49 48 #endif /* __S390_VDSO_H__ */
-4
drivers/s390/block/dasd_int.h
··· 10 10 #ifndef DASD_INT_H 11 11 #define DASD_INT_H 12 12 13 - #ifdef __KERNEL__ 14 - 15 13 /* we keep old device allocation scheme; IOW, minors are still in 0..255 */ 16 14 #define DASD_PER_MAJOR (1U << (MINORBITS - DASD_PARTN_BITS)) 17 15 #define DASD_PARTN_MASK ((1 << DASD_PARTN_BITS) - 1) ··· 788 790 #define dasd_eer_snss(d) do { } while (0) 789 791 #define dasd_eer_enabled(d) (0) 790 792 #endif /* CONFIG_DASD_ERR */ 791 - 792 - #endif /* __KERNEL__ */ 793 793 794 794 #endif /* DASD_H */