diff options
author | Douglas Schilling Landgraf <dougsland@gmail.com> | 2008-04-22 13:46:11 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-24 13:07:53 -0400 |
commit | 078ff7953448163d8779e489bd0119dd9a9b4732 (patch) | |
tree | b323e971c55d11e5f973a513c8b9dc20bd8f892a /drivers/media | |
parent | 03dea86de2243d5b3932604b799be26efeff010d (diff) |
V4L/DVB (7402): add macro validation for v4l_compat_ioctl32
Added macro CONFIG_COMPAT for v4l_compat_ioctl32.
Signed-off-by: Douglas Schilling Landgraf <dougsland@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media')
38 files changed, 76 insertions, 0 deletions
diff --git a/drivers/media/radio/dsbr100.c b/drivers/media/radio/dsbr100.c index 36c0e3651502..4e3f83e4e48f 100644 --- a/drivers/media/radio/dsbr100.c +++ b/drivers/media/radio/dsbr100.c | |||
@@ -438,7 +438,9 @@ static const struct file_operations usb_dsbr100_fops = { | |||
438 | .open = usb_dsbr100_open, | 438 | .open = usb_dsbr100_open, |
439 | .release = usb_dsbr100_close, | 439 | .release = usb_dsbr100_close, |
440 | .ioctl = video_ioctl2, | 440 | .ioctl = video_ioctl2, |
441 | #ifdef CONFIG_COMPAT | ||
441 | .compat_ioctl = v4l_compat_ioctl32, | 442 | .compat_ioctl = v4l_compat_ioctl32, |
443 | #endif | ||
442 | .llseek = no_llseek, | 444 | .llseek = no_llseek, |
443 | }; | 445 | }; |
444 | 446 | ||
diff --git a/drivers/media/radio/miropcm20-radio.c b/drivers/media/radio/miropcm20-radio.c index 3ae56fef8c92..09fe6f1cdf14 100644 --- a/drivers/media/radio/miropcm20-radio.c +++ b/drivers/media/radio/miropcm20-radio.c | |||
@@ -221,7 +221,9 @@ static const struct file_operations pcm20_fops = { | |||
221 | .open = video_exclusive_open, | 221 | .open = video_exclusive_open, |
222 | .release = video_exclusive_release, | 222 | .release = video_exclusive_release, |
223 | .ioctl = pcm20_ioctl, | 223 | .ioctl = pcm20_ioctl, |
224 | #ifdef CONFIG_COMPAT | ||
224 | .compat_ioctl = v4l_compat_ioctl32, | 225 | .compat_ioctl = v4l_compat_ioctl32, |
226 | #endif | ||
225 | .llseek = no_llseek, | 227 | .llseek = no_llseek, |
226 | }; | 228 | }; |
227 | 229 | ||
diff --git a/drivers/media/radio/radio-aimslab.c b/drivers/media/radio/radio-aimslab.c index c69bde39a233..1ec18ed1a733 100644 --- a/drivers/media/radio/radio-aimslab.c +++ b/drivers/media/radio/radio-aimslab.c | |||
@@ -382,7 +382,9 @@ static const struct file_operations rtrack_fops = { | |||
382 | .open = video_exclusive_open, | 382 | .open = video_exclusive_open, |
383 | .release = video_exclusive_release, | 383 | .release = video_exclusive_release, |
384 | .ioctl = video_ioctl2, | 384 | .ioctl = video_ioctl2, |
385 | #ifdef CONFIG_COMPAT | ||
385 | .compat_ioctl = v4l_compat_ioctl32, | 386 | .compat_ioctl = v4l_compat_ioctl32, |
387 | #endif | ||
386 | .llseek = no_llseek, | 388 | .llseek = no_llseek, |
387 | }; | 389 | }; |
388 | 390 | ||
diff --git a/drivers/media/radio/radio-aztech.c b/drivers/media/radio/radio-aztech.c index 9b1f7a99dac0..46cdb549eac7 100644 --- a/drivers/media/radio/radio-aztech.c +++ b/drivers/media/radio/radio-aztech.c | |||
@@ -346,7 +346,9 @@ static const struct file_operations aztech_fops = { | |||
346 | .open = video_exclusive_open, | 346 | .open = video_exclusive_open, |
347 | .release = video_exclusive_release, | 347 | .release = video_exclusive_release, |
348 | .ioctl = video_ioctl2, | 348 | .ioctl = video_ioctl2, |
349 | #ifdef CONFIG_COMPAT | ||
349 | .compat_ioctl = v4l_compat_ioctl32, | 350 | .compat_ioctl = v4l_compat_ioctl32, |
351 | #endif | ||
350 | .llseek = no_llseek, | 352 | .llseek = no_llseek, |
351 | }; | 353 | }; |
352 | 354 | ||
diff --git a/drivers/media/radio/radio-cadet.c b/drivers/media/radio/radio-cadet.c index 265c4ea95502..b14db53ea456 100644 --- a/drivers/media/radio/radio-cadet.c +++ b/drivers/media/radio/radio-cadet.c | |||
@@ -563,7 +563,9 @@ static const struct file_operations cadet_fops = { | |||
563 | .read = cadet_read, | 563 | .read = cadet_read, |
564 | .ioctl = video_ioctl2, | 564 | .ioctl = video_ioctl2, |
565 | .poll = cadet_poll, | 565 | .poll = cadet_poll, |
566 | #ifdef CONFIG_COMPAT | ||
566 | .compat_ioctl = v4l_compat_ioctl32, | 567 | .compat_ioctl = v4l_compat_ioctl32, |
568 | #endif | ||
567 | .llseek = no_llseek, | 569 | .llseek = no_llseek, |
568 | }; | 570 | }; |
569 | 571 | ||
diff --git a/drivers/media/radio/radio-gemtek-pci.c b/drivers/media/radio/radio-gemtek-pci.c index 99a323131333..de49be971480 100644 --- a/drivers/media/radio/radio-gemtek-pci.c +++ b/drivers/media/radio/radio-gemtek-pci.c | |||
@@ -368,7 +368,9 @@ static const struct file_operations gemtek_pci_fops = { | |||
368 | .open = video_exclusive_open, | 368 | .open = video_exclusive_open, |
369 | .release = video_exclusive_release, | 369 | .release = video_exclusive_release, |
370 | .ioctl = video_ioctl2, | 370 | .ioctl = video_ioctl2, |
371 | #ifdef CONFIG_COMPAT | ||
371 | .compat_ioctl = v4l_compat_ioctl32, | 372 | .compat_ioctl = v4l_compat_ioctl32, |
373 | #endif | ||
372 | .llseek = no_llseek, | 374 | .llseek = no_llseek, |
373 | }; | 375 | }; |
374 | 376 | ||
diff --git a/drivers/media/radio/radio-gemtek.c b/drivers/media/radio/radio-gemtek.c index 246422b49267..81f6aeb1cd11 100644 --- a/drivers/media/radio/radio-gemtek.c +++ b/drivers/media/radio/radio-gemtek.c | |||
@@ -397,7 +397,9 @@ static const struct file_operations gemtek_fops = { | |||
397 | .open = video_exclusive_open, | 397 | .open = video_exclusive_open, |
398 | .release = video_exclusive_release, | 398 | .release = video_exclusive_release, |
399 | .ioctl = video_ioctl2, | 399 | .ioctl = video_ioctl2, |
400 | #ifdef CONFIG_COMPAT | ||
400 | .compat_ioctl = v4l_compat_ioctl32, | 401 | .compat_ioctl = v4l_compat_ioctl32, |
402 | #endif | ||
401 | .llseek = no_llseek | 403 | .llseek = no_llseek |
402 | }; | 404 | }; |
403 | 405 | ||
diff --git a/drivers/media/radio/radio-maestro.c b/drivers/media/radio/radio-maestro.c index bc51f4d23a5a..bddd3c409aa9 100644 --- a/drivers/media/radio/radio-maestro.c +++ b/drivers/media/radio/radio-maestro.c | |||
@@ -100,7 +100,9 @@ static const struct file_operations maestro_fops = { | |||
100 | .open = video_exclusive_open, | 100 | .open = video_exclusive_open, |
101 | .release = video_exclusive_release, | 101 | .release = video_exclusive_release, |
102 | .ioctl = video_ioctl2, | 102 | .ioctl = video_ioctl2, |
103 | #ifdef CONFIG_COMPAT | ||
103 | .compat_ioctl = v4l_compat_ioctl32, | 104 | .compat_ioctl = v4l_compat_ioctl32, |
105 | #endif | ||
104 | .llseek = no_llseek, | 106 | .llseek = no_llseek, |
105 | }; | 107 | }; |
106 | 108 | ||
diff --git a/drivers/media/radio/radio-maxiradio.c b/drivers/media/radio/radio-maxiradio.c index 8e184cfc1c94..0133ecf3e040 100644 --- a/drivers/media/radio/radio-maxiradio.c +++ b/drivers/media/radio/radio-maxiradio.c | |||
@@ -103,7 +103,9 @@ static const struct file_operations maxiradio_fops = { | |||
103 | .open = video_exclusive_open, | 103 | .open = video_exclusive_open, |
104 | .release = video_exclusive_release, | 104 | .release = video_exclusive_release, |
105 | .ioctl = video_ioctl2, | 105 | .ioctl = video_ioctl2, |
106 | #ifdef CONFIG_COMPAT | ||
106 | .compat_ioctl = v4l_compat_ioctl32, | 107 | .compat_ioctl = v4l_compat_ioctl32, |
108 | #endif | ||
107 | .llseek = no_llseek, | 109 | .llseek = no_llseek, |
108 | }; | 110 | }; |
109 | 111 | ||
diff --git a/drivers/media/radio/radio-rtrack2.c b/drivers/media/radio/radio-rtrack2.c index 82aedfc95d4f..070802103dc3 100644 --- a/drivers/media/radio/radio-rtrack2.c +++ b/drivers/media/radio/radio-rtrack2.c | |||
@@ -288,7 +288,9 @@ static const struct file_operations rtrack2_fops = { | |||
288 | .open = video_exclusive_open, | 288 | .open = video_exclusive_open, |
289 | .release = video_exclusive_release, | 289 | .release = video_exclusive_release, |
290 | .ioctl = video_ioctl2, | 290 | .ioctl = video_ioctl2, |
291 | #ifdef CONFIG_COMPAT | ||
291 | .compat_ioctl = v4l_compat_ioctl32, | 292 | .compat_ioctl = v4l_compat_ioctl32, |
293 | #endif | ||
292 | .llseek = no_llseek, | 294 | .llseek = no_llseek, |
293 | }; | 295 | }; |
294 | 296 | ||
diff --git a/drivers/media/radio/radio-sf16fmi.c b/drivers/media/radio/radio-sf16fmi.c index 53e114857377..66e052fd3909 100644 --- a/drivers/media/radio/radio-sf16fmi.c +++ b/drivers/media/radio/radio-sf16fmi.c | |||
@@ -288,7 +288,9 @@ static const struct file_operations fmi_fops = { | |||
288 | .open = video_exclusive_open, | 288 | .open = video_exclusive_open, |
289 | .release = video_exclusive_release, | 289 | .release = video_exclusive_release, |
290 | .ioctl = video_ioctl2, | 290 | .ioctl = video_ioctl2, |
291 | #ifdef CONFIG_COMPAT | ||
291 | .compat_ioctl = v4l_compat_ioctl32, | 292 | .compat_ioctl = v4l_compat_ioctl32, |
293 | #endif | ||
292 | .llseek = no_llseek, | 294 | .llseek = no_llseek, |
293 | }; | 295 | }; |
294 | 296 | ||
diff --git a/drivers/media/radio/radio-sf16fmr2.c b/drivers/media/radio/radio-sf16fmr2.c index 7bf7d534c042..b0ccf7cb5952 100644 --- a/drivers/media/radio/radio-sf16fmr2.c +++ b/drivers/media/radio/radio-sf16fmr2.c | |||
@@ -404,7 +404,9 @@ static const struct file_operations fmr2_fops = { | |||
404 | .open = video_exclusive_open, | 404 | .open = video_exclusive_open, |
405 | .release = video_exclusive_release, | 405 | .release = video_exclusive_release, |
406 | .ioctl = video_ioctl2, | 406 | .ioctl = video_ioctl2, |
407 | #ifdef CONFIG_COMPAT | ||
407 | .compat_ioctl = v4l_compat_ioctl32, | 408 | .compat_ioctl = v4l_compat_ioctl32, |
409 | #endif | ||
408 | .llseek = no_llseek, | 410 | .llseek = no_llseek, |
409 | }; | 411 | }; |
410 | 412 | ||
diff --git a/drivers/media/radio/radio-si470x.c b/drivers/media/radio/radio-si470x.c index 4ad88ee616fd..77354ca6e8e9 100644 --- a/drivers/media/radio/radio-si470x.c +++ b/drivers/media/radio/radio-si470x.c | |||
@@ -1051,7 +1051,9 @@ static const struct file_operations si470x_fops = { | |||
1051 | .read = si470x_fops_read, | 1051 | .read = si470x_fops_read, |
1052 | .poll = si470x_fops_poll, | 1052 | .poll = si470x_fops_poll, |
1053 | .ioctl = video_ioctl2, | 1053 | .ioctl = video_ioctl2, |
1054 | #ifdef CONFIG_COMPAT | ||
1054 | .compat_ioctl = v4l_compat_ioctl32, | 1055 | .compat_ioctl = v4l_compat_ioctl32, |
1056 | #endif | ||
1055 | .open = si470x_fops_open, | 1057 | .open = si470x_fops_open, |
1056 | .release = si470x_fops_release, | 1058 | .release = si470x_fops_release, |
1057 | }; | 1059 | }; |
diff --git a/drivers/media/radio/radio-terratec.c b/drivers/media/radio/radio-terratec.c index 535ffe8c8102..acc32080e9bd 100644 --- a/drivers/media/radio/radio-terratec.c +++ b/drivers/media/radio/radio-terratec.c | |||
@@ -360,7 +360,9 @@ static const struct file_operations terratec_fops = { | |||
360 | .open = video_exclusive_open, | 360 | .open = video_exclusive_open, |
361 | .release = video_exclusive_release, | 361 | .release = video_exclusive_release, |
362 | .ioctl = video_ioctl2, | 362 | .ioctl = video_ioctl2, |
363 | #ifdef CONFIG_COMPAT | ||
363 | .compat_ioctl = v4l_compat_ioctl32, | 364 | .compat_ioctl = v4l_compat_ioctl32, |
365 | #endif | ||
364 | .llseek = no_llseek, | 366 | .llseek = no_llseek, |
365 | }; | 367 | }; |
366 | 368 | ||
diff --git a/drivers/media/radio/radio-trust.c b/drivers/media/radio/radio-trust.c index c11981fed827..4ebdfbadeb9c 100644 --- a/drivers/media/radio/radio-trust.c +++ b/drivers/media/radio/radio-trust.c | |||
@@ -340,7 +340,9 @@ static const struct file_operations trust_fops = { | |||
340 | .open = video_exclusive_open, | 340 | .open = video_exclusive_open, |
341 | .release = video_exclusive_release, | 341 | .release = video_exclusive_release, |
342 | .ioctl = video_ioctl2, | 342 | .ioctl = video_ioctl2, |
343 | #ifdef CONFIG_COMPAT | ||
343 | .compat_ioctl = v4l_compat_ioctl32, | 344 | .compat_ioctl = v4l_compat_ioctl32, |
345 | #endif | ||
344 | .llseek = no_llseek, | 346 | .llseek = no_llseek, |
345 | }; | 347 | }; |
346 | 348 | ||
diff --git a/drivers/media/radio/radio-typhoon.c b/drivers/media/radio/radio-typhoon.c index 02e3a2f05eee..8b9888337bd1 100644 --- a/drivers/media/radio/radio-typhoon.c +++ b/drivers/media/radio/radio-typhoon.c | |||
@@ -340,7 +340,9 @@ static const struct file_operations typhoon_fops = { | |||
340 | .open = video_exclusive_open, | 340 | .open = video_exclusive_open, |
341 | .release = video_exclusive_release, | 341 | .release = video_exclusive_release, |
342 | .ioctl = video_ioctl2, | 342 | .ioctl = video_ioctl2, |
343 | #ifdef CONFIG_COMPAT | ||
343 | .compat_ioctl = v4l_compat_ioctl32, | 344 | .compat_ioctl = v4l_compat_ioctl32, |
345 | #endif | ||
344 | .llseek = no_llseek, | 346 | .llseek = no_llseek, |
345 | }; | 347 | }; |
346 | 348 | ||
diff --git a/drivers/media/radio/radio-zoltrix.c b/drivers/media/radio/radio-zoltrix.c index 203f4373eeb8..43773c56c62f 100644 --- a/drivers/media/radio/radio-zoltrix.c +++ b/drivers/media/radio/radio-zoltrix.c | |||
@@ -401,7 +401,9 @@ static const struct file_operations zoltrix_fops = | |||
401 | .open = video_exclusive_open, | 401 | .open = video_exclusive_open, |
402 | .release = video_exclusive_release, | 402 | .release = video_exclusive_release, |
403 | .ioctl = video_ioctl2, | 403 | .ioctl = video_ioctl2, |
404 | #ifdef CONFIG_COMPAT | ||
404 | .compat_ioctl = v4l_compat_ioctl32, | 405 | .compat_ioctl = v4l_compat_ioctl32, |
406 | #endif | ||
405 | .llseek = no_llseek, | 407 | .llseek = no_llseek, |
406 | }; | 408 | }; |
407 | 409 | ||
diff --git a/drivers/media/video/arv.c b/drivers/media/video/arv.c index e4d891b29f63..8c7d1958856b 100644 --- a/drivers/media/video/arv.c +++ b/drivers/media/video/arv.c | |||
@@ -747,7 +747,9 @@ static const struct file_operations ar_fops = { | |||
747 | .release = video_exclusive_release, | 747 | .release = video_exclusive_release, |
748 | .read = ar_read, | 748 | .read = ar_read, |
749 | .ioctl = ar_ioctl, | 749 | .ioctl = ar_ioctl, |
750 | #ifdef CONFIG_COMPAT | ||
750 | .compat_ioctl = v4l_compat_ioctl32, | 751 | .compat_ioctl = v4l_compat_ioctl32, |
752 | #endif | ||
751 | .llseek = no_llseek, | 753 | .llseek = no_llseek, |
752 | }; | 754 | }; |
753 | 755 | ||
diff --git a/drivers/media/video/bw-qcam.c b/drivers/media/video/bw-qcam.c index 40a8e92a01b9..b364adaae78d 100644 --- a/drivers/media/video/bw-qcam.c +++ b/drivers/media/video/bw-qcam.c | |||
@@ -898,7 +898,9 @@ static const struct file_operations qcam_fops = { | |||
898 | .open = video_exclusive_open, | 898 | .open = video_exclusive_open, |
899 | .release = video_exclusive_release, | 899 | .release = video_exclusive_release, |
900 | .ioctl = qcam_ioctl, | 900 | .ioctl = qcam_ioctl, |
901 | #ifdef CONFIG_COMPAT | ||
901 | .compat_ioctl = v4l_compat_ioctl32, | 902 | .compat_ioctl = v4l_compat_ioctl32, |
903 | #endif | ||
902 | .read = qcam_read, | 904 | .read = qcam_read, |
903 | .llseek = no_llseek, | 905 | .llseek = no_llseek, |
904 | }; | 906 | }; |
diff --git a/drivers/media/video/c-qcam.c b/drivers/media/video/c-qcam.c index d4d5adfb0351..2c85ced61150 100644 --- a/drivers/media/video/c-qcam.c +++ b/drivers/media/video/c-qcam.c | |||
@@ -689,7 +689,9 @@ static const struct file_operations qcam_fops = { | |||
689 | .open = video_exclusive_open, | 689 | .open = video_exclusive_open, |
690 | .release = video_exclusive_release, | 690 | .release = video_exclusive_release, |
691 | .ioctl = qcam_ioctl, | 691 | .ioctl = qcam_ioctl, |
692 | #ifdef CONFIG_COMPAT | ||
692 | .compat_ioctl = v4l_compat_ioctl32, | 693 | .compat_ioctl = v4l_compat_ioctl32, |
694 | #endif | ||
693 | .read = qcam_read, | 695 | .read = qcam_read, |
694 | .llseek = no_llseek, | 696 | .llseek = no_llseek, |
695 | }; | 697 | }; |
diff --git a/drivers/media/video/cpia.c b/drivers/media/video/cpia.c index 7c630f5ee725..2a81376ef503 100644 --- a/drivers/media/video/cpia.c +++ b/drivers/media/video/cpia.c | |||
@@ -3792,7 +3792,9 @@ static const struct file_operations cpia_fops = { | |||
3792 | .read = cpia_read, | 3792 | .read = cpia_read, |
3793 | .mmap = cpia_mmap, | 3793 | .mmap = cpia_mmap, |
3794 | .ioctl = cpia_ioctl, | 3794 | .ioctl = cpia_ioctl, |
3795 | #ifdef CONFIG_COMPAT | ||
3795 | .compat_ioctl = v4l_compat_ioctl32, | 3796 | .compat_ioctl = v4l_compat_ioctl32, |
3797 | #endif | ||
3796 | .llseek = no_llseek, | 3798 | .llseek = no_llseek, |
3797 | }; | 3799 | }; |
3798 | 3800 | ||
diff --git a/drivers/media/video/cpia2/cpia2_v4l.c b/drivers/media/video/cpia2/cpia2_v4l.c index e378abec806d..7ce2789fa976 100644 --- a/drivers/media/video/cpia2/cpia2_v4l.c +++ b/drivers/media/video/cpia2/cpia2_v4l.c | |||
@@ -1927,7 +1927,9 @@ static const struct file_operations fops_template = { | |||
1927 | .poll = cpia2_v4l_poll, | 1927 | .poll = cpia2_v4l_poll, |
1928 | .ioctl = cpia2_ioctl, | 1928 | .ioctl = cpia2_ioctl, |
1929 | .llseek = no_llseek, | 1929 | .llseek = no_llseek, |
1930 | #ifdef CONFIG_COMPAT | ||
1930 | .compat_ioctl = v4l_compat_ioctl32, | 1931 | .compat_ioctl = v4l_compat_ioctl32, |
1932 | #endif | ||
1931 | .mmap = cpia2_mmap, | 1933 | .mmap = cpia2_mmap, |
1932 | }; | 1934 | }; |
1933 | 1935 | ||
diff --git a/drivers/media/video/et61x251/et61x251_core.c b/drivers/media/video/et61x251/et61x251_core.c index 32ebb71097b5..5e749c528a62 100644 --- a/drivers/media/video/et61x251/et61x251_core.c +++ b/drivers/media/video/et61x251/et61x251_core.c | |||
@@ -2523,7 +2523,9 @@ static const struct file_operations et61x251_fops = { | |||
2523 | .open = et61x251_open, | 2523 | .open = et61x251_open, |
2524 | .release = et61x251_release, | 2524 | .release = et61x251_release, |
2525 | .ioctl = et61x251_ioctl, | 2525 | .ioctl = et61x251_ioctl, |
2526 | #ifdef CONFIG_COMPAT | ||
2526 | .compat_ioctl = v4l_compat_ioctl32, | 2527 | .compat_ioctl = v4l_compat_ioctl32, |
2528 | #endif | ||
2527 | .read = et61x251_read, | 2529 | .read = et61x251_read, |
2528 | .poll = et61x251_poll, | 2530 | .poll = et61x251_poll, |
2529 | .mmap = et61x251_mmap, | 2531 | .mmap = et61x251_mmap, |
diff --git a/drivers/media/video/meye.c b/drivers/media/video/meye.c index caa9a7ac6184..61c980193c10 100644 --- a/drivers/media/video/meye.c +++ b/drivers/media/video/meye.c | |||
@@ -1761,7 +1761,9 @@ static const struct file_operations meye_fops = { | |||
1761 | .release = meye_release, | 1761 | .release = meye_release, |
1762 | .mmap = meye_mmap, | 1762 | .mmap = meye_mmap, |
1763 | .ioctl = meye_ioctl, | 1763 | .ioctl = meye_ioctl, |
1764 | #ifdef CONFIG_COMPAT | ||
1764 | .compat_ioctl = v4l_compat_ioctl32, | 1765 | .compat_ioctl = v4l_compat_ioctl32, |
1766 | #endif | ||
1765 | .poll = meye_poll, | 1767 | .poll = meye_poll, |
1766 | .llseek = no_llseek, | 1768 | .llseek = no_llseek, |
1767 | }; | 1769 | }; |
diff --git a/drivers/media/video/ov511.c b/drivers/media/video/ov511.c index 6590058e8ff0..48ee2d892396 100644 --- a/drivers/media/video/ov511.c +++ b/drivers/media/video/ov511.c | |||
@@ -4659,7 +4659,9 @@ static const struct file_operations ov511_fops = { | |||
4659 | .read = ov51x_v4l1_read, | 4659 | .read = ov51x_v4l1_read, |
4660 | .mmap = ov51x_v4l1_mmap, | 4660 | .mmap = ov51x_v4l1_mmap, |
4661 | .ioctl = ov51x_v4l1_ioctl, | 4661 | .ioctl = ov51x_v4l1_ioctl, |
4662 | #ifdef CONFIG_COMPAT | ||
4662 | .compat_ioctl = v4l_compat_ioctl32, | 4663 | .compat_ioctl = v4l_compat_ioctl32, |
4664 | #endif | ||
4663 | .llseek = no_llseek, | 4665 | .llseek = no_llseek, |
4664 | }; | 4666 | }; |
4665 | 4667 | ||
diff --git a/drivers/media/video/pms.c b/drivers/media/video/pms.c index 4a6c5723f7cc..51b1461d8fb6 100644 --- a/drivers/media/video/pms.c +++ b/drivers/media/video/pms.c | |||
@@ -885,7 +885,9 @@ static const struct file_operations pms_fops = { | |||
885 | .open = video_exclusive_open, | 885 | .open = video_exclusive_open, |
886 | .release = video_exclusive_release, | 886 | .release = video_exclusive_release, |
887 | .ioctl = pms_ioctl, | 887 | .ioctl = pms_ioctl, |
888 | #ifdef CONFIG_COMPAT | ||
888 | .compat_ioctl = v4l_compat_ioctl32, | 889 | .compat_ioctl = v4l_compat_ioctl32, |
890 | #endif | ||
889 | .read = pms_read, | 891 | .read = pms_read, |
890 | .llseek = no_llseek, | 892 | .llseek = no_llseek, |
891 | }; | 893 | }; |
diff --git a/drivers/media/video/pwc/pwc-if.c b/drivers/media/video/pwc/pwc-if.c index b6240a1a606f..d2941c5656ca 100644 --- a/drivers/media/video/pwc/pwc-if.c +++ b/drivers/media/video/pwc/pwc-if.c | |||
@@ -159,7 +159,9 @@ static const struct file_operations pwc_fops = { | |||
159 | .poll = pwc_video_poll, | 159 | .poll = pwc_video_poll, |
160 | .mmap = pwc_video_mmap, | 160 | .mmap = pwc_video_mmap, |
161 | .ioctl = pwc_video_ioctl, | 161 | .ioctl = pwc_video_ioctl, |
162 | #ifdef CONFIG_COMPAT | ||
162 | .compat_ioctl = v4l_compat_ioctl32, | 163 | .compat_ioctl = v4l_compat_ioctl32, |
164 | #endif | ||
163 | .llseek = no_llseek, | 165 | .llseek = no_llseek, |
164 | }; | 166 | }; |
165 | static struct video_device pwc_template = { | 167 | static struct video_device pwc_template = { |
diff --git a/drivers/media/video/saa5249.c b/drivers/media/video/saa5249.c index f55d6e85f20f..ec8c65dc8408 100644 --- a/drivers/media/video/saa5249.c +++ b/drivers/media/video/saa5249.c | |||
@@ -701,7 +701,9 @@ static const struct file_operations saa_fops = { | |||
701 | .open = saa5249_open, | 701 | .open = saa5249_open, |
702 | .release = saa5249_release, | 702 | .release = saa5249_release, |
703 | .ioctl = saa5249_ioctl, | 703 | .ioctl = saa5249_ioctl, |
704 | #ifdef CONFIG_COMPAT | ||
704 | .compat_ioctl = v4l_compat_ioctl32, | 705 | .compat_ioctl = v4l_compat_ioctl32, |
706 | #endif | ||
705 | .llseek = no_llseek, | 707 | .llseek = no_llseek, |
706 | }; | 708 | }; |
707 | 709 | ||
diff --git a/drivers/media/video/se401.c b/drivers/media/video/se401.c index f17a539857d4..7b8cd30437c3 100644 --- a/drivers/media/video/se401.c +++ b/drivers/media/video/se401.c | |||
@@ -1224,7 +1224,9 @@ static const struct file_operations se401_fops = { | |||
1224 | .read = se401_read, | 1224 | .read = se401_read, |
1225 | .mmap = se401_mmap, | 1225 | .mmap = se401_mmap, |
1226 | .ioctl = se401_ioctl, | 1226 | .ioctl = se401_ioctl, |
1227 | #ifdef CONFIG_COMPAT | ||
1227 | .compat_ioctl = v4l_compat_ioctl32, | 1228 | .compat_ioctl = v4l_compat_ioctl32, |
1229 | #endif | ||
1228 | .llseek = no_llseek, | 1230 | .llseek = no_llseek, |
1229 | }; | 1231 | }; |
1230 | static struct video_device se401_template = { | 1232 | static struct video_device se401_template = { |
diff --git a/drivers/media/video/sn9c102/sn9c102_core.c b/drivers/media/video/sn9c102/sn9c102_core.c index 94f393eebd51..898ae5f578cb 100644 --- a/drivers/media/video/sn9c102/sn9c102_core.c +++ b/drivers/media/video/sn9c102/sn9c102_core.c | |||
@@ -3224,7 +3224,9 @@ static const struct file_operations sn9c102_fops = { | |||
3224 | .open = sn9c102_open, | 3224 | .open = sn9c102_open, |
3225 | .release = sn9c102_release, | 3225 | .release = sn9c102_release, |
3226 | .ioctl = sn9c102_ioctl, | 3226 | .ioctl = sn9c102_ioctl, |
3227 | #ifdef CONFIG_COMPAT | ||
3227 | .compat_ioctl = v4l_compat_ioctl32, | 3228 | .compat_ioctl = v4l_compat_ioctl32, |
3229 | #endif | ||
3228 | .read = sn9c102_read, | 3230 | .read = sn9c102_read, |
3229 | .poll = sn9c102_poll, | 3231 | .poll = sn9c102_poll, |
3230 | .mmap = sn9c102_mmap, | 3232 | .mmap = sn9c102_mmap, |
diff --git a/drivers/media/video/stradis.c b/drivers/media/video/stradis.c index 3118dd322b24..c109511f21ea 100644 --- a/drivers/media/video/stradis.c +++ b/drivers/media/video/stradis.c | |||
@@ -1906,7 +1906,9 @@ static const struct file_operations saa_fops = { | |||
1906 | .open = saa_open, | 1906 | .open = saa_open, |
1907 | .release = saa_release, | 1907 | .release = saa_release, |
1908 | .ioctl = saa_ioctl, | 1908 | .ioctl = saa_ioctl, |
1909 | #ifdef CONFIG_COMPAT | ||
1909 | .compat_ioctl = v4l_compat_ioctl32, | 1910 | .compat_ioctl = v4l_compat_ioctl32, |
1911 | #endif | ||
1910 | .read = saa_read, | 1912 | .read = saa_read, |
1911 | .llseek = no_llseek, | 1913 | .llseek = no_llseek, |
1912 | .write = saa_write, | 1914 | .write = saa_write, |
diff --git a/drivers/media/video/stv680.c b/drivers/media/video/stv680.c index 1542797c048f..78730294454e 100644 --- a/drivers/media/video/stv680.c +++ b/drivers/media/video/stv680.c | |||
@@ -1394,7 +1394,9 @@ static const struct file_operations stv680_fops = { | |||
1394 | .read = stv680_read, | 1394 | .read = stv680_read, |
1395 | .mmap = stv680_mmap, | 1395 | .mmap = stv680_mmap, |
1396 | .ioctl = stv680_ioctl, | 1396 | .ioctl = stv680_ioctl, |
1397 | #ifdef CONFIG_COMPAT | ||
1397 | .compat_ioctl = v4l_compat_ioctl32, | 1398 | .compat_ioctl = v4l_compat_ioctl32, |
1399 | #endif | ||
1398 | .llseek = no_llseek, | 1400 | .llseek = no_llseek, |
1399 | }; | 1401 | }; |
1400 | static struct video_device stv680_template = { | 1402 | static struct video_device stv680_template = { |
diff --git a/drivers/media/video/usbvideo/usbvideo.c b/drivers/media/video/usbvideo/usbvideo.c index 7f3cdc9a0624..300188097de6 100644 --- a/drivers/media/video/usbvideo/usbvideo.c +++ b/drivers/media/video/usbvideo/usbvideo.c | |||
@@ -946,7 +946,9 @@ static const struct file_operations usbvideo_fops = { | |||
946 | .read = usbvideo_v4l_read, | 946 | .read = usbvideo_v4l_read, |
947 | .mmap = usbvideo_v4l_mmap, | 947 | .mmap = usbvideo_v4l_mmap, |
948 | .ioctl = usbvideo_v4l_ioctl, | 948 | .ioctl = usbvideo_v4l_ioctl, |
949 | #ifdef CONFIG_COMPAT | ||
949 | .compat_ioctl = v4l_compat_ioctl32, | 950 | .compat_ioctl = v4l_compat_ioctl32, |
951 | #endif | ||
950 | .llseek = no_llseek, | 952 | .llseek = no_llseek, |
951 | }; | 953 | }; |
952 | static const struct video_device usbvideo_template = { | 954 | static const struct video_device usbvideo_template = { |
diff --git a/drivers/media/video/usbvideo/vicam.c b/drivers/media/video/usbvideo/vicam.c index da1ba0211108..4d4795ae3bc7 100644 --- a/drivers/media/video/usbvideo/vicam.c +++ b/drivers/media/video/usbvideo/vicam.c | |||
@@ -1066,7 +1066,9 @@ static const struct file_operations vicam_fops = { | |||
1066 | .read = vicam_read, | 1066 | .read = vicam_read, |
1067 | .mmap = vicam_mmap, | 1067 | .mmap = vicam_mmap, |
1068 | .ioctl = vicam_ioctl, | 1068 | .ioctl = vicam_ioctl, |
1069 | #ifdef CONFIG_COMPAT | ||
1069 | .compat_ioctl = v4l_compat_ioctl32, | 1070 | .compat_ioctl = v4l_compat_ioctl32, |
1071 | #endif | ||
1070 | .llseek = no_llseek, | 1072 | .llseek = no_llseek, |
1071 | }; | 1073 | }; |
1072 | 1074 | ||
diff --git a/drivers/media/video/w9966.c b/drivers/media/video/w9966.c index cc8c8246c30e..cdb396d9203c 100644 --- a/drivers/media/video/w9966.c +++ b/drivers/media/video/w9966.c | |||
@@ -188,7 +188,9 @@ static const struct file_operations w9966_fops = { | |||
188 | .open = video_exclusive_open, | 188 | .open = video_exclusive_open, |
189 | .release = video_exclusive_release, | 189 | .release = video_exclusive_release, |
190 | .ioctl = w9966_v4l_ioctl, | 190 | .ioctl = w9966_v4l_ioctl, |
191 | #ifdef CONFIG_COMPAT | ||
191 | .compat_ioctl = v4l_compat_ioctl32, | 192 | .compat_ioctl = v4l_compat_ioctl32, |
193 | #endif | ||
192 | .read = w9966_v4l_read, | 194 | .read = w9966_v4l_read, |
193 | .llseek = no_llseek, | 195 | .llseek = no_llseek, |
194 | }; | 196 | }; |
diff --git a/drivers/media/video/w9968cf.c b/drivers/media/video/w9968cf.c index cce23d24e6fc..840522442d07 100644 --- a/drivers/media/video/w9968cf.c +++ b/drivers/media/video/w9968cf.c | |||
@@ -3461,7 +3461,9 @@ static const struct file_operations w9968cf_fops = { | |||
3461 | .release = w9968cf_release, | 3461 | .release = w9968cf_release, |
3462 | .read = w9968cf_read, | 3462 | .read = w9968cf_read, |
3463 | .ioctl = w9968cf_ioctl, | 3463 | .ioctl = w9968cf_ioctl, |
3464 | #ifdef CONFIG_COMPAT | ||
3464 | .compat_ioctl = v4l_compat_ioctl32, | 3465 | .compat_ioctl = v4l_compat_ioctl32, |
3466 | #endif | ||
3465 | .mmap = w9968cf_mmap, | 3467 | .mmap = w9968cf_mmap, |
3466 | .llseek = no_llseek, | 3468 | .llseek = no_llseek, |
3467 | }; | 3469 | }; |
diff --git a/drivers/media/video/zc0301/zc0301_core.c b/drivers/media/video/zc0301/zc0301_core.c index af357cbcb9bb..363dd2b9475c 100644 --- a/drivers/media/video/zc0301/zc0301_core.c +++ b/drivers/media/video/zc0301/zc0301_core.c | |||
@@ -1925,7 +1925,9 @@ static const struct file_operations zc0301_fops = { | |||
1925 | .open = zc0301_open, | 1925 | .open = zc0301_open, |
1926 | .release = zc0301_release, | 1926 | .release = zc0301_release, |
1927 | .ioctl = zc0301_ioctl, | 1927 | .ioctl = zc0301_ioctl, |
1928 | #ifdef CONFIG_COMPAT | ||
1928 | .compat_ioctl = v4l_compat_ioctl32, | 1929 | .compat_ioctl = v4l_compat_ioctl32, |
1930 | #endif | ||
1929 | .read = zc0301_read, | 1931 | .read = zc0301_read, |
1930 | .poll = zc0301_poll, | 1932 | .poll = zc0301_poll, |
1931 | .mmap = zc0301_mmap, | 1933 | .mmap = zc0301_mmap, |
diff --git a/drivers/media/video/zoran_driver.c b/drivers/media/video/zoran_driver.c index 5cca61cb8ba8..8c0a379071e5 100644 --- a/drivers/media/video/zoran_driver.c +++ b/drivers/media/video/zoran_driver.c | |||
@@ -4644,7 +4644,9 @@ static const struct file_operations zoran_fops = { | |||
4644 | .open = zoran_open, | 4644 | .open = zoran_open, |
4645 | .release = zoran_close, | 4645 | .release = zoran_close, |
4646 | .ioctl = zoran_ioctl, | 4646 | .ioctl = zoran_ioctl, |
4647 | #ifdef CONFIG_COMPAT | ||
4647 | .compat_ioctl = v4l_compat_ioctl32, | 4648 | .compat_ioctl = v4l_compat_ioctl32, |
4649 | #endif | ||
4648 | .llseek = no_llseek, | 4650 | .llseek = no_llseek, |
4649 | .read = zoran_read, | 4651 | .read = zoran_read, |
4650 | .write = zoran_write, | 4652 | .write = zoran_write, |