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

From: Paul Burton
Date: Wed Oct 09 2019 - 17:58:19 EST


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

Applied to mips-fixes.

> commit 46f1619500d0
> Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@xxxxxxx>
> Reviewed-by: Philippe Mathieu-Daudé <f4bug@xxxxxxxxx>
> Signed-off-by: Paul Burton <paul.burton@xxxxxxxx>


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