]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit08be778c9b63c68b3ca094f78db8a6ba4f1b6d16
tree3e01d5d397387c7d8548518f3566763bbeef412d
parentc1a19ae7565dfe8f72357d75e7862d2fa29ec84c
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