This is a note to let you know that I've just added the patch titled selftests/rseq: Fix warnings about #if checks of undefined tokens to the 5.15-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-fix-warnings-about-if-checks-of-undefined-tokens.patch and it can be found in the queue-5.15 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From d7ed99ade3e62b755584eea07b4e499e79240527 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxxxx> Date: Mon, 24 Jan 2022 12:12:49 -0500 Subject: selftests/rseq: Fix warnings about #if checks of undefined tokens From: Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxxxx> commit d7ed99ade3e62b755584eea07b4e499e79240527 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-12-mathieu.desnoyers@xxxxxxxxxxxx Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- tools/testing/selftests/rseq/param_test.c | 2 +- tools/testing/selftests/rseq/rseq-x86.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- a/tools/testing/selftests/rseq/param_test.c +++ b/tools/testing/selftests/rseq/param_test.c @@ -161,7 +161,7 @@ unsigned int yield_mod_cnt, nr_abort; " cbnz " INJECT_ASM_REG ", 222b\n" \ "333:\n" -#elif __PPC__ +#elif defined(__PPC__) #define RSEQ_INJECT_INPUT \ , [loop_cnt_1]"m"(loop_cnt[1]) \ --- a/tools/testing/selftests/rseq/rseq-x86.h +++ b/tools/testing/selftests/rseq/rseq-x86.h @@ -600,7 +600,7 @@ int rseq_cmpeqv_trymemcpy_storev_release #endif /* !RSEQ_SKIP_FASTPATH */ -#elif __i386__ +#elif defined(__i386__) #define rseq_smp_mb() \ __asm__ __volatile__ ("lock; addl $0,-128(%%esp)" ::: "memory", "cc") Patches currently in stable-queue which might be from mathieu.desnoyers@xxxxxxxxxxxx are queue-5.15/selftests-rseq-fix-work-around-asm-goto-compiler-bugs.patch queue-5.15/selftests-rseq-remove-arm-mips-asm-goto-compiler-work-around.patch queue-5.15/selftests-rseq-uplift-rseq-selftests-for-compatibility-with-glibc-2.35.patch queue-5.15/selftests-rseq-introduce-thread-pointer-getters.patch queue-5.15/selftests-rseq-introduce-own-copy-of-rseq-uapi-header.patch queue-5.15/selftests-rseq-introduce-rseq_get_abi-helper.patch queue-5.15/selftests-rseq-fix-ppc32-missing-instruction-selection-u-and-x-for-load-store.patch queue-5.15/selftests-rseq-change-type-of-rseq_offset-to-ptrdiff_t.patch queue-5.15/selftests-rseq-fix-ppc32-wrong-rseq_cs-32-bit-field-pointer-on-big-endian.patch queue-5.15/selftests-rseq-x86-32-use-gs-segment-selector-for-accessing-rseq-thread-area.patch queue-5.15/selftests-rseq-remove-volatile-from-__rseq_abi.patch queue-5.15/selftests-rseq-fix-warnings-about-if-checks-of-undefined-tokens.patch queue-5.15/selftests-rseq-fix-ppc32-offsets-by-using-long-rather-than-off_t.patch queue-5.15/selftests-rseq-remove-useless-assignment-to-cpu-variable.patch queue-5.15/selftests-rseq-x86-64-use-fs-segment-selector-for-accessing-rseq-thread-area.patch