From f9dc1a784fb077ef72151c3ba48d13c36719dde5 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 13 Apr 2020 16:55:26 -0400 Subject: [PATCH] lttng-abi: remove compatibility code --- lttng-abi.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/lttng-abi.c b/lttng-abi.c index fb970a69..7723aec8 100644 --- a/lttng-abi.c +++ b/lttng-abi.c @@ -49,11 +49,7 @@ static struct proc_dir_entry *lttng_proc_dentry; -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)) static const struct proc_ops lttng_proc_ops; -#else -static const struct file_operations lttng_proc_ops; -#endif static const struct file_operations lttng_session_fops; static const struct file_operations lttng_channel_fops; @@ -394,22 +390,12 @@ long lttng_ioctl(struct file *file, unsigned int cmd, unsigned long arg) } } -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)) static const struct proc_ops lttng_proc_ops = { .proc_ioctl = lttng_ioctl, #ifdef CONFIG_COMPAT .proc_compat_ioctl = lttng_ioctl, #endif /* CONFIG_COMPAT */ }; -#else -static const struct file_operations lttng_proc_ops = { - .owner = THIS_MODULE, - .unlocked_ioctl = lttng_ioctl, -#ifdef CONFIG_COMPAT - .compat_ioctl = lttng_ioctl, -#endif /* CONFIG_COMPAT */ -}; -#endif static int lttng_abi_create_channel(struct file *session_file, -- 2.34.1