Re: [PATCH] MIPS: include: Mark __cmpxchd as __always_inline

From: Paul Burton
Date: Mon Oct 07 2019 - 13:50:22 EST


Hello,

Thomas Bogendoerfer wrote:
> Commit ac7c3e4ff401 ("compiler: enable CONFIG_OPTIMIZE_INLINING
> forcibly") allows compiler to uninline functions marked as 'inline'.
> In cace of cmpxchg this would cause to reference function
> __cmpxchg_called_with_bad_pointer, which is a error case
> for catching bugs and will not happen for correct code, if
> __cmpxchg is inlined.

Applied to mips-fixes.

> commit 88356d09904b
> https://git.kernel.org/mips/c/88356d09904b
>
> Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@xxxxxxx>
> [paul.burton@xxxxxxxx: s/__cmpxchd/__cmpxchg in subject]
> Signed-off-by: Paul Burton <paul.burton@xxxxxxxx>

Thanks,
Paul

[ This message was auto-generated; if you believe anything is incorrect
then please email paul.burton@xxxxxxxx to report it. ]