powerpc: Refactor BUG/WARN macros
authorChristophe Leroy <christophe.leroy@c-s.fr>
Mon, 19 Aug 2019 13:06:30 +0000 (13:06 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 18 Nov 2019 11:27:51 +0000 (22:27 +1100)
commit43f003bb74b9b27da6e719cfc2f7630f5652665a
tree3e01d5d397387c7d8548518f3566763bbeef412d
parent98ba8e801322aed3a683252f36fb50d960cc0830
powerpc: Refactor BUG/WARN macros

BUG(), WARN() and friends are using a similar inline assembly to
implement various traps with various flags.

Lets refactor via a new BUG_ENTRY() macro.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/c19a82b37677ace0eebb0dc8c2120373c29c8dd1.1566219503.git.christophe.leroy@c-s.fr
arch/powerpc/include/asm/bug.h