diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-22 13:52:56 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-22 13:52:56 -0400 |
commit | 092e0e7e520a1fca03e13c9f2d157432a8657ff2 (patch) | |
tree | 451897252c4c08c4b5a8ef535da156f1e817e80b /drivers/usb | |
parent | 79f14b7c56d3b3ba58f8b43d1f70b9b71477a800 (diff) | |
parent | 776c163b1b93c8dfa5edba885bc2bfbc2d228a5f (diff) |
Merge branch 'llseek' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl
* 'llseek' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl:
vfs: make no_llseek the default
vfs: don't use BKL in default_llseek
llseek: automatically add .llseek fop
libfs: use generic_file_llseek for simple_attr
mac80211: disallow seeks in minstrel debug code
lirc: make chardev nonseekable
viotape: use noop_llseek
raw: use explicit llseek file operations
ibmasmfs: use generic_file_llseek
spufs: use llseek in all file operations
arm/omap: use generic_file_llseek in iommu_debug
lkdtm: use generic_file_llseek in debugfs
net/wireless: use generic_file_llseek in debugfs
drm: use noop_llseek
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/class/cdc-wdm.c | 3 | ||||
-rw-r--r-- | drivers/usb/class/usblp.c | 1 | ||||
-rw-r--r-- | drivers/usb/class/usbtmc.c | 1 | ||||
-rw-r--r-- | drivers/usb/core/file.c | 1 | ||||
-rw-r--r-- | drivers/usb/gadget/f_hid.c | 1 | ||||
-rw-r--r-- | drivers/usb/gadget/printer.c | 3 | ||||
-rw-r--r-- | drivers/usb/host/ehci-dbg.c | 4 | ||||
-rw-r--r-- | drivers/usb/host/ohci-dbg.c | 3 | ||||
-rw-r--r-- | drivers/usb/image/mdc800.c | 1 | ||||
-rw-r--r-- | drivers/usb/misc/adutux.c | 1 | ||||
-rw-r--r-- | drivers/usb/misc/idmouse.c | 1 | ||||
-rw-r--r-- | drivers/usb/misc/iowarrior.c | 1 | ||||
-rw-r--r-- | drivers/usb/misc/ldusb.c | 1 | ||||
-rw-r--r-- | drivers/usb/misc/rio500.c | 1 | ||||
-rw-r--r-- | drivers/usb/misc/usblcd.c | 1 | ||||
-rw-r--r-- | drivers/usb/usb-skeleton.c | 1 |
16 files changed, 23 insertions, 2 deletions
diff --git a/drivers/usb/class/cdc-wdm.c b/drivers/usb/class/cdc-wdm.c index 094c76b5de17..6ee4451bfe2d 100644 --- a/drivers/usb/class/cdc-wdm.c +++ b/drivers/usb/class/cdc-wdm.c | |||
@@ -584,7 +584,8 @@ static const struct file_operations wdm_fops = { | |||
584 | .open = wdm_open, | 584 | .open = wdm_open, |
585 | .flush = wdm_flush, | 585 | .flush = wdm_flush, |
586 | .release = wdm_release, | 586 | .release = wdm_release, |
587 | .poll = wdm_poll | 587 | .poll = wdm_poll, |
588 | .llseek = noop_llseek, | ||
588 | }; | 589 | }; |
589 | 590 | ||
590 | static struct usb_class_driver wdm_class = { | 591 | static struct usb_class_driver wdm_class = { |
diff --git a/drivers/usb/class/usblp.c b/drivers/usb/class/usblp.c index e325162859b0..9eca4053312e 100644 --- a/drivers/usb/class/usblp.c +++ b/drivers/usb/class/usblp.c | |||
@@ -1043,6 +1043,7 @@ static const struct file_operations usblp_fops = { | |||
1043 | .compat_ioctl = usblp_ioctl, | 1043 | .compat_ioctl = usblp_ioctl, |
1044 | .open = usblp_open, | 1044 | .open = usblp_open, |
1045 | .release = usblp_release, | 1045 | .release = usblp_release, |
1046 | .llseek = noop_llseek, | ||
1046 | }; | 1047 | }; |
1047 | 1048 | ||
1048 | static char *usblp_devnode(struct device *dev, mode_t *mode) | 1049 | static char *usblp_devnode(struct device *dev, mode_t *mode) |
diff --git a/drivers/usb/class/usbtmc.c b/drivers/usb/class/usbtmc.c index 3e7c1b800ebb..6a54634ab823 100644 --- a/drivers/usb/class/usbtmc.c +++ b/drivers/usb/class/usbtmc.c | |||
@@ -987,6 +987,7 @@ static const struct file_operations fops = { | |||
987 | .open = usbtmc_open, | 987 | .open = usbtmc_open, |
988 | .release = usbtmc_release, | 988 | .release = usbtmc_release, |
989 | .unlocked_ioctl = usbtmc_ioctl, | 989 | .unlocked_ioctl = usbtmc_ioctl, |
990 | .llseek = default_llseek, | ||
990 | }; | 991 | }; |
991 | 992 | ||
992 | static struct usb_class_driver usbtmc_class = { | 993 | static struct usb_class_driver usbtmc_class = { |
diff --git a/drivers/usb/core/file.c b/drivers/usb/core/file.c index 1e6ccef2cf0c..9fe34fb78ef1 100644 --- a/drivers/usb/core/file.c +++ b/drivers/usb/core/file.c | |||
@@ -59,6 +59,7 @@ static int usb_open(struct inode * inode, struct file * file) | |||
59 | static const struct file_operations usb_fops = { | 59 | static const struct file_operations usb_fops = { |
60 | .owner = THIS_MODULE, | 60 | .owner = THIS_MODULE, |
61 | .open = usb_open, | 61 | .open = usb_open, |
62 | .llseek = noop_llseek, | ||
62 | }; | 63 | }; |
63 | 64 | ||
64 | static struct usb_class { | 65 | static struct usb_class { |
diff --git a/drivers/usb/gadget/f_hid.c b/drivers/usb/gadget/f_hid.c index 53e120208e99..2b98bd26364b 100644 --- a/drivers/usb/gadget/f_hid.c +++ b/drivers/usb/gadget/f_hid.c | |||
@@ -451,6 +451,7 @@ const struct file_operations f_hidg_fops = { | |||
451 | .write = f_hidg_write, | 451 | .write = f_hidg_write, |
452 | .read = f_hidg_read, | 452 | .read = f_hidg_read, |
453 | .poll = f_hidg_poll, | 453 | .poll = f_hidg_poll, |
454 | .llseek = noop_llseek, | ||
454 | }; | 455 | }; |
455 | 456 | ||
456 | static int __init hidg_bind(struct usb_configuration *c, struct usb_function *f) | 457 | static int __init hidg_bind(struct usb_configuration *c, struct usb_function *f) |
diff --git a/drivers/usb/gadget/printer.c b/drivers/usb/gadget/printer.c index cf241c371a71..327a92a137b4 100644 --- a/drivers/usb/gadget/printer.c +++ b/drivers/usb/gadget/printer.c | |||
@@ -884,7 +884,8 @@ static const struct file_operations printer_io_operations = { | |||
884 | .fsync = printer_fsync, | 884 | .fsync = printer_fsync, |
885 | .poll = printer_poll, | 885 | .poll = printer_poll, |
886 | .unlocked_ioctl = printer_ioctl, | 886 | .unlocked_ioctl = printer_ioctl, |
887 | .release = printer_close | 887 | .release = printer_close, |
888 | .llseek = noop_llseek, | ||
888 | }; | 889 | }; |
889 | 890 | ||
890 | /*-------------------------------------------------------------------------*/ | 891 | /*-------------------------------------------------------------------------*/ |
diff --git a/drivers/usb/host/ehci-dbg.c b/drivers/usb/host/ehci-dbg.c index 76b7fd2d838a..86afdc73322f 100644 --- a/drivers/usb/host/ehci-dbg.c +++ b/drivers/usb/host/ehci-dbg.c | |||
@@ -369,18 +369,21 @@ static const struct file_operations debug_async_fops = { | |||
369 | .open = debug_async_open, | 369 | .open = debug_async_open, |
370 | .read = debug_output, | 370 | .read = debug_output, |
371 | .release = debug_close, | 371 | .release = debug_close, |
372 | .llseek = default_llseek, | ||
372 | }; | 373 | }; |
373 | static const struct file_operations debug_periodic_fops = { | 374 | static const struct file_operations debug_periodic_fops = { |
374 | .owner = THIS_MODULE, | 375 | .owner = THIS_MODULE, |
375 | .open = debug_periodic_open, | 376 | .open = debug_periodic_open, |
376 | .read = debug_output, | 377 | .read = debug_output, |
377 | .release = debug_close, | 378 | .release = debug_close, |
379 | .llseek = default_llseek, | ||
378 | }; | 380 | }; |
379 | static const struct file_operations debug_registers_fops = { | 381 | static const struct file_operations debug_registers_fops = { |
380 | .owner = THIS_MODULE, | 382 | .owner = THIS_MODULE, |
381 | .open = debug_registers_open, | 383 | .open = debug_registers_open, |
382 | .read = debug_output, | 384 | .read = debug_output, |
383 | .release = debug_close, | 385 | .release = debug_close, |
386 | .llseek = default_llseek, | ||
384 | }; | 387 | }; |
385 | static const struct file_operations debug_lpm_fops = { | 388 | static const struct file_operations debug_lpm_fops = { |
386 | .owner = THIS_MODULE, | 389 | .owner = THIS_MODULE, |
@@ -388,6 +391,7 @@ static const struct file_operations debug_lpm_fops = { | |||
388 | .read = debug_lpm_read, | 391 | .read = debug_lpm_read, |
389 | .write = debug_lpm_write, | 392 | .write = debug_lpm_write, |
390 | .release = debug_lpm_close, | 393 | .release = debug_lpm_close, |
394 | .llseek = noop_llseek, | ||
391 | }; | 395 | }; |
392 | 396 | ||
393 | static struct dentry *ehci_debug_root; | 397 | static struct dentry *ehci_debug_root; |
diff --git a/drivers/usb/host/ohci-dbg.c b/drivers/usb/host/ohci-dbg.c index 36abd2baa3ea..d7d34492934a 100644 --- a/drivers/usb/host/ohci-dbg.c +++ b/drivers/usb/host/ohci-dbg.c | |||
@@ -413,18 +413,21 @@ static const struct file_operations debug_async_fops = { | |||
413 | .open = debug_async_open, | 413 | .open = debug_async_open, |
414 | .read = debug_output, | 414 | .read = debug_output, |
415 | .release = debug_close, | 415 | .release = debug_close, |
416 | .llseek = default_llseek, | ||
416 | }; | 417 | }; |
417 | static const struct file_operations debug_periodic_fops = { | 418 | static const struct file_operations debug_periodic_fops = { |
418 | .owner = THIS_MODULE, | 419 | .owner = THIS_MODULE, |
419 | .open = debug_periodic_open, | 420 | .open = debug_periodic_open, |
420 | .read = debug_output, | 421 | .read = debug_output, |
421 | .release = debug_close, | 422 | .release = debug_close, |
423 | .llseek = default_llseek, | ||
422 | }; | 424 | }; |
423 | static const struct file_operations debug_registers_fops = { | 425 | static const struct file_operations debug_registers_fops = { |
424 | .owner = THIS_MODULE, | 426 | .owner = THIS_MODULE, |
425 | .open = debug_registers_open, | 427 | .open = debug_registers_open, |
426 | .read = debug_output, | 428 | .read = debug_output, |
427 | .release = debug_close, | 429 | .release = debug_close, |
430 | .llseek = default_llseek, | ||
428 | }; | 431 | }; |
429 | 432 | ||
430 | static struct dentry *ohci_debug_root; | 433 | static struct dentry *ohci_debug_root; |
diff --git a/drivers/usb/image/mdc800.c b/drivers/usb/image/mdc800.c index e192e8f7c560..575b56c79e97 100644 --- a/drivers/usb/image/mdc800.c +++ b/drivers/usb/image/mdc800.c | |||
@@ -963,6 +963,7 @@ static const struct file_operations mdc800_device_ops = | |||
963 | .write = mdc800_device_write, | 963 | .write = mdc800_device_write, |
964 | .open = mdc800_device_open, | 964 | .open = mdc800_device_open, |
965 | .release = mdc800_device_release, | 965 | .release = mdc800_device_release, |
966 | .llseek = noop_llseek, | ||
966 | }; | 967 | }; |
967 | 968 | ||
968 | 969 | ||
diff --git a/drivers/usb/misc/adutux.c b/drivers/usb/misc/adutux.c index 801324af9470..44f8b9225054 100644 --- a/drivers/usb/misc/adutux.c +++ b/drivers/usb/misc/adutux.c | |||
@@ -679,6 +679,7 @@ static const struct file_operations adu_fops = { | |||
679 | .write = adu_write, | 679 | .write = adu_write, |
680 | .open = adu_open, | 680 | .open = adu_open, |
681 | .release = adu_release, | 681 | .release = adu_release, |
682 | .llseek = noop_llseek, | ||
682 | }; | 683 | }; |
683 | 684 | ||
684 | /* | 685 | /* |
diff --git a/drivers/usb/misc/idmouse.c b/drivers/usb/misc/idmouse.c index a54c3cb804ce..c6184b4d1695 100644 --- a/drivers/usb/misc/idmouse.c +++ b/drivers/usb/misc/idmouse.c | |||
@@ -105,6 +105,7 @@ static const struct file_operations idmouse_fops = { | |||
105 | .read = idmouse_read, | 105 | .read = idmouse_read, |
106 | .open = idmouse_open, | 106 | .open = idmouse_open, |
107 | .release = idmouse_release, | 107 | .release = idmouse_release, |
108 | .llseek = default_llseek, | ||
108 | }; | 109 | }; |
109 | 110 | ||
110 | /* class driver information */ | 111 | /* class driver information */ |
diff --git a/drivers/usb/misc/iowarrior.c b/drivers/usb/misc/iowarrior.c index bc88c79875a1..9b50db257019 100644 --- a/drivers/usb/misc/iowarrior.c +++ b/drivers/usb/misc/iowarrior.c | |||
@@ -730,6 +730,7 @@ static const struct file_operations iowarrior_fops = { | |||
730 | .open = iowarrior_open, | 730 | .open = iowarrior_open, |
731 | .release = iowarrior_release, | 731 | .release = iowarrior_release, |
732 | .poll = iowarrior_poll, | 732 | .poll = iowarrior_poll, |
733 | .llseek = noop_llseek, | ||
733 | }; | 734 | }; |
734 | 735 | ||
735 | static char *iowarrior_devnode(struct device *dev, mode_t *mode) | 736 | static char *iowarrior_devnode(struct device *dev, mode_t *mode) |
diff --git a/drivers/usb/misc/ldusb.c b/drivers/usb/misc/ldusb.c index dd41d8710043..edffef642337 100644 --- a/drivers/usb/misc/ldusb.c +++ b/drivers/usb/misc/ldusb.c | |||
@@ -613,6 +613,7 @@ static const struct file_operations ld_usb_fops = { | |||
613 | .open = ld_usb_open, | 613 | .open = ld_usb_open, |
614 | .release = ld_usb_release, | 614 | .release = ld_usb_release, |
615 | .poll = ld_usb_poll, | 615 | .poll = ld_usb_poll, |
616 | .llseek = no_llseek, | ||
616 | }; | 617 | }; |
617 | 618 | ||
618 | /* | 619 | /* |
diff --git a/drivers/usb/misc/rio500.c b/drivers/usb/misc/rio500.c index cc13ae61712a..4e23d3841b43 100644 --- a/drivers/usb/misc/rio500.c +++ b/drivers/usb/misc/rio500.c | |||
@@ -439,6 +439,7 @@ static const struct file_operations usb_rio_fops = { | |||
439 | .unlocked_ioctl = ioctl_rio, | 439 | .unlocked_ioctl = ioctl_rio, |
440 | .open = open_rio, | 440 | .open = open_rio, |
441 | .release = close_rio, | 441 | .release = close_rio, |
442 | .llseek = noop_llseek, | ||
442 | }; | 443 | }; |
443 | 444 | ||
444 | static struct usb_class_driver usb_rio_class = { | 445 | static struct usb_class_driver usb_rio_class = { |
diff --git a/drivers/usb/misc/usblcd.c b/drivers/usb/misc/usblcd.c index d00dde19194c..51648154bb44 100644 --- a/drivers/usb/misc/usblcd.c +++ b/drivers/usb/misc/usblcd.c | |||
@@ -282,6 +282,7 @@ static const struct file_operations lcd_fops = { | |||
282 | .open = lcd_open, | 282 | .open = lcd_open, |
283 | .unlocked_ioctl = lcd_ioctl, | 283 | .unlocked_ioctl = lcd_ioctl, |
284 | .release = lcd_release, | 284 | .release = lcd_release, |
285 | .llseek = noop_llseek, | ||
285 | }; | 286 | }; |
286 | 287 | ||
287 | /* | 288 | /* |
diff --git a/drivers/usb/usb-skeleton.c b/drivers/usb/usb-skeleton.c index 552679b8dbd1..e24ce3123071 100644 --- a/drivers/usb/usb-skeleton.c +++ b/drivers/usb/usb-skeleton.c | |||
@@ -507,6 +507,7 @@ static const struct file_operations skel_fops = { | |||
507 | .open = skel_open, | 507 | .open = skel_open, |
508 | .release = skel_release, | 508 | .release = skel_release, |
509 | .flush = skel_flush, | 509 | .flush = skel_flush, |
510 | .llseek = noop_llseek, | ||
510 | }; | 511 | }; |
511 | 512 | ||
512 | /* | 513 | /* |