summaryrefslogtreecommitdiff
path: root/linux/include/media/v4l2-dev.h
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-08-23 11:38:11 +0200
committerHans Verkuil <hverkuil@xs4all.nl>2008-08-23 11:38:11 +0200
commit60c4198b31349257aac0d357d2026f7a10b8a4e8 (patch)
tree03a543998b770742881f0afd6f90786542426e1a /linux/include/media/v4l2-dev.h
parente8c1796efb04c2a4423fc2367b7ae13d3e71f488 (diff)
downloadmediapointer-dvb-s2-60c4198b31349257aac0d357d2026f7a10b8a4e8.tar.gz
mediapointer-dvb-s2-60c4198b31349257aac0d357d2026f7a10b8a4e8.tar.bz2
v4l2: add __must_check to v4l2_dev.h
From: Hans Verkuil <hverkuil@xs4all.nl> Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/include/media/v4l2-dev.h')
-rw-r--r--linux/include/media/v4l2-dev.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/include/media/v4l2-dev.h b/linux/include/media/v4l2-dev.h
index b6f00b933..67450f291 100644
--- a/linux/include/media/v4l2-dev.h
+++ b/linux/include/media/v4l2-dev.h
@@ -87,14 +87,14 @@ struct video_device
#define to_video_device(cd) container_of(cd, struct video_device, dev)
/* Version 2 functions */
-extern int video_register_device(struct video_device *vfd, int type, int nr);
-int video_register_device_index(struct video_device *vfd, int type, int nr,
+int __must_check video_register_device(struct video_device *vfd, int type, int nr);
+int __must_check video_register_device_index(struct video_device *vfd, int type, int nr,
int index);
void video_unregister_device(struct video_device *);
/* helper functions to alloc / release struct video_device, the
later can be used for video_device->release() */
-struct video_device *video_device_alloc(void);
+struct video_device * __must_check video_device_alloc(void);
/* this release function frees the vfd pointer */
void video_device_release(struct video_device *vfd);
/* this release function does nothing, use when the video_device is a