All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans Verkuil <hverkuil@xs4all.nl>
To: video4linux-list@redhat.com
Subject: Re: [PATCH] Wrong returned value of __video_ioctl2()
Date: Tue, 23 Dec 2008 21:16:37 +0100	[thread overview]
Message-ID: <200812232116.38027.hverkuil@xs4all.nl> (raw)
In-Reply-To: <1230062078.1699.56.camel@localhost>

On Tuesday 23 December 2008 20:54:38 Jean-Francois Moine wrote:
> This patch suppresses the warning on setting the dev_fops unlocked_ioctl
> function to __video_ioctl2.
>
> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>

Hi Jean-Francois,

This patch clashes with an other pull request from me where the whole 
__video_ioctl2 function disappears.

But the prototype is indeed wrong and so I will go through my code and 
ensure that all the ioctl return types are long.

Thank you for bringing this to our attention and I'll make sure to fix these 
prototypes.

Regards,

	Hans

>
> diff -r c7b89ff3a3df linux/drivers/media/video/v4l2-ioctl.c
> --- a/linux/drivers/media/video/v4l2-ioctl.c	Tue Dec 23 19:57:17 2008
> +0100 +++ b/linux/drivers/media/video/v4l2-ioctl.c	Tue Dec 23 20:42:08
> 2008 +0100 @@ -1853,7 +1853,7 @@
>  	return ret;
>  }
>
> -int __video_ioctl2(struct file *file,
> +long __video_ioctl2(struct file *file,
>  	       unsigned int cmd, unsigned long arg)
>  {
>  	char	sbuf[128];
> diff -r c7b89ff3a3df linux/include/media/v4l2-ioctl.h
> --- a/linux/include/media/v4l2-ioctl.h	Tue Dec 23 19:57:17 2008 +0100
> +++ b/linux/include/media/v4l2-ioctl.h	Tue Dec 23 20:42:08 2008 +0100
> @@ -297,7 +297,7 @@
>  /* Standard handlers for V4L ioctl's */
>
>  /* This prototype is used on fops.unlocked_ioctl */
> -extern int __video_ioctl2(struct file *file,
> +extern long __video_ioctl2(struct file *file,
>  			unsigned int cmd, unsigned long arg);
>
>  /* This prototype is used on fops.ioctl



-- 
Hans Verkuil - video4linux developer - sponsored by TANDBERG

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

      reply	other threads:[~2008-12-23 20:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-23 19:54 [PATCH] Wrong returned value of __video_ioctl2() Jean-Francois Moine
2008-12-23 20:16 ` Hans Verkuil [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200812232116.38027.hverkuil@xs4all.nl \
    --to=hverkuil@xs4all.nl \
    --cc=video4linux-list@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.