From: Hans Verkuil Date: Sat, 23 Aug 2008 09:38:11 +0000 (-0300) Subject: V4L/DVB (8785): v4l2: add __must_check to v4l2_dev.h X-Git-Tag: v2.6.28-rc1~601^2~242 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e138c592b50370621653fd962b2bc3f4e25dfe78;p=linux-2.6-omap-h63xx.git V4L/DVB (8785): v4l2: add __must_check to v4l2_dev.h Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/include/media/v4l2-dev.h b/include/media/v4l2-dev.h index 30855077be4..23df00919ae 100644 --- a/include/media/v4l2-dev.h +++ b/include/media/v4l2-dev.h @@ -83,14 +83,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