Skip to content

Commit 388acb4

Browse files
committed
s390/ptrace: add missing linux/const.h include
Adrian Reber reported the following CRIU build bug after commit b8af599 ("s390/ptrace: make all psw related defines also available for asm"): compel/arch/s390/src/lib/infect.c: In function 'arch_can_dump_task': compel/arch/s390/src/lib/infect.c:523:25: error: 'UL' undeclared (first use in this function) 523 | if (psw->mask & PSW_MASK_RI) { | ^~~~~~~~~~~ Add the missing linux/const.h include to fix this. Reported-by: Adrian Reber <areber@redhat.com> Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2225745 Link: checkpoint-restore/criu#2232 Tested-by: Adrian Reber <areber@redhat.com> Fixes: b8af599 ("s390/ptrace: make all psw related defines also available for asm") Link: https://lore.kernel.org/r/20230731183926.330932-1-hca@linux.ibm.com Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
1 parent 0c02cc5 commit 388acb4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/s390/include/uapi/asm/ptrace.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
#ifndef _UAPI_S390_PTRACE_H
99
#define _UAPI_S390_PTRACE_H
1010

11+
#include <linux/const.h>
12+
1113
/*
1214
* Offsets in the user_regs_struct. They are used for the ptrace
1315
* system call and in entry.S

0 commit comments

Comments
 (0)