hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/s390/include/asm/ptrace.h
....@@ -7,7 +7,7 @@
77 #ifndef _S390_PTRACE_H
88 #define _S390_PTRACE_H
99
10
-#include <linux/const.h>
10
+#include <linux/bits.h>
1111 #include <uapi/asm/ptrace.h>
1212
1313 #define PIF_SYSCALL 0 /* inside a system call */
....@@ -15,10 +15,10 @@
1515 #define PIF_SYSCALL_RESTART 2 /* restart the current system call */
1616 #define PIF_GUEST_FAULT 3 /* indicates program check in sie64a */
1717
18
-#define _PIF_SYSCALL _BITUL(PIF_SYSCALL)
19
-#define _PIF_PER_TRAP _BITUL(PIF_PER_TRAP)
20
-#define _PIF_SYSCALL_RESTART _BITUL(PIF_SYSCALL_RESTART)
21
-#define _PIF_GUEST_FAULT _BITUL(PIF_GUEST_FAULT)
18
+#define _PIF_SYSCALL BIT(PIF_SYSCALL)
19
+#define _PIF_PER_TRAP BIT(PIF_PER_TRAP)
20
+#define _PIF_SYSCALL_RESTART BIT(PIF_SYSCALL_RESTART)
21
+#define _PIF_GUEST_FAULT BIT(PIF_GUEST_FAULT)
2222
2323 #ifndef __ASSEMBLY__
2424
....@@ -184,5 +184,10 @@
184184 return regs->gprs[15];
185185 }
186186
187
+static inline void regs_set_return_value(struct pt_regs *regs, unsigned long rc)
188
+{
189
+ regs->gprs[2] = rc;
190
+}
191
+
187192 #endif /* __ASSEMBLY__ */
188193 #endif /* _S390_PTRACE_H */