diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2012-07-31 19:41:34 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-31 21:42:39 -0400 |
commit | c2cddf991974a00aa7b40a21e829bc034b8199b6 (patch) | |
tree | 01122ab6e30e091d40ce31010662a9de93752522 /drivers/media | |
parent | c66af411189fdae3bcb301fae830f078fc205fca (diff) |
drivers/media/video/v4l2-ioctl.c: fix build
Fix zillions of these:
drivers/media/video/v4l2-ioctl.c:1848: error: unknown field 'func' specified in initializer
drivers/media/video/v4l2-ioctl.c:1848: warning: missing braces around initializer
drivers/media/video/v4l2-ioctl.c:1848: warning: (near initialization for 'v4l2_ioctls[0].<anonymous>')
drivers/media/video/v4l2-ioctl.c:1848: warning: initialization makes integer from pointer without a cast
drivers/media/video/v4l2-ioctl.c:1848: error: initializer element is not computable at load time
drivers/media/video/v4l2-ioctl.c:1848: error: (near initialization for 'v4l2_ioctls[0].<anonymous>.offset')
Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/v4l2-ioctl.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/media/video/v4l2-ioctl.c b/drivers/media/video/v4l2-ioctl.c index 70e0efb127a6..4b4059d64272 100644 --- a/drivers/media/video/v4l2-ioctl.c +++ b/drivers/media/video/v4l2-ioctl.c | |||
@@ -1831,7 +1831,9 @@ struct v4l2_ioctl_info { | |||
1831 | .ioctl = _ioctl, \ | 1831 | .ioctl = _ioctl, \ |
1832 | .flags = _flags | INFO_FL_STD, \ | 1832 | .flags = _flags | INFO_FL_STD, \ |
1833 | .name = #_ioctl, \ | 1833 | .name = #_ioctl, \ |
1834 | .offset = offsetof(struct v4l2_ioctl_ops, _vidioc), \ | 1834 | { \ |
1835 | .offset = offsetof(struct v4l2_ioctl_ops, _vidioc),\ | ||
1836 | }, \ | ||
1835 | .debug = _debug, \ | 1837 | .debug = _debug, \ |
1836 | } | 1838 | } |
1837 | 1839 | ||
@@ -1840,7 +1842,9 @@ struct v4l2_ioctl_info { | |||
1840 | .ioctl = _ioctl, \ | 1842 | .ioctl = _ioctl, \ |
1841 | .flags = _flags | INFO_FL_FUNC, \ | 1843 | .flags = _flags | INFO_FL_FUNC, \ |
1842 | .name = #_ioctl, \ | 1844 | .name = #_ioctl, \ |
1843 | .func = _func, \ | 1845 | { \ |
1846 | .func = _func, \ | ||
1847 | }, \ | ||
1844 | .debug = _debug, \ | 1848 | .debug = _debug, \ |
1845 | } | 1849 | } |
1846 | 1850 | ||