From: Andrew Morton 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. Cc: Greg KH Signed-off-by: Andrew Morton --- include/media/v4l2-dev.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -puN include/media/v4l2-dev.h~v4l-dev2-handle-__must_check include/media/v4l2-dev.h --- a/include/media/v4l2-dev.h~v4l-dev2-handle-__must_check +++ a/include/media/v4l2-dev.h @@ -341,11 +341,11 @@ extern int video_usercopy(struct inode * extern struct video_device* video_devdata(struct file*); #define to_video_device(cd) container_of(cd, struct video_device, class_dev) -static inline void +static inline int __must_check video_device_create_file(struct video_device *vfd, struct class_device_attribute *attr) { - class_device_create_file(&vfd->class_dev, attr); + return class_device_create_file(&vfd->class_dev, attr); } static inline void video_device_remove_file(struct video_device *vfd, _