diff options
author | Mark Rutland <mark.rutland@arm.com> | 2023-06-05 10:01:16 +0300 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2023-06-05 10:57:20 +0300 |
commit | 1815da1718aa4c062b94cf3fc09432f552e25768 (patch) | |
tree | a7f397ceee055cc376a82822b482bd3f7570d3e0 /scripts/atomic | |
parent | 0f613bfa8268a89be25f2b6b58fc6fe8ccd9a2ba (diff) | |
download | linux-1815da1718aa4c062b94cf3fc09432f552e25768.tar.xz |
locking/atomic: scripts: build raw_atomic_long*() directly
Now that arch_atomic*() usage is limited to the atomic headers, we no
longer have any users of arch_atomic_long_*(), and can generate
raw_atomic_long_*() directly.
Generate the raw_atomic_long_*() ops directly.
There should be no functional change as a result of this patch.
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20230605070124.3741859-20-mark.rutland@arm.com
Diffstat (limited to 'scripts/atomic')
-rwxr-xr-x | scripts/atomic/gen-atomic-long.sh | 4 | ||||
-rw-r--r-- | scripts/atomic/gen-atomic-raw.sh | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/scripts/atomic/gen-atomic-long.sh b/scripts/atomic/gen-atomic-long.sh index eda89cea6e1d..75e91d6da30d 100755 --- a/scripts/atomic/gen-atomic-long.sh +++ b/scripts/atomic/gen-atomic-long.sh @@ -47,9 +47,9 @@ gen_proto_order_variant() cat <<EOF static __always_inline ${ret} -arch_atomic_long_${name}(${params}) +raw_atomic_long_${name}(${params}) { - ${retstmt}arch_${atomic}_${name}(${argscast}); + ${retstmt}raw_${atomic}_${name}(${argscast}); } EOF diff --git a/scripts/atomic/gen-atomic-raw.sh b/scripts/atomic/gen-atomic-raw.sh index ba8d136f30e4..c7e3c52b4927 100644 --- a/scripts/atomic/gen-atomic-raw.sh +++ b/scripts/atomic/gen-atomic-raw.sh @@ -63,10 +63,6 @@ grep '^[a-z]' "$1" | while read name meta args; do gen_proto "${meta}" "${name}" "atomic64" "s64" ${args} done -grep '^[a-z]' "$1" | while read name meta args; do - gen_proto "${meta}" "${name}" "atomic_long" "long" ${args} -done - for xchg in "xchg" "cmpxchg" "cmpxchg64" "cmpxchg128" "try_cmpxchg" "try_cmpxchg64" "try_cmpxchg128"; do for order in "" "_acquire" "_release" "_relaxed"; do gen_xchg "${xchg}" "${order}" |