]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/32s: Remove TAUException wart in traps.c
authorMichael Ellerman <mpe@ellerman.id.au>
Fri, 24 Jul 2020 13:17:25 +0000 (23:17 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 29 Jul 2020 11:08:18 +0000 (21:08 +1000)
commitca685ea19a81ea1065dbea8f8ad008da977d80eb
tree856d6d63b5e5d0067aa97ea8ad8da08bbf90bc5a
parent0bb2a6624c3e9aa0cc99b71644eaefbe55e8f832
powerpc/32s: Remove TAUException wart in traps.c

All 32 and 64-bit builds that don't have CONFIG_TAU_INT enabled (all
of them), get a definition of TAUException() in traps.c.

On 64-bit it's completely useless, and just wastes ~120 bytes of text.
On 32-bit it allows the kernel to link because head_32.S calls it
unconditionally.

Instead follow the example of altivec_assist_exception(), and if
CONFIG_TAU_INT is not enabled just point it at unknown_exception using
the preprocessor.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200724131728.1643966-6-mpe@ellerman.id.au
arch/powerpc/kernel/head_32.S
arch/powerpc/kernel/traps.c