On Sun, 14 Mar 2021 20:33:20 +1100, Michael Ellerman wrote: > lkp reported warnings in some configuration due to > update_current_thread_amr() being unused: > > arch/powerpc/mm/book3s64/pkeys.c:284:20: error: unused function > 'update_current_thread_amr' > static inline void update_current_thread_amr(u64 value) > > Which is because it's only use is inside an ifdef. We could move it > inside the ifdef, but it's a single line function and only has one > caller, so just fold it in. > > [...]
Applied to powerpc/next. [1/1] powerpc/64s: Fold update_current_thread_[i]amr() into their only callers https://git.kernel.org/powerpc/c/c2a2a5d0270c641ce030aee247569afc1a0efbe5 cheers