Cleanup: Remove dead code in _lttng_kernel_event_create()
[lttng-modules.git] / src / lttng-events.c
index 2b4b1039803222cf0e383ad943c6dc991cc1dcb1..dab3a0e1e5e8359b55a82e9090d9c2f4dc3b66ed 100644 (file)
 #include <ringbuffer/frontend.h>
 #include <wrapper/time.h>
 
+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,16,0))
+#include <linux/stdarg.h>
+#else
+#include <stdarg.h>
+#endif
+
 #define METADATA_CACHE_DEFAULT_SIZE 4096
 
 static LIST_HEAD(sessions);
@@ -1264,10 +1270,6 @@ struct lttng_kernel_event_common *_lttng_kernel_event_create(struct lttng_event_
                WARN_ON_ONCE(!ret);
                break;
 
-       case LTTNG_KERNEL_ABI_FUNCTION:
-               lttng_fallthrough;
-       case LTTNG_KERNEL_ABI_NOOP:
-               lttng_fallthrough;
        default:
                WARN_ON_ONCE(1);
                ret = -EINVAL;
This page took 0.023929 seconds and 4 git commands to generate.