aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/radio
diff options
context:
space:
mode:
authorDouglas Schilling Landgraf <dougsland@gmail.com>2008-04-22 13:46:11 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 13:07:53 -0400
commit078ff7953448163d8779e489bd0119dd9a9b4732 (patch)
treeb323e971c55d11e5f973a513c8b9dc20bd8f892a /drivers/media/radio
parent03dea86de2243d5b3932604b799be26efeff010d (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/radio')
-rw-r--r--drivers/media/radio/dsbr100.c2
-rw-r--r--drivers/media/radio/miropcm20-radio.c2
-rw-r--r--drivers/media/radio/radio-aimslab.c2
-rw-r--r--drivers/media/radio/radio-aztech.c2
-rw-r--r--drivers/media/radio/radio-cadet.c2
-rw-r--r--drivers/media/radio/radio-gemtek-pci.c2
-rw-r--r--drivers/media/radio/radio-gemtek.c2
-rw-r--r--drivers/media/radio/radio-maestro.c2
-rw-r--r--drivers/media/radio/radio-maxiradio.c2
-rw-r--r--drivers/media/radio/radio-rtrack2.c2
-rw-r--r--drivers/media/radio/radio-sf16fmi.c2
-rw-r--r--drivers/media/radio/radio-sf16fmr2.c2
-rw-r--r--drivers/media/radio/radio-si470x.c2
-rw-r--r--drivers/media/radio/radio-terratec.c2
-rw-r--r--drivers/media/radio/radio-trust.c2
-rw-r--r--drivers/media/radio/radio-typhoon.c2
-rw-r--r--drivers/media/radio/radio-zoltrix.c2
17 files changed, 34 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