* [PATCH -next/mmotm] media/video/tuner: fix tuner_ioctl build error
[not found] <200812192254.mBJMsfia029162@imap1.linux-foundation.org>
@ 2008-12-20 0:36 ` Randy Dunlap
2008-12-20 0:45 ` [v4l-dvb-maintainer] " Hans Verkuil
0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2008-12-20 0:36 UTC (permalink / raw)
To: linux-kernel
Cc: Mauro Carvalho Chehab, v4l-dvb-maintainer, video4linux-list,
Andrew Morton
From: Randy Dunlap <randy.dunlap@oracle.com>
Fix drivers/media/video/tuner-core.c so that it will build when
CONFIG_VIDEO_ALLOW_V4L1=n:
drivers/media/video/tuner-core.c:1111: error: 'tuner_ioctl' undeclared here (not in a function)
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
cc: Mauro Carvalho Chehab <mchehab@infradead.org>
cc: v4l-dvb-maintainer@linuxtv.org
cc: video4linux-list@redhat.com
---
drivers/media/video/tuner-core.c | 5 +++++
1 file changed, 5 insertions(+)
--- mmotm-2008-1219-1438.orig/drivers/media/video/tuner-core.c
+++ mmotm-2008-1219-1438/drivers/media/video/tuner-core.c
@@ -919,6 +919,11 @@ static int tuner_ioctl(struct v4l2_subde
}
return -ENOIOCTLCMD;
}
+#else
+static int tuner_ioctl(struct v4l2_subdev *sd, int cmd, void *arg)
+{
+ return -ENOIOCTLCMD;
+}
#endif
static int tuner_s_config(struct v4l2_subdev *sd, const struct v4l2_priv_tun_config *cfg)
--
~Randy
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [v4l-dvb-maintainer] [PATCH -next/mmotm] media/video/tuner: fix tuner_ioctl build error
2008-12-20 0:36 ` [PATCH -next/mmotm] media/video/tuner: fix tuner_ioctl build error Randy Dunlap
@ 2008-12-20 0:45 ` Hans Verkuil
0 siblings, 0 replies; 2+ messages in thread
From: Hans Verkuil @ 2008-12-20 0:45 UTC (permalink / raw)
To: v4l-dvb-maintainer
Cc: Randy Dunlap, linux-kernel, video4linux-list, Andrew Morton,
Mauro Carvalho Chehab
On Saturday 20 December 2008 01:36:48 Randy Dunlap wrote:
> From: Randy Dunlap <randy.dunlap@oracle.com>
>
> Fix drivers/media/video/tuner-core.c so that it will build when
> CONFIG_VIDEO_ALLOW_V4L1=n:
>
> drivers/media/video/tuner-core.c:1111: error: 'tuner_ioctl' undeclared
> here (not in a function)
>
> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
> cc: Mauro Carvalho Chehab <mchehab@infradead.org>
> cc: v4l-dvb-maintainer@linuxtv.org
> cc: video4linux-list@redhat.com
> ---
> drivers/media/video/tuner-core.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> --- mmotm-2008-1219-1438.orig/drivers/media/video/tuner-core.c
> +++ mmotm-2008-1219-1438/drivers/media/video/tuner-core.c
> @@ -919,6 +919,11 @@ static int tuner_ioctl(struct v4l2_subde
> }
> return -ENOIOCTLCMD;
> }
> +#else
> +static int tuner_ioctl(struct v4l2_subdev *sd, int cmd, void *arg)
> +{
> + return -ENOIOCTLCMD;
> +}
> #endif
>
> static int tuner_s_config(struct v4l2_subdev *sd, const struct
> v4l2_priv_tun_config *cfg)
NAK. I've already made a better fix for this and asked Mauro to pull this
from my tree. The tuner_ioctl function pointer should have been under the
CONFIG_VIDEO_ALLOW_V4L1 #ifdef as well avoiding the need to make an empty
function.
Nevertheless, thanks for the effort!
Regards,
Hans
--
Hans Verkuil - video4linux developer - sponsored by TANDBERG
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-12-20 0:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200812192254.mBJMsfia029162@imap1.linux-foundation.org>
2008-12-20 0:36 ` [PATCH -next/mmotm] media/video/tuner: fix tuner_ioctl build error Randy Dunlap
2008-12-20 0:45 ` [v4l-dvb-maintainer] " Hans Verkuil
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox