From 67937414624d3b3f65a0cc20237f0f580b395cdc Mon Sep 17 00:00:00 2001 From: Douglas Schilling Landgraf Date: Sun, 23 Mar 2008 16:25:00 -0300 Subject: [PATCH] add macro validation for v4l_compat_ioctl32. From: Douglas Schilling Landgraf Added macro CONFIG_COMPAT for v4l_compat_ioctl32. Signed-off-by: Douglas Schilling Landgraf --- linux/drivers/media/video/stv680.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'linux/drivers/media/video/stv680.c') diff --git a/linux/drivers/media/video/stv680.c b/linux/drivers/media/video/stv680.c index b1e40ec94..dfbb63b93 100644 --- a/linux/drivers/media/video/stv680.c +++ b/linux/drivers/media/video/stv680.c @@ -1401,7 +1401,9 @@ static const struct file_operations stv680_fops = { .read = stv680_read, .mmap = stv680_mmap, .ioctl = stv680_ioctl, +#ifdef CONFIG_COMPAT .compat_ioctl = v4l_compat_ioctl32, +#endif .llseek = no_llseek, }; static struct video_device stv680_template = { -- cgit v1.2.3