Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da477737 authored by Heiko Carstens's avatar Heiko Carstens Committed by Martin Schwidefsky
Browse files

s390/headers: remove #ifdef __KERNEL__ from not exported headers

parent 02456169
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -13,8 +13,6 @@
 *
 */

#ifdef __KERNEL__

#ifndef _LINUX_BITOPS_H
#error only <linux/bitops.h> can be included directly
#endif
@@ -834,7 +832,4 @@ static inline int find_next_bit_le(void *vaddr, unsigned long size,

#include <asm-generic/bitops/ext2-atomic-setbit.h>


#endif /* __KERNEL__ */

#endif /* _S390_BITOPS_H */
+0 −4
Original line number Diff line number Diff line
@@ -10,8 +10,6 @@
#include <linux/spinlock.h>
#include <asm/types.h>

#ifdef __KERNEL__

#define LPM_ANYPATH 0xff
#define __MAX_CSSID 0

@@ -291,5 +289,3 @@ int chsc_sstpc(void *page, unsigned int op, u16 ctrl);
int chsc_sstpi(void *page, void *result, size_t size);

#endif

#endif
+0 −3
Original line number Diff line number Diff line
@@ -11,13 +11,10 @@
#ifndef _S390_CURRENT_H
#define _S390_CURRENT_H

#ifdef __KERNEL__
#include <asm/lowcore.h>

struct task_struct;

#define current ((struct task_struct *const)S390_lowcore.current_task)

#endif

#endif /* !(_S390_CURRENT_H) */
+0 −3
Original line number Diff line number Diff line
#ifndef _ASM_S390_FUTEX_H
#define _ASM_S390_FUTEX_H

#ifdef __KERNEL__

#include <linux/futex.h>
#include <linux/uaccess.h>
#include <asm/errno.h>
@@ -48,5 +46,4 @@ static inline int futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr,
	return uaccess.futex_atomic_cmpxchg(uval, uaddr, oldval, newval);
}

#endif /* __KERNEL__ */
#endif /* _ASM_S390_FUTEX_H */
+0 −4
Original line number Diff line number Diff line
@@ -11,8 +11,6 @@
#ifndef _S390_IO_H
#define _S390_IO_H

#ifdef __KERNEL__

#include <asm/page.h>

#define IO_SPACE_LIMIT 0xffffffff
@@ -46,6 +44,4 @@ void unxlate_dev_mem_ptr(unsigned long phys, void *addr);
 */
#define xlate_dev_kmem_ptr(p)	p

#endif /* __KERNEL__ */

#endif
Loading