parisc: Drop ifdef __KERNEL__ from non-uapi kernel headers
Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
parent
8d90dbfd4c
commit
0760a9157b
|
@ -104,8 +104,6 @@ static __inline__ int test_and_change_bit(int nr, volatile unsigned long * addr)
|
||||||
|
|
||||||
#include <asm-generic/bitops/non-atomic.h>
|
#include <asm-generic/bitops/non-atomic.h>
|
||||||
|
|
||||||
#ifdef __KERNEL__
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* __ffs - find first bit in word. returns 0 to "BITS_PER_LONG-1".
|
* __ffs - find first bit in word. returns 0 to "BITS_PER_LONG-1".
|
||||||
* @word: The word to search
|
* @word: The word to search
|
||||||
|
@ -205,16 +203,8 @@ static __inline__ int fls(unsigned int x)
|
||||||
#include <asm-generic/bitops/hweight.h>
|
#include <asm-generic/bitops/hweight.h>
|
||||||
#include <asm-generic/bitops/lock.h>
|
#include <asm-generic/bitops/lock.h>
|
||||||
#include <asm-generic/bitops/sched.h>
|
#include <asm-generic/bitops/sched.h>
|
||||||
|
|
||||||
#endif /* __KERNEL__ */
|
|
||||||
|
|
||||||
#include <asm-generic/bitops/find.h>
|
#include <asm-generic/bitops/find.h>
|
||||||
|
|
||||||
#ifdef __KERNEL__
|
|
||||||
|
|
||||||
#include <asm-generic/bitops/le.h>
|
#include <asm-generic/bitops/le.h>
|
||||||
#include <asm-generic/bitops/ext2-atomic-setbit.h>
|
#include <asm-generic/bitops/ext2-atomic-setbit.h>
|
||||||
|
|
||||||
#endif /* __KERNEL__ */
|
|
||||||
|
|
||||||
#endif /* _PARISC_BITOPS_H */
|
#endif /* _PARISC_BITOPS_H */
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
#ifndef _ASM_PARISC_FUTEX_H
|
#ifndef _ASM_PARISC_FUTEX_H
|
||||||
#define _ASM_PARISC_FUTEX_H
|
#define _ASM_PARISC_FUTEX_H
|
||||||
|
|
||||||
#ifdef __KERNEL__
|
|
||||||
|
|
||||||
#include <linux/futex.h>
|
#include <linux/futex.h>
|
||||||
#include <linux/uaccess.h>
|
#include <linux/uaccess.h>
|
||||||
#include <asm/atomic.h>
|
#include <asm/atomic.h>
|
||||||
|
@ -119,5 +117,4 @@ futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /*__KERNEL__*/
|
|
||||||
#endif /*_ASM_PARISC_FUTEX_H*/
|
#endif /*_ASM_PARISC_FUTEX_H*/
|
||||||
|
|
|
@ -12,8 +12,6 @@
|
||||||
#ifndef __ASM_PARISC_IDE_H
|
#ifndef __ASM_PARISC_IDE_H
|
||||||
#define __ASM_PARISC_IDE_H
|
#define __ASM_PARISC_IDE_H
|
||||||
|
|
||||||
#ifdef __KERNEL__
|
|
||||||
|
|
||||||
/* Generic I/O and MEMIO string operations. */
|
/* Generic I/O and MEMIO string operations. */
|
||||||
|
|
||||||
#define __ide_insw insw
|
#define __ide_insw insw
|
||||||
|
@ -53,6 +51,4 @@ static __inline__ void __ide_mm_outsl(void __iomem *port, void *addr, u32 count)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* __KERNEL__ */
|
|
||||||
|
|
||||||
#endif /* __ASM_PARISC_IDE_H */
|
#endif /* __ASM_PARISC_IDE_H */
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
/* SPDX-License-Identifier: GPL-2.0 */
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#ifndef ASM_PARISC_MCKINLEY_H
|
#ifndef ASM_PARISC_MCKINLEY_H
|
||||||
#define ASM_PARISC_MCKINLEY_H
|
#define ASM_PARISC_MCKINLEY_H
|
||||||
#ifdef __KERNEL__
|
|
||||||
|
|
||||||
/* declared in arch/parisc/kernel/setup.c */
|
/* declared in arch/parisc/kernel/setup.c */
|
||||||
extern struct proc_dir_entry * proc_mckinley_root;
|
extern struct proc_dir_entry * proc_mckinley_root;
|
||||||
|
|
||||||
#endif /*__KERNEL__*/
|
|
||||||
#endif /*ASM_PARISC_MCKINLEY_H*/
|
#endif /*ASM_PARISC_MCKINLEY_H*/
|
||||||
|
|
|
@ -38,16 +38,12 @@
|
||||||
#define DEFAULT_MAP_BASE DEFAULT_MAP_BASE32
|
#define DEFAULT_MAP_BASE DEFAULT_MAP_BASE32
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __KERNEL__
|
|
||||||
|
|
||||||
/* XXX: STACK_TOP actually should be STACK_BOTTOM for parisc.
|
/* XXX: STACK_TOP actually should be STACK_BOTTOM for parisc.
|
||||||
* prumpf */
|
* prumpf */
|
||||||
|
|
||||||
#define STACK_TOP TASK_SIZE
|
#define STACK_TOP TASK_SIZE
|
||||||
#define STACK_TOP_MAX DEFAULT_TASK_SIZE
|
#define STACK_TOP_MAX DEFAULT_TASK_SIZE
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
|
|
||||||
unsigned long calc_max_stack_size(unsigned long stack_max);
|
unsigned long calc_max_stack_size(unsigned long stack_max);
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
/* SPDX-License-Identifier: GPL-2.0 */
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#ifndef ASM_PARISC_RUNWAY_H
|
#ifndef ASM_PARISC_RUNWAY_H
|
||||||
#define ASM_PARISC_RUNWAY_H
|
#define ASM_PARISC_RUNWAY_H
|
||||||
#ifdef __KERNEL__
|
|
||||||
|
|
||||||
/* declared in arch/parisc/kernel/setup.c */
|
/* declared in arch/parisc/kernel/setup.c */
|
||||||
extern struct proc_dir_entry * proc_runway_root;
|
extern struct proc_dir_entry * proc_runway_root;
|
||||||
|
@ -9,5 +8,4 @@ extern struct proc_dir_entry * proc_runway_root;
|
||||||
#define RUNWAY_STATUS 0x10
|
#define RUNWAY_STATUS 0x10
|
||||||
#define RUNWAY_DEBUG 0x40
|
#define RUNWAY_DEBUG 0x40
|
||||||
|
|
||||||
#endif /* __KERNEL__ */
|
|
||||||
#endif /* ASM_PARISC_RUNWAY_H */
|
#endif /* ASM_PARISC_RUNWAY_H */
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
#ifndef _ASM_PARISC_THREAD_INFO_H
|
#ifndef _ASM_PARISC_THREAD_INFO_H
|
||||||
#define _ASM_PARISC_THREAD_INFO_H
|
#define _ASM_PARISC_THREAD_INFO_H
|
||||||
|
|
||||||
#ifdef __KERNEL__
|
|
||||||
|
|
||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
#include <asm/processor.h>
|
#include <asm/processor.h>
|
||||||
#include <asm/special_insns.h>
|
#include <asm/special_insns.h>
|
||||||
|
@ -80,6 +78,4 @@ struct thread_info {
|
||||||
# define is_32bit_task() (1)
|
# define is_32bit_task() (1)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* __KERNEL__ */
|
|
||||||
|
|
||||||
#endif /* _ASM_PARISC_THREAD_INFO_H */
|
#endif /* _ASM_PARISC_THREAD_INFO_H */
|
||||||
|
|
|
@ -4,10 +4,8 @@
|
||||||
|
|
||||||
#include <asm-generic/unaligned.h>
|
#include <asm-generic/unaligned.h>
|
||||||
|
|
||||||
#ifdef __KERNEL__
|
|
||||||
struct pt_regs;
|
struct pt_regs;
|
||||||
void handle_unaligned(struct pt_regs *regs);
|
void handle_unaligned(struct pt_regs *regs);
|
||||||
int check_unaligned(struct pt_regs *regs);
|
int check_unaligned(struct pt_regs *regs);
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _ASM_PARISC_UNALIGNED_H */
|
#endif /* _ASM_PARISC_UNALIGNED_H */
|
||||||
|
|
Loading…
Reference in New Issue