Re: [PATCH v1] powerpc/process: Replace an #ifdef CONFIG_PPC_BOOK3S_64 by IS_ENABLED()

2020-09-17 Thread Michael Ellerman
On Mon, 17 Aug 2020 05:46:42 + (UTC), Christophe Leroy wrote: > This #ifdef CONFIG_PPC_BOOK3S_64 calls preload_new_slb_context() > when radix is not enabled. > > radix_enabled() is always defined, and the prototype for > preload_new_slb_context() is always present, so the #ifdef > is unneeded.

[PATCH v1] powerpc/process: Replace an #ifdef CONFIG_PPC_BOOK3S_64 by IS_ENABLED()

2020-08-16 Thread Christophe Leroy
This #ifdef CONFIG_PPC_BOOK3S_64 calls preload_new_slb_context() when radix is not enabled. radix_enabled() is always defined, and the prototype for preload_new_slb_context() is always present, so the #ifdef is unneeded. Replace it by IS_ENABLED(). Signed-off-by: Christophe Leroy --- arch/powe