This is a note to let you know that I've just added the patch titled selftests/rseq: Remove useless assignment to cpu variable to the 5.4-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: selftests-rseq-remove-useless-assignment-to-cpu-variable.patch and it can be found in the queue-5.4 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 930378d056eac2c96407b02aafe4938d0ac9cc37 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxxxx> Date: Mon, 24 Jan 2022 12:12:41 -0500 Subject: selftests/rseq: Remove useless assignment to cpu variable From: Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxxxx> commit 930378d056eac2c96407b02aafe4938d0ac9cc37 upstream. Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxxxx> Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx> Link: https://lkml.kernel.org/r/20220124171253.22072-4-mathieu.desnoyers@xxxxxxxxxxxx Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- tools/testing/selftests/rseq/param_test.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- a/tools/testing/selftests/rseq/param_test.c +++ b/tools/testing/selftests/rseq/param_test.c @@ -366,9 +366,7 @@ void *test_percpu_spinlock_thread(void * abort(); reps = thread_data->reps; for (i = 0; i < reps; i++) { - int cpu = rseq_cpu_start(); - - cpu = rseq_this_cpu_lock(&data->lock); + int cpu = rseq_this_cpu_lock(&data->lock); data->c[cpu].count++; rseq_percpu_unlock(&data->lock, cpu); #ifndef BENCHMARK Patches currently in stable-queue which might be from mathieu.desnoyers@xxxxxxxxxxxx are queue-5.4/selftests-rseq-fix-work-around-asm-goto-compiler-bugs.patch queue-5.4/selftests-rseq-remove-arm-mips-asm-goto-compiler-work-around.patch queue-5.4/selftests-rseq-uplift-rseq-selftests-for-compatibility-with-glibc-2.35.patch queue-5.4/selftests-rseq-introduce-thread-pointer-getters.patch queue-5.4/selftests-rseq-introduce-own-copy-of-rseq-uapi-header.patch queue-5.4/rseq-selftests-x86_64-add-rseq_offset_deref_addv.patch queue-5.4/selftests-rseq-introduce-rseq_get_abi-helper.patch queue-5.4/selftests-rseq-fix-ppc32-missing-instruction-selection-u-and-x-for-load-store.patch queue-5.4/selftests-rseq-change-type-of-rseq_offset-to-ptrdiff_t.patch queue-5.4/selftests-rseq-fix-ppc32-wrong-rseq_cs-32-bit-field-pointer-on-big-endian.patch queue-5.4/selftests-rseq-x86-32-use-gs-segment-selector-for-accessing-rseq-thread-area.patch queue-5.4/selftests-rseq-remove-volatile-from-__rseq_abi.patch queue-5.4/selftests-rseq-fix-warnings-about-if-checks-of-undefined-tokens.patch queue-5.4/selftests-rseq-fix-ppc32-offsets-by-using-long-rather-than-off_t.patch queue-5.4/selftests-rseq-remove-useless-assignment-to-cpu-variable.patch queue-5.4/selftests-rseq-x86-64-use-fs-segment-selector-for-accessing-rseq-thread-area.patch