aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorParag Warudkar <parag.lkml@gmail.com>2009-07-08 11:46:02 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-07-08 12:18:05 -0400
commite9bf0cc7cbfbf3952cdf8028aa0d348d09ecdba1 (patch)
tree3d44e78af85ce720091ed7d0a8e1307d5d54e364 /include
parentfaf80d62e44dc627efb741f48db50c1858d1667c (diff)
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 <parag.lkml@gmail.com> Acked-by: Amerigo Wang <xiyou.wangcong@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/elfcore.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/elfcore.h b/include/linux/elfcore.h
index 03ec16779802..00d6a68d0421 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
122 122
123static inline int elf_core_copy_task_regs(struct task_struct *t, elf_gregset_t* elfregs) 123static inline int elf_core_copy_task_regs(struct task_struct *t, elf_gregset_t* elfregs)
124{ 124{
125#ifdef ELF_CORE_COPY_TASK_REGS 125#if defined (ELF_CORE_COPY_TASK_REGS)
126
127 return ELF_CORE_COPY_TASK_REGS(t, elfregs); 126 return ELF_CORE_COPY_TASK_REGS(t, elfregs);
128#else 127#elif defined (task_pt_regs)
129 elf_core_copy_regs(elfregs, task_pt_regs(t)); 128 elf_core_copy_regs(elfregs, task_pt_regs(t));
130#endif 129#endif
131 return 0; 130 return 0;