make -C /lib/modules/6.5.5-porteus/build M=/root/opemu-linux-master modules make[1]: Entering directory '/usr/src/linux-6.5.5' CC [M] /root/opemu-linux-master/trap_hook.o /root/opemu-linux-master/trap_hook.c:59:23: error: field ‘ops’ has incomplete type 59 | struct ftrace_ops ops; | ^~~ In file included from ./include/linux/container_of.h:5, from ./include/linux/kernel.h:21, from ./include/linux/interrupt.h:6, from ./include/linux/trace_recursion.h:5, from ./include/linux/ftrace.h:10, from /root/opemu-linux-master/trap_hook.c:13: /root/opemu-linux-master/trap_hook.c: In function ‘fh_ftrace_thunk’: ././include/linux/compiler_types.h:338:27: error: expression in static assertion is not an integer 338 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/linux/build_bug.h:78:56: note: in definition of macro ‘__static_assert’ 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ ./include/linux/container_of.h:20:9: note: in expansion of macro ‘static_assert’ 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ ./include/linux/container_of.h:20:23: note: in expansion of macro ‘__same_type’ 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~ /root/opemu-linux-master/trap_hook.c:150:32: note: in expansion of macro ‘container_of’ 150 | struct ftrace_hook *hook = container_of(ops, struct ftrace_hook, ops); | ^~~~~~~~~~~~ /root/opemu-linux-master/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-master/trap_hook.c: In function ‘fh_install_hook’: /root/opemu-linux-master/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-master/trap_hook.c:181:23: note: each undeclared identifier is reported only once for each function it appears in /root/opemu-linux-master/trap_hook.c:182:23: error: ‘FTRACE_OPS_FL_RECURSION’ undeclared (first use in this function) 182 | | FTRACE_OPS_FL_RECURSION | ^~~~~~~~~~~~~~~~~~~~~~~ /root/opemu-linux-master/trap_hook.c:183:23: error: ‘FTRACE_OPS_FL_IPMODIFY’ undeclared (first use in this function) 183 | | FTRACE_OPS_FL_IPMODIFY; | ^~~~~~~~~~~~~~~~~~~~~~ make[3]: *** [scripts/Makefile.build:243: /root/opemu-linux-master/trap_hook.o] Error 1 make[2]: *** [/usr/src/linux-6.5.5/Makefile:2034: /root/opemu-linux-master] Error 2 make[1]: *** [Makefile:234: __sub-make] Error 2 make[1]: Leaving directory '/usr/src/linux-6.5.5' make: *** [Makefile:15: all] Error 2