Re: [PATCH v2] powerpc/32s: Cleanup the mess in __set_pte_at()

2023-08-23 Thread Michael Ellerman
On Tue, 15 Aug 2023 19:42:40 +0200, Christophe Leroy wrote: > __set_pte_at() handles 3 main cases with #ifdefs plus the 'percpu' > subcase which leads to code duplication. > > Rewrite the function using IS_ENABLED() to minimise the total number > of cases and remove duplicated code. > > > [...]

[PATCH v2] powerpc/32s: Cleanup the mess in __set_pte_at()

2023-08-15 Thread Christophe Leroy
__set_pte_at() handles 3 main cases with #ifdefs plus the 'percpu' subcase which leads to code duplication. Rewrite the function using IS_ENABLED() to minimise the total number of cases and remove duplicated code. Signed-off-by: Christophe Leroy --- v2: Reorganise comments, first case becomes