[<prev] [next>] [day] [month] [year] [list]
Message-ID: <fbeef6e6cb3f4c23baef8fb7a07462af@realsil.com.cn>
Date: Tue, 12 Jan 2021 06:27:23 +0000
From: 王杰清[jason_wang]
<jason_wang@...lsil.com.cn>
To: "linux-media@...r.kernel.org" <linux-media@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
CC: Mauro Carvalho Chehab <mchehab@...nel.org>,
"jason.root.w@...il.com" <jason.root.w@...il.com>
Subject: [PATCH] media:dvb-core: add .compat_ioctl define for dmx-dvr
From: Jason_wang <Jason_wang@...lsil.com.cn>
if CONFIG_COMPAT is enabled. dvr ioctl can not be
invoked by user. need .compat_ioctl to identify the
ioctl function.
Signed-off-by: jason_wang <mailto:jason_wang@...lsil.com.cn>
---
drivers/media/dvb-core/dmxdev.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/media/dvb-core/dmxdev.c b/drivers/media/dvb-core/dmxdev.c
index f14a872d1268..4a9e027de827 100644
--- a/drivers/media/dvb-core/dmxdev.c
+++ b/drivers/media/dvb-core/dmxdev.c
@@ -1393,6 +1393,7 @@ static const struct file_operations dvb_dvr_fops = {
.read = dvb_dvr_read,
.write = dvb_dvr_write,
.unlocked_ioctl = dvb_dvr_ioctl,
+ .compat_ioctl = dvb_dvr_ioctl,
.open = dvb_dvr_open,
.release = dvb_dvr_release,
.poll = dvb_dvr_poll,
--
2.25.1
Powered by blists - more mailing lists