Commit 388acb47 authored by Heiko Carstens's avatar Heiko Carstens

s390/ptrace: add missing linux/const.h include

Adrian Reber reported the following CRIU build bug after
commit b8af5999 ("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: default avatarAdrian Reber <areber@redhat.com>
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2225745
Link: https://github.com/checkpoint-restore/criu/pull/2232Tested-by: default avatarAdrian Reber <areber@redhat.com>
Fixes: b8af5999 ("s390/ptrace: make all psw related defines also available for asm")
Link: https://lore.kernel.org/r/20230731183926.330932-1-hca@linux.ibm.comSigned-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
parent 0c02cc57
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
#ifndef _UAPI_S390_PTRACE_H #ifndef _UAPI_S390_PTRACE_H
#define _UAPI_S390_PTRACE_H #define _UAPI_S390_PTRACE_H
#include <linux/const.h>
/* /*
* Offsets in the user_regs_struct. They are used for the ptrace * Offsets in the user_regs_struct. They are used for the ptrace
* system call and in entry.S * system call and in entry.S
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment