syscall instrumentation: add missing forward declarations for old kernels
[lttng-modules.git] / src / lttng-syscalls.c
index 6ea9f13d5542a3160887768e63e3385ac5c80c5c..ceba4e065cc1c2629762167424ea741c15521b4f 100644 (file)
@@ -28,6 +28,7 @@
 #include <wrapper/file.h>
 #include <wrapper/rcu.h>
 #include <wrapper/syscall.h>
+#include <wrapper/limits.h>
 #include <lttng/events.h>
 #include <lttng/events-internal.h>
 #include <lttng/utils.h>
@@ -76,6 +77,10 @@ struct sel_arg_struct;
 struct mmap_arg_struct;
 struct file_handle;
 struct user_msghdr;
+struct __kernel_old_itimerval;
+struct open_how;
+struct mount_attr;
+struct futex_waitv;
 
 /*
  * Forward declaration for kernels >= 5.6
@@ -839,7 +844,7 @@ int lttng_event_enabler_create_syscall_events_if_missing(struct lttng_event_enab
 
        lttng_syscall_event_enabler_create_matching_events(syscall_event_enabler);
 
-       return ret;
+       return 0;
 }
 
 int lttng_syscalls_unregister_syscall_table(struct lttng_kernel_syscall_table *syscall_table)
@@ -974,7 +979,7 @@ int lttng_syscall_filter_enable_event(struct lttng_kernel_event_common *event)
        struct lttng_kernel_syscall_table *syscall_table = get_syscall_table_from_event(event);
        unsigned int syscall_id = event->priv->u.syscall.syscall_id;
        struct hlist_head *dispatch_list;
-       int ret;
+       int ret = 0;
 
        WARN_ON_ONCE(event->priv->instrumentation != LTTNG_KERNEL_ABI_SYSCALL);
 
This page took 0.023492 seconds and 4 git commands to generate.