Skip to content

Commit

Permalink
v4l-dev2: handle __must_check
Browse files Browse the repository at this point in the history
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 <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Andrew Morton authored and Greg Kroah-Hartman committed Sep 26, 2006
1 parent cebc04b commit 8a6914a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/media/v4l2-dev.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 8a6914a

Please sign in to comment.