]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/ftrace: Minimise number of #ifdefs
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 9 May 2022 05:36:17 +0000 (07:36 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 22 May 2022 05:58:26 +0000 (15:58 +1000)
commit678b71449c641a87fe105a76ce97b8106cc4ebff
tree619202d5724cb5da5dca2617662e24a56a126ea4
parent7e1c8a69ff8f63c82ce938e3be8cc7734fa611a4
powerpc/ftrace: Minimise number of #ifdefs

A lot of #ifdefs can be replaced by IS_ENABLED()

Do so.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
[mpe: Fold in changes suggested by Naveen and Christophe on list]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/18ce6708d6f8c71d87436f9c6019f04df4125128.1652074503.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/code-patching.h
arch/powerpc/include/asm/module.h
arch/powerpc/kernel/trace/ftrace.c