summaryrefslogtreecommitdiffstats
path: root/include/media/v4l2-dev.h
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2006-08-14 22:43:19 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2006-09-25 21:08:39 -0700
commit8a6914ab7c95d471c23b42268aa8e1f55b3d2fdb (patch)
treea92155e860df4bd9d25e63958c3f3ffa59935cb9 /include/media/v4l2-dev.h
parentcebc04ba9aeb3a646cc746300421fc0e5aa4f253 (diff)
downloadkernel-crypto-8a6914ab7c95d471c23b42268aa8e1f55b3d2fdb.tar.gz
kernel-crypto-8a6914ab7c95d471c23b42268aa8e1f55b3d2fdb.tar.xz
kernel-crypto-8a6914ab7c95d471c23b42268aa8e1f55b3d2fdb.zip
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 <akpm@osdl.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/media/v4l2-dev.h')
-rw-r--r--include/media/v4l2-dev.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/media/v4l2-dev.h b/include/media/v4l2-dev.h
index 810462f8a37..bb495b7f468 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)
{