Merge tag 'trace-v5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt...
[sfrench/cifs-2.6.git] / arch / s390 / include / asm / livepatch.h
index 818612b784cda2a77960461d1eb0c720c29f925d..d578a8c7667654162eb7dcf6d55bbdb82b64802f 100644 (file)
 #ifndef ASM_LIVEPATCH_H
 #define ASM_LIVEPATCH_H
 
+#include <linux/ftrace.h>
 #include <asm/ptrace.h>
 
-static inline void klp_arch_set_pc(struct pt_regs *regs, unsigned long ip)
+static inline void klp_arch_set_pc(struct ftrace_regs *fregs, unsigned long ip)
 {
+       struct pt_regs *regs = ftrace_get_regs(fregs);
+
        regs->psw.addr = ip;
 }