Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

locking/atomic: scripts: remove leftover "${mult}"

We removed cmpxchg_double() and variants in commit:

b4cf83b2d1da40b2 ("arch: Remove cmpxchg_double")

Which removed the need for "${mult}" in the instrumentation logic.
Unfortunately we missed an instance of "${mult}".

There is no change to the generated header.
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-16-mark.rutland@arm.com

authored by

Mark Rutland and committed by
Peter Zijlstra
e40e5298 a083ecc9

+1 -1
+1 -1
scripts/atomic/gen-atomic-instrumented.sh
··· 118 118 EOF 119 119 [ -n "$kcsan_barrier" ] && printf "\t${kcsan_barrier}; \\\\\n" 120 120 cat <<EOF 121 - instrument_atomic_read_write(__ai_ptr, ${mult}sizeof(*__ai_ptr)); \\ 121 + instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \\ 122 122 arch_${xchg}${order}(__ai_ptr, __VA_ARGS__); \\ 123 123 }) 124 124 EOF