Commit 92ab7886119da6375a983713eedab444e32094f6
1 parent
902571aaa9
Exists in
master
and in
4 other branches
V4L/DVB (10110): v4l2-ioctl: Fix warnings when using .unlocked_ioctl = __video_ioctl2
This patch fixes this warning: drivers/media/video/gspca/gspca.c:1811: warning: initialization from incompatible pointer type The reason is that the returned argument should be a long, not an integer. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff
drivers/media/video/v4l2-ioctl.c
include/media/v4l2-ioctl.h
... | ... | @@ -297,7 +297,7 @@ |
297 | 297 | /* Standard handlers for V4L ioctl's */ |
298 | 298 | |
299 | 299 | /* This prototype is used on fops.unlocked_ioctl */ |
300 | -extern int __video_ioctl2(struct file *file, | |
300 | +extern long __video_ioctl2(struct file *file, | |
301 | 301 | unsigned int cmd, unsigned long arg); |
302 | 302 | |
303 | 303 | /* This prototype is used on fops.ioctl |