[RFC 3/8] m68k: add dummy dump_fpu() when FPU is not present

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is requirement from elfcore.h
No other arch put this one under flag, so this alignment
for build with elf binary support to succeed.

Signed-off-by: Yannick GICQUEL <yannick.gicquel@xxxxxxxxx>
---
 arch/m68k/kernel/process.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/arch/m68k/kernel/process.c b/arch/m68k/kernel/process.c
index c55ff71..03e29a4 100644
--- a/arch/m68k/kernel/process.c
+++ b/arch/m68k/kernel/process.c
@@ -203,9 +203,9 @@ int copy_thread(unsigned long clone_flags, unsigned long usp,
 }
 
 /* Fill in the fpu structure for a core dump.  */
-#ifdef CONFIG_FPU
 int dump_fpu (struct pt_regs *regs, struct user_m68kfp_struct *fpu)
 {
+#ifdef CONFIG_FPU
 	char fpustate[216];
 
 	if (FPU_IS_EMU) {
@@ -250,9 +250,11 @@ int dump_fpu (struct pt_regs *regs, struct user_m68kfp_struct *fpu)
 	}
 
 	return 1;
+#else
+	return 0;
+#endif /* CONFIG_FPU */
 }
 EXPORT_SYMBOL(dump_fpu);
-#endif /* CONFIG_FPU */
 
 unsigned long get_wchan(struct task_struct *p)
 {
-- 
1.9.1.286.g5172cb3

--
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Video for Linux]     [Yosemite News]     [Linux S/390]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux