linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] frv: fix build failure
@ 2017-11-21 22:10 Sudip Mukherjee
  2017-11-23 17:17 ` Alexey Brodkin
  2017-11-27 18:49 ` Geert Uytterhoeven
  0 siblings, 2 replies; 8+ messages in thread
From: Sudip Mukherjee @ 2017-11-21 22:10 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, Sudip Mukherjee

The frv defconfig build is failing with the error:
lib/mpi/mpih-div.o: In function `mpihelp_divrem':
mpih-div.c:(.text+0x30c): undefined reference to `abort'

The function 'abort' was never defined for the frv architecture.
Create 'abort' as is done in other arch like 'arm' and 'unicore32'.

Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
---

The build log of next-20171121 is at:
https://travis-ci.org/sudipm-mukherjee/parport/jobs/305076731

 arch/frv/kernel/traps.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/frv/kernel/traps.c b/arch/frv/kernel/traps.c
index fb08ebe..70f4387 100644
--- a/arch/frv/kernel/traps.c
+++ b/arch/frv/kernel/traps.c
@@ -633,6 +633,15 @@ void show_backtrace(struct pt_regs *frame, unsigned long sp)
 
 } /* end show_backtrace() */
 
+void abort(void)
+{
+	BUG();
+
+	/* if that doesn't kill us, halt */
+	panic("Oops failed to kill thread");
+}
+EXPORT_SYMBOL(abort);
+
 /*****************************************************************************/
 /*
  * initialise traps
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-12-06 22:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-21 22:10 [PATCH] frv: fix build failure Sudip Mukherjee
2017-11-23 17:17 ` Alexey Brodkin
2017-11-23 23:01   ` Sudip Mukherjee
2017-11-24  5:02     ` Alexey Brodkin
2017-11-27 18:25   ` Vineet Gupta
2017-12-03 22:32     ` Sudip Mukherjee
2017-12-06 22:00       ` Vineet Gupta
2017-11-27 18:49 ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).