mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [GIT PULL] Kselftest fixes update for Linux 6.3-rc5
@ 2023-03-28 16:20 Shuah Khan
  2023-03-28 20:33 ` pr-tracker-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Shuah Khan @ 2023-03-28 16:20 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: skhan, shuah, linux-kselftest, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1516 bytes --]

Hi Linus,

Please pull the following Kselftest fixes update for Linux 6.3-rc5.

This Kselftest fixes update for Linux 6.3-rc5 consists of one single
fix for sigaltstack test -Wuninitialized warning found when building
with clang.

diff is attached.

thanks,
-- Shuah

----------------------------------------------------------------
The following changes since commit 624c60f326c6e5a80b008e8a5c7feffe8c27dc72:

   selftests: fix LLVM build for i386 and x86_64 (2023-03-10 13:41:10 -0700)

are available in the Git repository at:

   git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest tags/linux-kselftest-fixes-6.3-rc5

for you to fetch changes up to 05107edc910135d27fe557267dc45be9630bf3dd:

   selftests: sigaltstack: fix -Wuninitialized (2023-03-20 17:28:31 -0600)

----------------------------------------------------------------
linux-kselftest-fixes-6.3-rc5

This Kselftest fixes update for Linux 6.3-rc5 consists of one single
fix for sigaltstack test -Wuninitialized warning found when building
with clang.

----------------------------------------------------------------
Nick Desaulniers (1):
       selftests: sigaltstack: fix -Wuninitialized

  .../selftests/sigaltstack/current_stack_pointer.h  | 23 ++++++++++++++++++++++
  tools/testing/selftests/sigaltstack/sas.c          |  7 +------
  2 files changed, 24 insertions(+), 6 deletions(-)
  create mode 100644 tools/testing/selftests/sigaltstack/current_stack_pointer.
----------------------------------------------------------------

[-- Attachment #2: linux-kselftest-fixes-6.3-rc5.diff --]
[-- Type: text/x-patch, Size: 1708 bytes --]

diff --git a/tools/testing/selftests/sigaltstack/current_stack_pointer.h b/tools/testing/selftests/sigaltstack/current_stack_pointer.h
new file mode 100644
index 000000000000..ea9bdf3a90b1
--- /dev/null
+++ b/tools/testing/selftests/sigaltstack/current_stack_pointer.h
@@ -0,0 +1,23 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+
+#if __alpha__
+register unsigned long sp asm("$30");
+#elif __arm__ || __aarch64__ || __csky__ || __m68k__ || __mips__ || __riscv
+register unsigned long sp asm("sp");
+#elif __i386__
+register unsigned long sp asm("esp");
+#elif __loongarch64
+register unsigned long sp asm("$sp");
+#elif __ppc__
+register unsigned long sp asm("r1");
+#elif __s390x__
+register unsigned long sp asm("%15");
+#elif __sh__
+register unsigned long sp asm("r15");
+#elif __x86_64__
+register unsigned long sp asm("rsp");
+#elif __XTENSA__
+register unsigned long sp asm("a1");
+#else
+#error "implement current_stack_pointer equivalent"
+#endif
diff --git a/tools/testing/selftests/sigaltstack/sas.c b/tools/testing/selftests/sigaltstack/sas.c
index c53b070755b6..98d37cb744fb 100644
--- a/tools/testing/selftests/sigaltstack/sas.c
+++ b/tools/testing/selftests/sigaltstack/sas.c
@@ -20,6 +20,7 @@
 #include <sys/auxv.h>
 
 #include "../kselftest.h"
+#include "current_stack_pointer.h"
 
 #ifndef SS_AUTODISARM
 #define SS_AUTODISARM  (1U << 31)
@@ -46,12 +47,6 @@ void my_usr1(int sig, siginfo_t *si, void *u)
 	stack_t stk;
 	struct stk_data *p;
 
-#if __s390x__
-	register unsigned long sp asm("%15");
-#else
-	register unsigned long sp asm("sp");
-#endif
-
 	if (sp < (unsigned long)sstack ||
 			sp >= (unsigned long)sstack + stack_size) {
 		ksft_exit_fail_msg("SP is not on sigaltstack\n");

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [GIT PULL] Kselftest fixes update for Linux 6.3-rc5
  2023-03-28 16:20 [GIT PULL] Kselftest fixes update for Linux 6.3-rc5 Shuah Khan
@ 2023-03-28 20:33 ` pr-tracker-bot
  0 siblings, 0 replies; 2+ messages in thread
From: pr-tracker-bot @ 2023-03-28 20:33 UTC (permalink / raw)
  To: Shuah Khan; +Cc: Linus Torvalds, skhan, shuah, linux-kselftest, linux-kernel

The pull request you sent on Tue, 28 Mar 2023 10:20:34 -0600:

> git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest tags/linux-kselftest-fixes-6.3-rc5

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/756c1a0593e7d26bd7dc6332e9490607cd106c4f

Thank you!

-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-03-28 20:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-28 16:20 [GIT PULL] Kselftest fixes update for Linux 6.3-rc5 Shuah Khan
2023-03-28 20:33 ` pr-tracker-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®