From: Andrew Morton Date: Tue, 15 Aug 2006 05:43:19 +0000 (-0700) Subject: v4l-dev2: handle __must_check X-Git-Tag: v2.6.19-rc1~1078^2~8 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a6914ab7c95d471c23b42268aa8e1f55b3d2fdb;p=linux-2.6 v4l-dev2: handle __must_check We get hundreds of these: include/media/v4l2-dev.h:348: warning: ignoring return value of 'class_device_create_file', declared with attribute warn_unused_result Handle it, and propagate the __must_check back a level. Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/media/v4l2-dev.h b/include/media/v4l2-dev.h index 810462f8a3..bb495b7f46 100644 --- a/include/media/v4l2-dev.h +++ b/include/media/v4l2-dev.h @@ -341,7 +341,7 @@ extern int video_usercopy(struct inode *inode, struct file *file, extern struct video_device* video_devdata(struct file*); #define to_video_device(cd) container_of(cd, struct video_device, class_dev) -static inline int +static inline int __must_check video_device_create_file(struct video_device *vfd, struct class_device_attribute *attr) {