]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/irq: use IS_ENABLED() in check_stack_overflow()
authorChristophe Leroy <christophe.leroy@c-s.fr>
Thu, 20 Feb 2020 11:51:40 +0000 (22:51 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 4 Mar 2020 11:44:29 +0000 (22:44 +1100)
commit5530d731190f506a41f627d156bb5688fdcdf533
treec02da5c0b3b6c0e0d1458f9369235d3ceb5bd097
parente69b393850d300ff94fa5de936f0a1ced568cc50
powerpc/irq: use IS_ENABLED() in check_stack_overflow()

Instead of #ifdef, use IS_ENABLED(CONFIG_DEBUG_STACKOVERFLOW).
This enable GCC to check for code validity even when the option
is not selected.

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/20200220115141.2707-4-mpe@ellerman.id.au
arch/powerpc/kernel/irq.c