aboutsummaryrefslogtreecommitdiffstats
path: root/lib/overflow_kunit.c
diff options
context:
space:
mode:
authorMark Rutland <[email protected]>2022-08-17 15:59:14 +0000
committerCatalin Marinas <[email protected]>2022-09-09 12:58:33 +0000
commit78f6f5c994ed22a35ce1cd3ec9aeda8e2fa328e6 (patch)
tree7a26f895fa5f3083c72d11b853b07ee9afd0a00c /lib/overflow_kunit.c
parentarm64: atomics: remove LL/SC trampolines (diff)
downloadkernel-78f6f5c994ed22a35ce1cd3ec9aeda8e2fa328e6.tar.gz
kernel-78f6f5c994ed22a35ce1cd3ec9aeda8e2fa328e6.zip
arm64: atomic: always inline the assembly
The __lse_*() and __ll_sc_*() atomic implementations are marked as inline rather than __always_inline, permitting a compiler to generate out-of-line versions, which may be instrumented. We marked the atomic wrappers as __always_inline in commit: c35a824c31834d94 ("arm64: make atomic helpers __always_inline") ... but did not think to do the same for the underlying implementations. If the compiler were to out-of-line an LSE or LL/SC atomic, this could break noinstr code. Ensure this doesn't happen by marking the underlying implementations as __always_inline. There should be no functional change as a result of this patch. Signed-off-by: Mark Rutland <[email protected]> Cc: Will Deacon <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'lib/overflow_kunit.c')
0 files changed, 0 insertions, 0 deletions