diff options
author | 2022-10-12 16:36:08 +0800 | |
---|---|---|
committer | 2022-10-12 16:36:08 +0800 | |
commit | ddf502717da029c9f065ade7e9bce90a1890e7df (patch) | |
tree | 930d40686b776b56380e3d1eee962930527ca62e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | LoongArch: Flush TLB earlier at initialization (diff) | |
download | linux-dev-ddf502717da029c9f065ade7e9bce90a1890e7df.tar.xz linux-dev-ddf502717da029c9f065ade7e9bce90a1890e7df.zip |
LoongArch: Mark __xchg() and __cmpxchg() as __always_inline
Commit ac7c3e4ff401 ("compiler: enable CONFIG_OPTIMIZE_INLINING
forcibly") allows compiler to uninline functions marked as 'inline'.
In case of __xchg()/__cmpxchg() this would cause to reference
BUILD_BUG(), which is an error case for catching bugs and will not
happen for correct code, if __xchg()/__cmpxchg() is inlined.
This bug can be produced with CONFIG_DEBUG_SECTION_MISMATCH enabled,
and the solution is similar to below commits:
46f1619500d0225 ("MIPS: include: Mark __xchg as __always_inline"),
88356d09904bc60 ("MIPS: include: Mark __cmpxchg as __always_inline").
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions