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

ARC: remove extraneous __KERNEL__ guards

Verified by doing make headers_install as none of these files are
exported to userspace

-35
-4
arch/arc/include/asm/arcregs.h
··· 9 9 #ifndef _ASM_ARC_ARCREGS_H 10 10 #define _ASM_ARC_ARCREGS_H 11 11 12 - #ifdef __KERNEL__ 13 - 14 12 /* Build Configuration Registers */ 15 13 #define ARC_REG_DCCMBASE_BCR 0x61 /* DCCM Base Addr */ 16 14 #define ARC_REG_CRC_BCR 0x62 ··· 318 320 extern struct cpuinfo_arc cpuinfo_arc700[]; 319 321 320 322 #endif /* __ASEMBLY__ */ 321 - 322 - #endif /* __KERNEL__ */ 323 323 324 324 #endif /* _ASM_ARC_ARCREGS_H */
-4
arch/arc/include/asm/atomic.h
··· 9 9 #ifndef _ASM_ARC_ATOMIC_H 10 10 #define _ASM_ARC_ATOMIC_H 11 11 12 - #ifdef __KERNEL__ 13 - 14 12 #ifndef __ASSEMBLY__ 15 13 16 14 #include <linux/types.h> ··· 222 224 #define ATOMIC_INIT(i) { (i) } 223 225 224 226 #include <asm-generic/atomic64.h> 225 - 226 - #endif 227 227 228 228 #endif 229 229
-4
arch/arc/include/asm/bitops.h
··· 13 13 #error only <linux/bitops.h> can be included directly 14 14 #endif 15 15 16 - #ifdef __KERNEL__ 17 - 18 16 #ifndef __ASSEMBLY__ 19 17 20 18 #include <linux/types.h> ··· 505 507 #include <asm-generic/bitops/ext2-atomic-setbit.h> 506 508 507 509 #endif /* !__ASSEMBLY__ */ 508 - 509 - #endif /* __KERNEL__ */ 510 510 511 511 #endif
-4
arch/arc/include/asm/current.h
··· 12 12 #ifndef _ASM_ARC_CURRENT_H 13 13 #define _ASM_ARC_CURRENT_H 14 14 15 - #ifdef __KERNEL__ 16 - 17 15 #ifndef __ASSEMBLY__ 18 16 19 17 #ifdef CONFIG_ARC_CURR_IN_REG ··· 24 26 #endif /* ! CONFIG_ARC_CURR_IN_REG */ 25 27 26 28 #endif /* ! __ASSEMBLY__ */ 27 - 28 - #endif /* __KERNEL__ */ 29 29 30 30 #endif /* _ASM_ARC_CURRENT_H */
-4
arch/arc/include/asm/irqflags.h
··· 15 15 * -Conditionally disable interrupts (if they are not enabled, don't disable) 16 16 */ 17 17 18 - #ifdef __KERNEL__ 19 - 20 18 #include <asm/arcregs.h> 21 19 22 20 /* status32 Reg bits related to Interrupt Handling */ ··· 166 168 .endm 167 169 168 170 #endif /* __ASSEMBLY__ */ 169 - 170 - #endif /* KERNEL */ 171 171 172 172 #endif
-4
arch/arc/include/asm/processor.h
··· 14 14 #ifndef __ASM_ARC_PROCESSOR_H 15 15 #define __ASM_ARC_PROCESSOR_H 16 16 17 - #ifdef __KERNEL__ 18 - 19 17 #ifndef __ASSEMBLY__ 20 18 21 19 #include <asm/ptrace.h> ··· 125 127 * space during mmap's. 126 128 */ 127 129 #define TASK_UNMAPPED_BASE (TASK_SIZE / 3) 128 - 129 - #endif /* __KERNEL__ */ 130 130 131 131 #endif /* __ASM_ARC_PROCESSOR_H */
-3
arch/arc/include/asm/string.h
··· 17 17 18 18 #include <linux/types.h> 19 19 20 - #ifdef __KERNEL__ 21 - 22 20 #define __HAVE_ARCH_MEMSET 23 21 #define __HAVE_ARCH_MEMCPY 24 22 #define __HAVE_ARCH_MEMCMP ··· 34 36 extern int strcmp(const char *cs, const char *ct); 35 37 extern __kernel_size_t strlen(const char *); 36 38 37 - #endif /* __KERNEL__ */ 38 39 #endif /* _ASM_ARC_STRING_H */
-4
arch/arc/include/asm/syscalls.h
··· 9 9 #ifndef _ASM_ARC_SYSCALLS_H 10 10 #define _ASM_ARC_SYSCALLS_H 1 11 11 12 - #ifdef __KERNEL__ 13 - 14 12 #include <linux/compiler.h> 15 13 #include <linux/linkage.h> 16 14 #include <linux/types.h> ··· 19 21 int sys_arc_gettls(void); 20 22 21 23 #include <asm-generic/syscalls.h> 22 - 23 - #endif /* __KERNEL__ */ 24 24 25 25 #endif
-4
arch/arc/include/asm/thread_info.h
··· 16 16 #ifndef _ASM_THREAD_INFO_H 17 17 #define _ASM_THREAD_INFO_H 18 18 19 - #ifdef __KERNEL__ 20 - 21 19 #include <asm/page.h> 22 20 23 21 #ifdef CONFIG_16KSTACKS ··· 111 113 * SYSCALL_TRACE is anways seperately/unconditionally tested right after a 112 114 * syscall, so all that reamins to be tested is _TIF_WORK_MASK 113 115 */ 114 - 115 - #endif /* __KERNEL__ */ 116 116 117 117 #endif /* _ASM_THREAD_INFO_H */