summaryrefslogtreecommitdiff
path: root/linux/include
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-10-04 00:03:32 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-10-04 00:03:32 -0300
commitcde50b7de8206bf0a32a2bedffea5f77cac0cc83 (patch)
tree4d7c8ea988eaeca317018dfef0031f7c66c6b470 /linux/include
parent7abb8b36755e703f7a0358231389d60c375ecc04 (diff)
downloadmediapointer-dvb-s2-cde50b7de8206bf0a32a2bedffea5f77cac0cc83.tar.gz
mediapointer-dvb-s2-cde50b7de8206bf0a32a2bedffea5f77cac0cc83.tar.bz2
Dev2: handle __must_check
From: Andrew Morton <akpm@osdl.org> 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> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/include')
-rw-r--r--linux/include/media/v4l2-dev.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/include/media/v4l2-dev.h b/linux/include/media/v4l2-dev.h
index 739800642..5136305c4 100644
--- a/linux/include/media/v4l2-dev.h
+++ b/linux/include/media/v4l2-dev.h
@@ -367,7 +367,7 @@ extern int video_usercopy(struct inode *inode, struct file *file,
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
#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)
{