From: Parag Warudkar Date: Wed, 8 Jul 2009 15:46:02 +0000 (-0400) Subject: elfcore.h : Fix UML build breakage X-Git-Tag: v2.6.31-rc3~66 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e9bf0cc7cbfbf3952cdf8028aa0d348d09ecdba1;p=platform%2Fkernel%2Flinux-stable.git elfcore.h : Fix UML build breakage Commit a65e7bfcd74e4c0939f235d2bf9f48ddb3a57991 broke the UML build with the following error - In file included from fs/proc/kcore.c:17: include/linux/elfcore.h: In function 'elf_core_copy_task_regs': include/linux/elfcore.h:129: error: implicit declaration of function 'task_pt_regs' Fix this by restoring the previous behavior of returning 0 for all arches like UML that don't define task_pt_regs. Signed-off-by: Parag Warudkar Acked-by: Amerigo Wang Signed-off-by: Linus Torvalds --- diff --git a/include/linux/elfcore.h b/include/linux/elfcore.h index 03ec167..00d6a68 100644 --- a/include/linux/elfcore.h +++ b/include/linux/elfcore.h @@ -122,10 +122,9 @@ static inline void elf_core_copy_kernel_regs(elf_gregset_t *elfregs, struct pt_r static inline int elf_core_copy_task_regs(struct task_struct *t, elf_gregset_t* elfregs) { -#ifdef ELF_CORE_COPY_TASK_REGS - +#if defined (ELF_CORE_COPY_TASK_REGS) return ELF_CORE_COPY_TASK_REGS(t, elfregs); -#else +#elif defined (task_pt_regs) elf_core_copy_regs(elfregs, task_pt_regs(t)); #endif return 0;