From 2ef45da8a00ecf01c642a99de5a50e5670f33bce Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 28 Feb 2022 10:40:40 -0500 Subject: [PATCH] lttng_abi_create_event_notifier: add missing fallthrough Signed-off-by: Mathieu Desnoyers Change-Id: I8e7011f63ccce4db21b36fcd18eb78e95ca2f406 --- src/lttng-abi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lttng-abi.c b/src/lttng-abi.c index b94f34cb..2675414e 100644 --- a/src/lttng-abi.c +++ b/src/lttng-abi.c @@ -2310,6 +2310,7 @@ int lttng_abi_create_event_notifier(struct file *event_notifier_group_file, switch (event_notifier_param->event.instrumentation) { case LTTNG_KERNEL_ABI_TRACEPOINT: + lttng_fallthrough; case LTTNG_KERNEL_ABI_UPROBE: break; case LTTNG_KERNEL_ABI_KPROBE: @@ -2319,7 +2320,9 @@ int lttng_abi_create_event_notifier(struct file *event_notifier_group_file, break; case LTTNG_KERNEL_ABI_KRETPROBE: /* Placing an event notifier on kretprobe is not supported. */ + lttng_fallthrough; case LTTNG_KERNEL_ABI_FUNCTION: + lttng_fallthrough; case LTTNG_KERNEL_ABI_NOOP: default: ret = -EINVAL; -- 2.34.1