Skip to contentSkip to conversation

ia64 get_fs() build fix

PATCH Andrew Morton 1 participant 1 message Oct 22, 2004

lore
Share & tools
lore
#0 lore raw

Not sure how I managed to do this, but...

In file included from arch/ia64/ia32/binfmt_elf32.c:22:
arch/ia64/ia32/elfcore32.h: In function elf_core_copy_task_fpregs': arch/ia64/ia32/elfcore32.h:111: warning: implicit declaration of function get_fs' arch/ia64/ia32/elfcore32.h:111: error: incompatible types in assignment
arch/ia64/ia32/elfcore32.h:112: warning: implicit declaration of function set_fs' arch/ia64/ia32/elfcore32.h:112: error: KERNEL_DS' undeclared (first use in this function) arch/ia64/ia32/elfcore32.h:112: error: (Each undeclared identifier is reported only once
arch/ia64/ia32/elfcore32.h:112: error: for each function it appears in.) arch/ia64/ia32/elfcore32.h: In function `elf_core_copy_task_xfpregs':
arch/ia64/ia32/elfcore32.h:129: error: incompatible types in assignment arch/ia64/ia32/elfcore32.h:130: error: `KERNEL_DS' undeclared (first use in this function)

---

 25-akpm/arch/ia64/ia32/elfcore32.h |    1 +
 1 files changed, 1 insertion(+)
arch/ia64/ia32/elfcore32.h renamed from arch/ia64/ia32/elfcore32.h~ia64-get_fs-build-fix +1 -0
diff -puN arch/ia64/ia32/elfcore32.h~ia64-get_fs-build-fix arch/ia64/ia32/elfcore32.h
@@ -9,6 +9,7 @@
 #define _ELFCORE32_H_
 
 #include <asm/intrinsics.h>
+#include <asm/uaccess.h>
 
 #define USE_ELF_CORE_DUMP 1
 

_