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

Cleanup asm/{elf,page,user}.h: #ifdef __KERNEL__ is no longer needed

asm/elf.h, asm/page.h and asm/user.h don't export to userspace now, so we can
drop #ifdef __KERNEL__ for them.

[k.shutemov@gmail.com: remove #ifdef __KERNEL_]
Signed-off-by: Kirill A. Shutemov <k.shutemov@gmail.com>
Reviewed-by: David Woodhouse <dwmw2@infradead.org>
Cc: <linux-arch@vger.kernel.org>
Signed-off-by: Kirill A. Shutemov <k.shutemov@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Kirill A. Shutemov and committed by
Linus Torvalds
516c25a8 c1445db9

+3 -150
-3
include/asm-alpha/elf.h
··· 144 144 : amask (AMASK_CIX) ? "ev6" : "ev67"); \ 145 145 }) 146 146 147 - #ifdef __KERNEL__ 148 - 149 147 #define SET_PERSONALITY(EX, IBCS2) \ 150 148 set_personality(((EX).e_flags & EF_ALPHA_32BIT) \ 151 149 ? PER_LINUX_32BIT : (IBCS2) ? PER_SVR4 : PER_LINUX) ··· 162 164 NEW_AUX_ENT(AT_L3_CACHESHAPE, alpha_l3_cacheshape); \ 163 165 } while (0) 164 166 165 - #endif /* __KERNEL__ */ 166 167 #endif /* __ASM_ALPHA_ELF_H */
-3
include/asm-alpha/page.h
··· 1 1 #ifndef _ALPHA_PAGE_H 2 2 #define _ALPHA_PAGE_H 3 3 4 - #ifdef __KERNEL__ 5 - 6 4 #include <linux/const.h> 7 5 #include <asm/pal.h> 8 6 ··· 96 98 #include <asm-generic/memory_model.h> 97 99 #include <asm-generic/page.h> 98 100 99 - #endif /* __KERNEL__ */ 100 101 #endif /* _ALPHA_PAGE_H */
-3
include/asm-arm/elf.h
··· 41 41 #endif 42 42 #define ELF_ARCH EM_ARM 43 43 44 - #ifdef __KERNEL__ 45 44 #ifndef __ASSEMBLY__ 46 45 /* 47 46 * This yields a string that ld.so will use to load implementation ··· 112 113 clear_thread_flag(TIF_USING_IWMMXT); \ 113 114 } \ 114 115 } while (0) 115 - 116 - #endif 117 116 118 117 #endif
-5
include/asm-arm/page.h
··· 10 10 #ifndef _ASMARM_PAGE_H 11 11 #define _ASMARM_PAGE_H 12 12 13 - 14 - #ifdef __KERNEL__ 15 - 16 13 /* PAGE_SHIFT determines the page size */ 17 14 #define PAGE_SHIFT 12 18 15 #define PAGE_SIZE (1UL << PAGE_SHIFT) ··· 188 191 #endif 189 192 190 193 #include <asm-generic/page.h> 191 - 192 - #endif /* __KERNEL__ */ 193 194 194 195 #endif
-2
include/asm-avr32/elf.h
··· 103 103 104 104 #define ELF_PLATFORM (NULL) 105 105 106 - #ifdef __KERNEL__ 107 106 #define SET_PERSONALITY(ex, ibcs2) set_personality(PER_LINUX_32BIT) 108 - #endif 109 107 110 108 #endif /* __ASM_AVR32_ELF_H */
-4
include/asm-avr32/page.h
··· 8 8 #ifndef __ASM_AVR32_PAGE_H 9 9 #define __ASM_AVR32_PAGE_H 10 10 11 - #ifdef __KERNEL__ 12 - 13 11 /* PAGE_SHIFT determines the page size */ 14 12 #define PAGE_SHIFT 12 15 13 #ifdef __ASSEMBLY__ ··· 104 106 * Memory above this physical address will be considered highmem. 105 107 */ 106 108 #define HIGHMEM_START 0x20000000UL 107 - 108 - #endif /* __KERNEL__ */ 109 109 110 110 #endif /* __ASM_AVR32_PAGE_H */
-2
include/asm-blackfin/elf.h
··· 120 120 121 121 #define ELF_PLATFORM (NULL) 122 122 123 - #ifdef __KERNEL__ 124 123 #define SET_PERSONALITY(ex, ibcs2) set_personality((ibcs2)?PER_SVR4:PER_LINUX) 125 - #endif 126 124 127 125 #endif
-3
include/asm-blackfin/page.h
··· 11 11 #endif 12 12 #define PAGE_MASK (~(PAGE_SIZE-1)) 13 13 14 - #ifdef __KERNEL__ 15 - 16 14 #include <asm/setup.h> 17 15 18 16 #ifndef __ASSEMBLY__ ··· 86 88 #include <asm-generic/page.h> 87 89 88 90 #endif /* __ASSEMBLY__ */ 89 - #endif /* __KERNEL__ */ 90 91 91 92 #endif /* _BLACKFIN_PAGE_H */
-3
include/asm-cris/elf.h
··· 45 45 #define ELF_DATA ELFDATA2LSB 46 46 #define ELF_ARCH EM_CRIS 47 47 48 - #ifdef __KERNEL__ 49 48 #include <asm/arch/elf.h> 50 49 51 50 /* The master for these definitions is {binutils}/include/elf/cris.h: */ ··· 89 90 #define ELF_PLATFORM (NULL) 90 91 91 92 #define SET_PERSONALITY(ex, ibcs2) set_personality((ibcs2)?PER_SVR4:PER_LINUX) 92 - 93 - #endif /* __KERNEL__ */ 94 93 95 94 #endif
-4
include/asm-cris/page.h
··· 1 1 #ifndef _CRIS_PAGE_H 2 2 #define _CRIS_PAGE_H 3 3 4 - #ifdef __KERNEL__ 5 - 6 4 #include <asm/arch/page.h> 7 5 #include <linux/const.h> 8 6 ··· 71 73 72 74 #include <asm-generic/memory_model.h> 73 75 #include <asm-generic/page.h> 74 - 75 - #endif /* __KERNEL__ */ 76 76 77 77 #endif /* _CRIS_PAGE_H */ 78 78
-2
include/asm-frv/elf.h
··· 137 137 138 138 #define ELF_PLATFORM (NULL) 139 139 140 - #ifdef __KERNEL__ 141 140 #define SET_PERSONALITY(ex, ibcs2) set_personality((ibcs2)?PER_SVR4:PER_LINUX) 142 - #endif 143 141 144 142 #endif
-4
include/asm-frv/page.h
··· 1 1 #ifndef _ASM_PAGE_H 2 2 #define _ASM_PAGE_H 3 3 4 - #ifdef __KERNEL__ 5 - 6 4 #include <asm/virtconvert.h> 7 5 #include <asm/mem-layout.h> 8 6 #include <asm/sections.h> ··· 76 78 77 79 #include <asm-generic/memory_model.h> 78 80 #include <asm-generic/page.h> 79 - 80 - #endif /* __KERNEL__ */ 81 81 82 82 #endif /* _ASM_PAGE_H */
-2
include/asm-h8300/elf.h
··· 55 55 56 56 #define ELF_PLATFORM (NULL) 57 57 58 - #ifdef __KERNEL__ 59 58 #define SET_PERSONALITY(ex, ibcs2) set_personality(PER_LINUX) 60 - #endif 61 59 62 60 #define R_H8_NONE 0 63 61 #define R_H8_DIR32 1
-4
include/asm-h8300/page.h
··· 1 1 #ifndef _H8300_PAGE_H 2 2 #define _H8300_PAGE_H 3 3 4 - #ifdef __KERNEL__ 5 - 6 4 /* PAGE_SHIFT determines the page size */ 7 5 8 6 #define PAGE_SHIFT (12) ··· 76 78 77 79 #include <asm-generic/memory_model.h> 78 80 #include <asm-generic/page.h> 79 - 80 - #endif /* __KERNEL__ */ 81 81 82 82 #endif /* _H8300_PAGE_H */
-3
include/asm-ia64/elf.h
··· 177 177 relevant until we have real hardware to play with... */ 178 178 #define ELF_PLATFORM NULL 179 179 180 - #ifdef __KERNEL__ 181 180 #define SET_PERSONALITY(ex, ibcs2) set_personality(PER_LINUX) 182 181 #define elf_read_implies_exec(ex, executable_stack) \ 183 182 ((executable_stack!=EXSTACK_DISABLE_X) && ((ex).e_flags & EF_IA_64_LINUX_EXECUTABLE_STACK) != 0) ··· 246 247 } \ 247 248 } \ 248 249 } while (0) 249 - 250 - #endif /* __KERNEL__ */ 251 250 252 251 #endif /* _ASM_IA64_ELF_H */
-3
include/asm-ia64/page.h
··· 7 7 * David Mosberger-Tang <davidm@hpl.hp.com> 8 8 */ 9 9 10 - # ifdef __KERNEL__ 11 - 12 10 #include <asm/intrinsics.h> 13 11 #include <asm/types.h> 14 12 ··· 225 227 (((current->personality & READ_IMPLIES_EXEC) != 0) \ 226 228 ? VM_EXEC : 0)) 227 229 228 - # endif /* __KERNEL__ */ 229 230 #endif /* _ASM_IA64_PAGE_H */
-2
include/asm-m32r/elf.h
··· 129 129 intent than poking at uname or /proc/cpuinfo. */ 130 130 #define ELF_PLATFORM (NULL) 131 131 132 - #ifdef __KERNEL__ 133 132 #define SET_PERSONALITY(ex, ibcs2) set_personality(PER_LINUX) 134 - #endif 135 133 136 134 #endif /* _ASM_M32R__ELF_H */
-2
include/asm-m32r/page.h
··· 6 6 #define PAGE_SIZE (1UL << PAGE_SHIFT) 7 7 #define PAGE_MASK (~(PAGE_SIZE-1)) 8 8 9 - #ifdef __KERNEL__ 10 9 #ifndef __ASSEMBLY__ 11 10 12 11 extern void clear_page(void *to); ··· 86 87 #include <asm-generic/memory_model.h> 87 88 #include <asm-generic/page.h> 88 89 89 - #endif /* __KERNEL__ */ 90 90 #endif /* _ASM_M32R_PAGE_H */
-2
include/asm-m68k/elf.h
··· 114 114 115 115 #define ELF_PLATFORM (NULL) 116 116 117 - #ifdef __KERNEL__ 118 117 #define SET_PERSONALITY(ex, ibcs2) set_personality((ibcs2)?PER_SVR4:PER_LINUX) 119 - #endif 120 118 121 119 #endif
-5
include/asm-m68k/page.h
··· 1 1 #ifndef _M68K_PAGE_H 2 2 #define _M68K_PAGE_H 3 3 4 - 5 - #ifdef __KERNEL__ 6 - 7 4 #include <linux/const.h> 8 5 9 6 /* PAGE_SHIFT determines the page size */ ··· 226 229 VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) 227 230 228 231 #include <asm-generic/page.h> 229 - 230 - #endif /* __KERNEL__ */ 231 232 232 233 #endif /* _M68K_PAGE_H */
-2
include/asm-m68knommu/elf.h
··· 105 105 106 106 #define ELF_PLATFORM (NULL) 107 107 108 - #ifdef __KERNEL__ 109 108 #define SET_PERSONALITY(ex, ibcs2) set_personality((ibcs2)?PER_SVR4:PER_LINUX) 110 - #endif 111 109 112 110 #endif
-4
include/asm-m68knommu/page.h
··· 1 1 #ifndef _M68KNOMMU_PAGE_H 2 2 #define _M68KNOMMU_PAGE_H 3 3 4 - #ifdef __KERNEL__ 5 - 6 4 /* PAGE_SHIFT determines the page size */ 7 5 8 6 #define PAGE_SHIFT (12) ··· 75 77 #endif /* __ASSEMBLY__ */ 76 78 77 79 #include <asm-generic/page.h> 78 - 79 - #endif /* __KERNEL__ */ 80 80 81 81 #endif /* _M68KNOMMU_PAGE_H */
-4
include/asm-mips/elf.h
··· 239 239 240 240 #endif /* !defined(ELF_ARCH) */ 241 241 242 - #ifdef __KERNEL__ 243 - 244 242 struct mips_abi; 245 243 246 244 extern struct mips_abi mips_abi; ··· 325 327 #define ELF_CORE_COPY_TASK_REGS(tsk, elf_regs) dump_task_regs(tsk, elf_regs) 326 328 #define ELF_CORE_COPY_FPREGS(tsk, elf_fpregs) \ 327 329 dump_task_fpu(tsk, elf_fpregs) 328 - 329 - #endif /* __KERNEL__ */ 330 330 331 331 #define USE_ELF_CORE_DUMP 332 332 #define ELF_EXEC_PAGESIZE PAGE_SIZE
-5
include/asm-mips/page.h
··· 9 9 #ifndef _ASM_PAGE_H 10 10 #define _ASM_PAGE_H 11 11 12 - 13 - #ifdef __KERNEL__ 14 - 15 12 #include <spaces.h> 16 13 17 14 /* ··· 186 189 187 190 #include <asm-generic/memory_model.h> 188 191 #include <asm-generic/page.h> 189 - 190 - #endif /* defined (__KERNEL__) */ 191 192 192 193 #endif /* _ASM_PAGE_H */
-4
include/asm-mips/user.h
··· 8 8 #ifndef _ASM_USER_H 9 9 #define _ASM_USER_H 10 10 11 - #ifdef __KERNEL__ 12 - 13 11 #include <asm/page.h> 14 12 #include <asm/reg.h> 15 13 ··· 54 56 #define HOST_TEXT_START_ADDR (u.start_code) 55 57 #define HOST_DATA_START_ADDR (u.start_data) 56 58 #define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG) 57 - 58 - #endif /* __KERNEL__ */ 59 59 60 60 #endif /* _ASM_USER_H */
-3
include/asm-parisc/elf.h
··· 237 237 238 238 #define ELF_PLATFORM ("PARISC\0" /*+((boot_cpu_data.x86-3)*5) */) 239 239 240 - #ifdef __KERNEL__ 241 240 #define SET_PERSONALITY(ex, ibcs2) \ 242 241 current->personality = PER_LINUX; \ 243 242 current->thread.map_base = DEFAULT_MAP_BASE; \ 244 243 current->thread.task_size = DEFAULT_TASK_SIZE \ 245 - 246 - #endif 247 244 248 245 /* 249 246 * Fill in general registers in a core dump. This saves pretty
-4
include/asm-parisc/page.h
··· 1 1 #ifndef _PARISC_PAGE_H 2 2 #define _PARISC_PAGE_H 3 3 4 - #ifdef __KERNEL__ 5 - 6 4 #include <linux/const.h> 7 5 8 6 #if defined(CONFIG_PARISC_PAGE_SIZE_4KB) ··· 172 174 173 175 #include <asm-generic/memory_model.h> 174 176 #include <asm-generic/page.h> 175 - 176 - #endif /* __KERNEL__ */ 177 177 178 178 #endif /* _PARISC_PAGE_H */
-3
include/asm-powerpc/page.h
··· 10 10 * 2 of the License, or (at your option) any later version. 11 11 */ 12 12 13 - #ifdef __KERNEL__ 14 13 #include <asm/asm-compat.h> 15 14 #include <asm/kdump.h> 16 15 ··· 192 193 193 194 #include <asm-generic/memory_model.h> 194 195 #endif /* __ASSEMBLY__ */ 195 - 196 - #endif /* __KERNEL__ */ 197 196 198 197 #endif /* _ASM_POWERPC_PAGE_H */
-2
include/asm-powerpc/page_32.h
··· 1 1 #ifndef _ASM_POWERPC_PAGE_32_H 2 2 #define _ASM_POWERPC_PAGE_32_H 3 - #ifdef __KERNEL__ 4 3 5 4 #define VM_DATA_DEFAULT_FLAGS VM_DATA_DEFAULT_FLAGS32 6 5 ··· 31 32 32 33 #endif /* __ASSEMBLY__ */ 33 34 34 - #endif /* __KERNEL__ */ 35 35 #endif /* _ASM_POWERPC_PAGE_32_H */
-2
include/asm-powerpc/page_64.h
··· 1 1 #ifndef _ASM_POWERPC_PAGE_64_H 2 2 #define _ASM_POWERPC_PAGE_64_H 3 - #ifdef __KERNEL__ 4 3 5 4 /* 6 5 * Copyright (C) 2001 PPC64 Team, IBM Corp ··· 182 183 183 184 #include <asm-generic/page.h> 184 185 185 - #endif /* __KERNEL__ */ 186 186 #endif /* _ASM_POWERPC_PAGE_64_H */
-4
include/asm-powerpc/user.h
··· 1 1 #ifndef _ASM_POWERPC_USER_H 2 2 #define _ASM_POWERPC_USER_H 3 3 4 - #ifdef __KERNEL__ 5 - 6 4 #include <asm/ptrace.h> 7 5 #include <asm/page.h> 8 6 ··· 48 50 #define HOST_TEXT_START_ADDR (u.start_code) 49 51 #define HOST_DATA_START_ADDR (u.start_data) 50 52 #define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG) 51 - 52 - #endif /* __KERNEL__ */ 53 53 #endif /* _ASM_POWERPC_USER_H */
-2
include/asm-s390/elf.h
··· 113 113 typedef s390_fp_regs elf_fpregset_t; 114 114 typedef s390_regs elf_gregset_t; 115 115 116 - #ifdef __KERNEL__ 117 116 #include <linux/sched.h> /* for task_struct */ 118 117 #include <asm/system.h> /* for save_access_regs */ 119 118 ··· 213 214 clear_thread_flag(TIF_31BIT); \ 214 215 } while (0) 215 216 #endif /* __s390x__ */ 216 - #endif 217 217 218 218 #endif
-3
include/asm-s390/page.h
··· 19 19 #define PAGE_DEFAULT_ACC 0 20 20 #define PAGE_DEFAULT_KEY (PAGE_DEFAULT_ACC << 4) 21 21 22 - #ifdef __KERNEL__ 23 22 #include <asm/setup.h> 24 23 #ifndef __ASSEMBLY__ 25 24 ··· 170 171 171 172 #include <asm-generic/memory_model.h> 172 173 #include <asm-generic/page.h> 173 - 174 - #endif /* __KERNEL__ */ 175 174 176 175 #endif /* _S390_PAGE_H */
-3
include/asm-sh/page.h
··· 7 7 8 8 #include <linux/const.h> 9 9 10 - #ifdef __KERNEL__ 11 - 12 10 /* PAGE_SHIFT determines the page size */ 13 11 #if defined(CONFIG_PAGE_SIZE_4KB) 14 12 # define PAGE_SHIFT 12 ··· 176 178 #define ARCH_SLAB_MINALIGN 8 177 179 #endif 178 180 179 - #endif /* __KERNEL__ */ 180 181 #endif /* __ASM_SH_PAGE_H */
-3
include/asm-sparc/elf.h
··· 85 85 unsigned int pr_q[64]; 86 86 } elf_fpregset_t; 87 87 88 - #ifdef __KERNEL__ 89 88 #include <asm/mbus.h> 90 89 #include <asm/uaccess.h> 91 90 ··· 164 165 #define ELF_PLATFORM (NULL) 165 166 166 167 #define SET_PERSONALITY(ex, ibcs2) set_personality((ibcs2)?PER_SVR4:PER_LINUX) 167 - 168 - #endif /* __KERNEL__ */ 169 168 170 169 #endif /* !(__ASMSPARC_ELF_H) */
-4
include/asm-sparc/page.h
··· 8 8 #ifndef _SPARC_PAGE_H 9 9 #define _SPARC_PAGE_H 10 10 11 - #ifdef __KERNEL__ 12 - 13 11 #ifdef CONFIG_SUN4 14 12 #define PAGE_SHIFT 13 15 13 #else ··· 160 162 161 163 #include <asm-generic/memory_model.h> 162 164 #include <asm-generic/page.h> 163 - 164 - #endif /* __KERNEL__ */ 165 165 166 166 #endif /* _SPARC_PAGE_H */
-4
include/asm-sparc64/elf.h
··· 7 7 */ 8 8 9 9 #include <asm/ptrace.h> 10 - #ifdef __KERNEL__ 11 10 #include <asm/processor.h> 12 11 #include <asm/uaccess.h> 13 12 #include <asm/spitfire.h> 14 - #endif 15 13 16 14 /* 17 15 * Sparc section types ··· 173 175 174 176 #define ELF_PLATFORM (NULL) 175 177 176 - #ifdef __KERNEL__ 177 178 #define SET_PERSONALITY(ex, ibcs2) \ 178 179 do { unsigned long new_flags = current_thread_info()->flags; \ 179 180 new_flags &= _TIF_32BIT; \ ··· 191 194 else if (current->personality != PER_LINUX32) \ 192 195 set_personality(PER_LINUX); \ 193 196 } while (0) 194 - #endif 195 197 196 198 #endif /* !(__ASM_SPARC64_ELF_H) */
-3
include/asm-sparc64/page.h
··· 3 3 #ifndef _SPARC64_PAGE_H 4 4 #define _SPARC64_PAGE_H 5 5 6 - #ifdef __KERNEL__ 7 - 8 6 #include <linux/const.h> 9 7 10 8 #if defined(CONFIG_SPARC64_PAGE_SIZE_8KB) ··· 141 143 142 144 #include <asm-generic/page.h> 143 145 144 - #endif /* __KERNEL__ */ 145 146 #endif /* _SPARC64_PAGE_H */
-2
include/asm-v850/elf.h
··· 94 94 0; \ 95 95 } while (0) 96 96 97 - #ifdef __KERNEL__ 98 97 #define SET_PERSONALITY(ex, ibcs2) set_personality(PER_LINUX_32BIT) 99 - #endif 100 98 101 99 #endif /* __V850_ELF_H__ */
-4
include/asm-v850/page.h
··· 14 14 #ifndef __V850_PAGE_H__ 15 15 #define __V850_PAGE_H__ 16 16 17 - #ifdef __KERNEL__ 18 - 19 17 #include <asm/machdep.h> 20 18 21 19 ··· 123 125 124 126 #include <asm-generic/memory_model.h> 125 127 #include <asm-generic/page.h> 126 - 127 - #endif /* KERNEL */ 128 128 129 129 #endif /* __V850_PAGE_H__ */
-4
include/asm-v850/user.h
··· 3 3 4 4 /* Adapted from <asm-ppc/user.h>. */ 5 5 6 - #ifdef __KERNEL__ 7 - 8 6 #include <linux/ptrace.h> 9 7 #include <asm/page.h> 10 8 ··· 48 50 #define HOST_TEXT_START_ADDR (u.start_code) 49 51 #define HOST_DATA_START_ADDR (u.start_data) 50 52 #define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG) 51 - 52 - #endif /* __KERNEL__ */ 53 53 54 54 #endif /* __V850_USER_H__ */
-3
include/asm-x86/elf.h
··· 72 72 73 73 #endif 74 74 75 - #ifdef __KERNEL__ 76 75 #include <asm/vdso.h> 77 76 78 77 extern unsigned int vdso_enabled; ··· 319 320 320 321 extern unsigned long arch_randomize_brk(struct mm_struct *mm); 321 322 #define arch_randomize_brk arch_randomize_brk 322 - 323 - #endif /* __KERNEL__ */ 324 323 325 324 #endif
+3 -11
include/asm-x86/user.h
··· 1 - #ifdef __KERNEL__ 2 - # ifdef CONFIG_X86_32 3 - # include "user_32.h" 4 - # else 5 - # include "user_64.h" 6 - # endif 1 + #ifdef CONFIG_X86_32 2 + # include "user_32.h" 7 3 #else 8 - # ifdef __i386__ 9 - # include "user_32.h" 10 - # else 11 - # include "user_64.h" 12 - # endif 4 + # include "user_64.h" 13 5 #endif
-3
include/asm-xtensa/elf.h
··· 257 257 _r->areg[12]=0; _r->areg[13]=0; _r->areg[14]=0; _r->areg[15]=0; \ 258 258 } while (0) 259 259 260 - #ifdef __KERNEL__ 261 - 262 260 #define SET_PERSONALITY(ex, ibcs2) set_personality(PER_LINUX_32BIT) 263 261 264 262 struct task_struct; ··· 270 272 extern int do_restore_fpregs (elf_fpregset_t*, struct pt_regs*, 271 273 struct task_struct*); 272 274 273 - #endif /* __KERNEL__ */ 274 275 #endif /* _XTENSA_ELF_H */
-3
include/asm-xtensa/page.h
··· 11 11 #ifndef _XTENSA_PAGE_H 12 12 #define _XTENSA_PAGE_H 13 13 14 - #ifdef __KERNEL__ 15 - 16 14 #include <asm/processor.h> 17 15 #include <asm/types.h> 18 16 #include <asm/cache.h> ··· 172 174 VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) 173 175 174 176 #include <asm-generic/memory_model.h> 175 - #endif /* __KERNEL__ */ 176 177 #endif /* _XTENSA_PAGE_H */