m32r: fix build failure
authorSudip Mukherjee <[email protected]>
Tue, 3 Oct 2017 23:16:49 +0000 (16:16 -0700)
committerLinus Torvalds <[email protected]>
Wed, 4 Oct 2017 00:54:26 +0000 (17:54 -0700)
commitd22e3d69ee1a3f83ff7cc943af63de48b6156dcf
treeeb8b2aa1b3bfe76c4f0cf520209783a35d0d9169
parent656d61ce9666209c4c4a13c71902d3ee70d1ff6f
m32r: fix build failure

The allmodconfig build of m32r is failing with the error:

  lib/mpi/mpih-div.o: In function 'mpihelp_divrem':
  mpih-div.c:(.text+0x40): undefined reference to 'abort'
  mpih-div.c:(.text+0x40): relocation truncated to fit:
R_M32R_26_PCREL_RELA against undefined symbol 'abort'

The function 'abort' was never defined for the m32r architecture.

Create 'abort' as is done in other arch like 'arm' and 'unicore32'.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Sudip Mukherjee <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/m32r/kernel/traps.c