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

2019-10-07 Thread Paul Burton
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

[PATCH] MIPS: include: Mark __cmpxchd as __always_inline

2019-10-06 Thread Thomas Bogendoerfer
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