[SRU][F][PATCH 1/1] UBUNTU: SAUCE: selftests/seccomp: Fix s390x regs not defined issue
Luke Nowakowski-Krijger
luke.nowakowskikrijger at canonical.com
Thu Dec 16 21:51:53 UTC 2021
BugLink: https://bugs.launchpad.net/bugs/1896420
Fix build issue on s390x caused by previous patch
'UBUNTU: SAUCE: selftests/seccomp: fix "storage size of 'md' isn't
known" build issue' which caused an include to be ommited that was needed
on s390x.
To fix it we just include the needed asm/ptrace.h include directly.
Signed-off-by: Luke Nowakowski-Krijger <luke.nowakowskikrijger at canonical.com>
---
tools/testing/selftests/seccomp/seccomp_bpf.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/testing/selftests/seccomp/seccomp_bpf.c b/tools/testing/selftests/seccomp/seccomp_bpf.c
index 64f2b43bc59b..7fca1a15b155 100644
--- a/tools/testing/selftests/seccomp/seccomp_bpf.c
+++ b/tools/testing/selftests/seccomp/seccomp_bpf.c
@@ -44,6 +44,7 @@
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <linux/kcmp.h>
+#include <asm/ptrace.h>
#include <unistd.h>
#include <sys/syscall.h>
--
2.32.0
More information about the kernel-team
mailing list