From: Mathieu Desnoyers Date: Fri, 8 Apr 2022 18:33:20 +0000 (-0400) Subject: Fix: do not warn on unknown counter ioctl X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=43e623f93ffb9386165c2149705ee716ef88e3a5;p=lttng-modules.git Fix: do not warn on unknown counter ioctl It is perfectly valid for a newer lttng-tools to try to use an unknown ioctl and handle -ENOSYS. Signed-off-by: Mathieu Desnoyers Change-Id: Ia9f6472ca1196f983eee1327805b0ad69d028a98 --- diff --git a/src/lttng-abi.c b/src/lttng-abi.c index fa7eca6f..c3e67690 100644 --- a/src/lttng-abi.c +++ b/src/lttng-abi.c @@ -730,7 +730,6 @@ long lttng_counter_ioctl(struct file *file, unsigned int cmd, unsigned long arg) return lttng_kernel_counter_clear(counter, indexes); } default: - WARN_ON_ONCE(1); return -ENOSYS; } }