Skip to contentSkip to conversation

syscalls/ptrace04: Fix s390 build

PATCH In review Cyril Hrubis 1 participant 2 messages Nov 1, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 syscalls/ptrace04: Fix s390 build

s390 does not defined PTRACE_GETREGS

---
 testcases/kernel/syscalls/ptrace/ptrace04.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
testcases/kernel/syscalls/ptrace/ptrace04.c +1 -1
index af35fb3a2..0b25e982b 100644
@@ -49,7 +49,7 @@ int TST_TOTAL = 2;
 
 void compare_registers(unsigned char poison)
 {
-#ifdef HAVE_STRUCT_PTRACE_REGS
+#if defined(HAVE_STRUCT_PTRACE_REGS) && defined(PTRACE_GETREGS)
 	ptrace_regs _pt_regs;
 	size_t i;
 	long ret;
Signature · 5 lines
2.41.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
#1 lore raw

Hi!
The subject should have said [COMMITTED] since this fixes build failure and it's obvious minimal fix I just pushed the patch.

Signature · 5 lines
Cyril Hrubis
[email protected]

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp