From: Mathieu Desnoyers Date: Fri, 8 Apr 2022 18:33:20 +0000 (-0400) Subject: Fix: do not warn on unknown counter ioctl X-Git-Tag: v2.13.4~14 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ce27e65e4c1525db5734d92c1ddf4b754c8b40d3;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 864df6fc..f8004e9b 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; } }