Re: [PATCH] powerpc/powermac: Fix unused function warning

2023-08-30 Thread Michael Ellerman
On Tue, 22 Aug 2023 00:09:49 +1000, Michael Ellerman wrote: > Clang reports: > arch/powerpc/platforms/powermac/feature.c:137:19: error: unused function > 'simple_feature_tweak' > > It's only used inside the #ifndef CONFIG_PPC64 block, so move it in > there to fix the warning. While at it drop

[PATCH] powerpc/powermac: Fix unused function warning

2023-08-21 Thread Michael Ellerman
Clang reports: arch/powerpc/platforms/powermac/feature.c:137:19: error: unused function 'simple_feature_tweak' It's only used inside the #ifndef CONFIG_PPC64 block, so move it in there to fix the warning. While at it drop the inline, the compiler will decide whether it should be inlined or