make -C /lib/modules/5.15.151-porteus/build M=/root/opemu-linux modules make[1]: Entering directory '/mnt/sdb1/linux-5.15.151' CC [M] /root/opemu-linux/trap_hook.o /root/opemu-linux/trap_hook.c:59:23: error: field ‘ops’ has incomplete type 59 | struct ftrace_ops ops; | ^~~ /root/opemu-linux/trap_hook.c:148:40: warning: ‘struct ftrace_regs’ declared inside parameter list will not be visible outside of this definition or declaration 148 | struct ftrace_ops *ops, struct ftrace_regs *regs) | ^~~~~~~~~~~ /root/opemu-linux/trap_hook.c: In function ‘fh_ftrace_thunk’: /root/opemu-linux/trap_hook.c:156:13: error: invalid use of undefined type ‘struct ftrace_regs’ 156 | regs->regs.ip = (unsigned long) hook->function; | ^~ /root/opemu-linux/trap_hook.c: In function ‘fh_install_hook’: /root/opemu-linux/trap_hook.c:181:23: error: ‘FTRACE_OPS_FL_SAVE_REGS’ undeclared (first use in this function) 181 | hook->ops.flags = FTRACE_OPS_FL_SAVE_REGS | ^~~~~~~~~~~~~~~~~~~~~~~ /root/opemu-linux/trap_hook.c:181:23: note: each undeclared identifier is reported only once for each function it appears in /root/opemu-linux/trap_hook.c:182:23: error: ‘FTRACE_OPS_FL_RECURSION’ undeclared (first use in this function) 182 | | FTRACE_OPS_FL_RECURSION | ^~~~~~~~~~~~~~~~~~~~~~~ /root/opemu-linux/trap_hook.c:183:23: error: ‘FTRACE_OPS_FL_IPMODIFY’ undeclared (first use in this function) 183 | | FTRACE_OPS_FL_IPMODIFY; | ^~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [scripts/Makefile.build:289: /root/opemu-linux/trap_hook.o] Error 1 make[1]: *** [Makefile:1907: /root/opemu-linux] Error 2 make[1]: Leaving directory '/mnt/sdb1/linux-5.15.151' make: *** [Makefile:15: all] Error 2