Pull fix-offsets-h into release branch

Tony Luck deb75f3c 5a23f347

+11 -11
+1 -11
arch/ia64/Makefile
··· 82 archclean: 83 $(Q)$(MAKE) $(clean)=$(boot) 84 85 - archprepare: include/asm-ia64/.offsets.h.stamp 86 - 87 - include/asm-ia64/.offsets.h.stamp: 88 - mkdir -p include/asm-ia64 89 - [ -s include/asm-ia64/asm-offsets.h ] \ 90 - || echo "#define IA64_TASK_SIZE 0" > include/asm-ia64/asm-offsets.h 91 - touch $@ 92 - 93 - 94 - 95 - CLEAN_FILES += vmlinux.gz bootloader include/asm-ia64/.offsets.h.stamp 96 97 boot: lib/lib.a vmlinux 98 $(Q)$(MAKE) $(build)=$(boot) $@
··· 82 archclean: 83 $(Q)$(MAKE) $(clean)=$(boot) 84 85 + CLEAN_FILES += vmlinux.gz bootloader 86 87 boot: lib/lib.a vmlinux 88 $(Q)$(MAKE) $(build)=$(boot) $@
+1
arch/ia64/kernel/asm-offsets.c
··· 4 * to extract and format the required data. 5 */ 6 7 #include <linux/config.h> 8 9 #include <linux/sched.h>
··· 4 * to extract and format the required data. 5 */ 6 7 + #define ASM_OFFSETS_C 1 8 #include <linux/config.h> 9 10 #include <linux/sched.h>
+2
include/asm-ia64/ptrace.h
··· 57 #include <linux/config.h> 58 59 #include <asm/fpu.h> 60 #include <asm/asm-offsets.h> 61 62 /* 63 * Base-2 logarithm of number of pages to allocate per task structure
··· 57 #include <linux/config.h> 58 59 #include <asm/fpu.h> 60 + #ifndef ASM_OFFSETS_C 61 #include <asm/asm-offsets.h> 62 + #endif 63 64 /* 65 * Base-2 logarithm of number of pages to allocate per task structure
+7
include/asm-ia64/thread_info.h
··· 5 #ifndef _ASM_IA64_THREAD_INFO_H 6 #define _ASM_IA64_THREAD_INFO_H 7 8 #include <asm/asm-offsets.h> 9 #include <asm/processor.h> 10 #include <asm/ptrace.h> 11 ··· 53 }, \ 54 } 55 56 /* how to get the thread information struct from C */ 57 #define current_thread_info() ((struct thread_info *) ((char *) current + IA64_TASK_SIZE)) 58 #define alloc_thread_info(tsk) ((struct thread_info *) ((char *) (tsk) + IA64_TASK_SIZE)) 59 #define free_thread_info(ti) /* nothing */ 60 61 #define __HAVE_ARCH_TASK_STRUCT_ALLOCATOR
··· 5 #ifndef _ASM_IA64_THREAD_INFO_H 6 #define _ASM_IA64_THREAD_INFO_H 7 8 + #ifndef ASM_OFFSETS_C 9 #include <asm/asm-offsets.h> 10 + #endif 11 #include <asm/processor.h> 12 #include <asm/ptrace.h> 13 ··· 51 }, \ 52 } 53 54 + #ifndef ASM_OFFSETS_C 55 /* how to get the thread information struct from C */ 56 #define current_thread_info() ((struct thread_info *) ((char *) current + IA64_TASK_SIZE)) 57 #define alloc_thread_info(tsk) ((struct thread_info *) ((char *) (tsk) + IA64_TASK_SIZE)) 58 + #else 59 + #define current_thread_info() ((struct thread_info *) 0) 60 + #define alloc_thread_info(tsk) ((struct thread_info *) 0) 61 + #endif 62 #define free_thread_info(ti) /* nothing */ 63 64 #define __HAVE_ARCH_TASK_STRUCT_ALLOCATOR