From a5529cf7f42a59e4c4b773c0c2bef38dc7565ec0 Mon Sep 17 00:00:00 2001 From: limerence Date: Mon, 27 Nov 2023 20:49:55 +0800 Subject: [PATCH] =?UTF-8?q?fixed=207fa3839=20from=20https://gitee.com/shi-?= =?UTF-8?q?tuan-hui/kernel=5Flinux=5Fcommon=5Fmodules/pulls/83=20=E5=88=A0?= =?UTF-8?q?=E9=99=A4xpm=E7=AE=A1=E6=8E=A732bit=E7=94=A8=E6=88=B7=E6=80=81?= =?UTF-8?q?=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: limerence --- xpm/core/xpm_misc_device.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/xpm/core/xpm_misc_device.c b/xpm/core/xpm_misc_device.c index b289375..7526ffa 100644 --- a/xpm/core/xpm_misc_device.c +++ b/xpm/core/xpm_misc_device.c @@ -110,6 +110,14 @@ static long xpm_ioctl(struct file *file, unsigned int cmd, unsigned long arg) return ret; } +#ifdef CONFIG_COMPAT +static long xpm_compat_ioctl(struct file *file, unsigned int cmd, + unsigned long arg) +{ + return 0; +} +#endif + static int xpm_open(struct inode *inode, struct file *file) { return 0; @@ -126,7 +134,7 @@ static const struct file_operations xpm_fops = { .release = xpm_release, .unlocked_ioctl = xpm_ioctl, #ifdef CONFIG_COMPAT - .compat_ioctl = xpm_ioctl, + .compat_ioctl = xpm_compat_ioctl, #endif }; -- Gitee