diff options
370 files changed, 601 insertions, 77 deletions
diff --git a/Documentation/DocBook/drm.tmpl b/Documentation/DocBook/drm.tmpl index 910c923a9b86..2861055afd7a 100644 --- a/Documentation/DocBook/drm.tmpl +++ b/Documentation/DocBook/drm.tmpl | |||
| @@ -136,6 +136,7 @@ | |||
| 136 | #ifdef CONFIG_COMPAT | 136 | #ifdef CONFIG_COMPAT |
| 137 | .compat_ioctl = i915_compat_ioctl, | 137 | .compat_ioctl = i915_compat_ioctl, |
| 138 | #endif | 138 | #endif |
| 139 | .llseek = noop_llseek, | ||
| 139 | }, | 140 | }, |
| 140 | .pci_driver = { | 141 | .pci_driver = { |
| 141 | .name = DRIVER_NAME, | 142 | .name = DRIVER_NAME, |
diff --git a/arch/arm/kernel/etm.c b/arch/arm/kernel/etm.c index a48d51257988..11db62806a1a 100644 --- a/arch/arm/kernel/etm.c +++ b/arch/arm/kernel/etm.c | |||
| @@ -329,6 +329,7 @@ static const struct file_operations etb_fops = { | |||
| 329 | .read = etb_read, | 329 | .read = etb_read, |
| 330 | .open = etb_open, | 330 | .open = etb_open, |
| 331 | .release = etb_release, | 331 | .release = etb_release, |
| 332 | .llseek = no_llseek, | ||
| 332 | }; | 333 | }; |
| 333 | 334 | ||
| 334 | static struct miscdevice etb_miscdev = { | 335 | static struct miscdevice etb_miscdev = { |
diff --git a/arch/arm/mach-msm/last_radio_log.c b/arch/arm/mach-msm/last_radio_log.c index b64ba5a98686..1e243f46a969 100644 --- a/arch/arm/mach-msm/last_radio_log.c +++ b/arch/arm/mach-msm/last_radio_log.c | |||
| @@ -48,7 +48,8 @@ static ssize_t last_radio_log_read(struct file *file, char __user *buf, | |||
| 48 | } | 48 | } |
| 49 | 49 | ||
| 50 | static struct file_operations last_radio_log_fops = { | 50 | static struct file_operations last_radio_log_fops = { |
| 51 | .read = last_radio_log_read | 51 | .read = last_radio_log_read, |
| 52 | .llseek = default_llseek, | ||
| 52 | }; | 53 | }; |
| 53 | 54 | ||
| 54 | void msm_init_last_radio_log(struct module *owner) | 55 | void msm_init_last_radio_log(struct module *owner) |
diff --git a/arch/arm/mach-msm/smd_debug.c b/arch/arm/mach-msm/smd_debug.c index 3b2dd717b788..f91c3b7bc655 100644 --- a/arch/arm/mach-msm/smd_debug.c +++ b/arch/arm/mach-msm/smd_debug.c | |||
| @@ -212,6 +212,7 @@ static int debug_open(struct inode *inode, struct file *file) | |||
| 212 | static const struct file_operations debug_ops = { | 212 | static const struct file_operations debug_ops = { |
| 213 | .read = debug_read, | 213 | .read = debug_read, |
| 214 | .open = debug_open, | 214 | .open = debug_open, |
| 215 | .llseek = default_llseek, | ||
| 215 | }; | 216 | }; |
| 216 | 217 | ||
| 217 | static void debug_create(const char *name, mode_t mode, | 218 | static void debug_create(const char *name, mode_t mode, |
diff --git a/arch/arm/plat-mxc/audmux-v2.c b/arch/arm/plat-mxc/audmux-v2.c index 62920490c0d6..0be1ac7f421b 100644 --- a/arch/arm/plat-mxc/audmux-v2.c +++ b/arch/arm/plat-mxc/audmux-v2.c | |||
| @@ -137,6 +137,7 @@ static ssize_t audmux_read_file(struct file *file, char __user *user_buf, | |||
| 137 | static const struct file_operations audmux_debugfs_fops = { | 137 | static const struct file_operations audmux_debugfs_fops = { |
| 138 | .open = audmux_open_file, | 138 | .open = audmux_open_file, |
| 139 | .read = audmux_read_file, | 139 | .read = audmux_read_file, |
| 140 | .llseek = default_llseek, | ||
| 140 | }; | 141 | }; |
| 141 | 142 | ||
| 142 | static void audmux_debugfs_init(void) | 143 | static void audmux_debugfs_init(void) |
diff --git a/arch/arm/plat-omap/iommu-debug.c b/arch/arm/plat-omap/iommu-debug.c index e6c0d536899c..f07cf2f08e09 100644 --- a/arch/arm/plat-omap/iommu-debug.c +++ b/arch/arm/plat-omap/iommu-debug.c | |||
| @@ -328,12 +328,14 @@ static int debug_open_generic(struct inode *inode, struct file *file) | |||
| 328 | .open = debug_open_generic, \ | 328 | .open = debug_open_generic, \ |
| 329 | .read = debug_read_##name, \ | 329 | .read = debug_read_##name, \ |
| 330 | .write = debug_write_##name, \ | 330 | .write = debug_write_##name, \ |
| 331 | .llseek = generic_file_llseek, \ | ||
| 331 | }; | 332 | }; |
| 332 | 333 | ||
| 333 | #define DEBUG_FOPS_RO(name) \ | 334 | #define DEBUG_FOPS_RO(name) \ |
| 334 | static const struct file_operations debug_##name##_fops = { \ | 335 | static const struct file_operations debug_##name##_fops = { \ |
| 335 | .open = debug_open_generic, \ | 336 | .open = debug_open_generic, \ |
| 336 | .read = debug_read_##name, \ | 337 | .read = debug_read_##name, \ |
| 338 | .llseek = generic_file_llseek, \ | ||
| 337 | }; | 339 | }; |
| 338 | 340 | ||
| 339 | DEBUG_FOPS_RO(ver); | 341 | DEBUG_FOPS_RO(ver); |
diff --git a/arch/avr32/boards/mimc200/fram.c b/arch/avr32/boards/mimc200/fram.c index 54fbd95cee9b..9764a1a1073e 100644 --- a/arch/avr32/boards/mimc200/fram.c +++ b/arch/avr32/boards/mimc200/fram.c | |||
| @@ -41,6 +41,7 @@ static int fram_mmap(struct file *filp, struct vm_area_struct *vma) | |||
| 41 | static const struct file_operations fram_fops = { | 41 | static const struct file_operations fram_fops = { |
| 42 | .owner = THIS_MODULE, | 42 | .owner = THIS_MODULE, |
| 43 | .mmap = fram_mmap, | 43 | .mmap = fram_mmap, |
| 44 | .llseek = noop_llseek, | ||
| 44 | }; | 45 | }; |
| 45 | 46 | ||
| 46 | #define FRAM_MINOR 0 | 47 | #define FRAM_MINOR 0 |
diff --git a/arch/blackfin/kernel/kgdb_test.c b/arch/blackfin/kernel/kgdb_test.c index 9a4b07594389..08c0236acf3c 100644 --- a/arch/blackfin/kernel/kgdb_test.c +++ b/arch/blackfin/kernel/kgdb_test.c | |||
| @@ -88,6 +88,7 @@ static const struct file_operations kgdb_test_proc_fops = { | |||
| 88 | .owner = THIS_MODULE, | 88 | .owner = THIS_MODULE, |
| 89 | .read = kgdb_test_proc_read, | 89 | .read = kgdb_test_proc_read, |
| 90 | .write = kgdb_test_proc_write, | 90 | .write = kgdb_test_proc_write, |
| 91 | .llseek = noop_llseek, | ||
| 91 | }; | 92 | }; |
| 92 | 93 | ||
| 93 | static int __init kgdbtest_init(void) | 94 | static int __init kgdbtest_init(void) |
diff --git a/arch/blackfin/mach-bf561/coreb.c b/arch/blackfin/mach-bf561/coreb.c index deb2271d09a3..c6a4c8f2d37b 100644 --- a/arch/blackfin/mach-bf561/coreb.c +++ b/arch/blackfin/mach-bf561/coreb.c | |||
| @@ -51,6 +51,7 @@ coreb_ioctl(struct file *file, unsigned int cmd, unsigned long arg) | |||
| 51 | static const struct file_operations coreb_fops = { | 51 | static const struct file_operations coreb_fops = { |
| 52 | .owner = THIS_MODULE, | 52 | .owner = THIS_MODULE, |
| 53 | .unlocked_ioctl = coreb_ioctl, | 53 | .unlocked_ioctl = coreb_ioctl, |
| 54 | .llseek = noop_llseek, | ||
| 54 | }; | 55 | }; |
| 55 | 56 | ||
| 56 | static struct miscdevice coreb_dev = { | 57 | static struct miscdevice coreb_dev = { |
diff --git a/arch/cris/arch-v10/drivers/ds1302.c b/arch/cris/arch-v10/drivers/ds1302.c index 4b92ad08b0ff..3d655dcc65da 100644 --- a/arch/cris/arch-v10/drivers/ds1302.c +++ b/arch/cris/arch-v10/drivers/ds1302.c | |||
| @@ -388,6 +388,7 @@ print_rtc_status(void) | |||
| 388 | static const struct file_operations rtc_fops = { | 388 | static const struct file_operations rtc_fops = { |
| 389 | .owner = THIS_MODULE, | 389 | .owner = THIS_MODULE, |
| 390 | .unlocked_ioctl = rtc_unlocked_ioctl, | 390 | .unlocked_ioctl = rtc_unlocked_ioctl, |
| 391 | .llseek = noop_llseek, | ||
| 391 | }; | 392 | }; |
| 392 | 393 | ||
| 393 | /* Probe for the chip by writing something to its RAM and try reading it back. */ | 394 | /* Probe for the chip by writing something to its RAM and try reading it back. */ |
diff --git a/arch/cris/arch-v10/drivers/gpio.c b/arch/cris/arch-v10/drivers/gpio.c index a07b6d25b0c7..a276f0811731 100644 --- a/arch/cris/arch-v10/drivers/gpio.c +++ b/arch/cris/arch-v10/drivers/gpio.c | |||
| @@ -745,6 +745,7 @@ static const struct file_operations gpio_fops = { | |||
| 745 | .write = gpio_write, | 745 | .write = gpio_write, |
| 746 | .open = gpio_open, | 746 | .open = gpio_open, |
| 747 | .release = gpio_release, | 747 | .release = gpio_release, |
| 748 | .llseek = noop_llseek, | ||
| 748 | }; | 749 | }; |
| 749 | 750 | ||
| 750 | static void ioif_watcher(const unsigned int gpio_in_available, | 751 | static void ioif_watcher(const unsigned int gpio_in_available, |
diff --git a/arch/cris/arch-v10/drivers/i2c.c b/arch/cris/arch-v10/drivers/i2c.c index 77a941813819..c413539d4205 100644 --- a/arch/cris/arch-v10/drivers/i2c.c +++ b/arch/cris/arch-v10/drivers/i2c.c | |||
| @@ -617,6 +617,7 @@ static const struct file_operations i2c_fops = { | |||
| 617 | .unlocked_ioctl = i2c_ioctl, | 617 | .unlocked_ioctl = i2c_ioctl, |
| 618 | .open = i2c_open, | 618 | .open = i2c_open, |
| 619 | .release = i2c_release, | 619 | .release = i2c_release, |
| 620 | .llseek = noop_llseek, | ||
| 620 | }; | 621 | }; |
| 621 | 622 | ||
| 622 | int __init | 623 | int __init |
diff --git a/arch/cris/arch-v10/drivers/pcf8563.c b/arch/cris/arch-v10/drivers/pcf8563.c index 2f1ddedca2bd..ea69faba9b62 100644 --- a/arch/cris/arch-v10/drivers/pcf8563.c +++ b/arch/cris/arch-v10/drivers/pcf8563.c | |||
| @@ -64,6 +64,7 @@ static int voltage_low; | |||
| 64 | static const struct file_operations pcf8563_fops = { | 64 | static const struct file_operations pcf8563_fops = { |
| 65 | .owner = THIS_MODULE, | 65 | .owner = THIS_MODULE, |
| 66 | .unlocked_ioctl = pcf8563_unlocked_ioctl, | 66 | .unlocked_ioctl = pcf8563_unlocked_ioctl, |
| 67 | .llseek = noop_llseek, | ||
| 67 | }; | 68 | }; |
| 68 | 69 | ||
| 69 | unsigned char | 70 | unsigned char |
diff --git a/arch/cris/arch-v10/drivers/sync_serial.c b/arch/cris/arch-v10/drivers/sync_serial.c index 3d9fa074a941..399dc1ec8e6f 100644 --- a/arch/cris/arch-v10/drivers/sync_serial.c +++ b/arch/cris/arch-v10/drivers/sync_serial.c | |||
| @@ -251,7 +251,8 @@ static const struct file_operations sync_serial_fops = { | |||
| 251 | .poll = sync_serial_poll, | 251 | .poll = sync_serial_poll, |
| 252 | .unlocked_ioctl = sync_serial_ioctl, | 252 | .unlocked_ioctl = sync_serial_ioctl, |
| 253 | .open = sync_serial_open, | 253 | .open = sync_serial_open, |
| 254 | .release = sync_serial_release | 254 | .release = sync_serial_release, |
| 255 | .llseek = noop_llseek, | ||
| 255 | }; | 256 | }; |
| 256 | 257 | ||
| 257 | static int __init etrax_sync_serial_init(void) | 258 | static int __init etrax_sync_serial_init(void) |
diff --git a/arch/cris/arch-v32/drivers/cryptocop.c b/arch/cris/arch-v32/drivers/cryptocop.c index 0973d5a2780f..c03bc3bc30c2 100644 --- a/arch/cris/arch-v32/drivers/cryptocop.c +++ b/arch/cris/arch-v32/drivers/cryptocop.c | |||
| @@ -281,7 +281,8 @@ const struct file_operations cryptocop_fops = { | |||
| 281 | .owner = THIS_MODULE, | 281 | .owner = THIS_MODULE, |
| 282 | .open = cryptocop_open, | 282 | .open = cryptocop_open, |
| 283 | .release = cryptocop_release, | 283 | .release = cryptocop_release, |
| 284 | .unlocked_ioctl = cryptocop_ioctl | 284 | .unlocked_ioctl = cryptocop_ioctl, |
| 285 | .llseek = noop_llseek, | ||
| 285 | }; | 286 | }; |
| 286 | 287 | ||
| 287 | 288 | ||
diff --git a/arch/cris/arch-v32/drivers/i2c.c b/arch/cris/arch-v32/drivers/i2c.c index 5a3e900c9a78..ddb23996f11a 100644 --- a/arch/cris/arch-v32/drivers/i2c.c +++ b/arch/cris/arch-v32/drivers/i2c.c | |||
| @@ -698,6 +698,7 @@ static const struct file_operations i2c_fops = { | |||
| 698 | .unlocked_ioctl = i2c_ioctl, | 698 | .unlocked_ioctl = i2c_ioctl, |
| 699 | .open = i2c_open, | 699 | .open = i2c_open, |
| 700 | .release = i2c_release, | 700 | .release = i2c_release, |
| 701 | .llseek = noop_llseek, | ||
| 701 | }; | 702 | }; |
| 702 | 703 | ||
| 703 | static int __init i2c_init(void) | 704 | static int __init i2c_init(void) |
diff --git a/arch/cris/arch-v32/drivers/mach-a3/gpio.c b/arch/cris/arch-v32/drivers/mach-a3/gpio.c index 50d1885c4794..c845831e2225 100644 --- a/arch/cris/arch-v32/drivers/mach-a3/gpio.c +++ b/arch/cris/arch-v32/drivers/mach-a3/gpio.c | |||
| @@ -894,6 +894,7 @@ static const struct file_operations gpio_fops = { | |||
| 894 | .write = gpio_write, | 894 | .write = gpio_write, |
| 895 | .open = gpio_open, | 895 | .open = gpio_open, |
| 896 | .release = gpio_release, | 896 | .release = gpio_release, |
| 897 | .llseek = noop_llseek, | ||
| 897 | }; | 898 | }; |
| 898 | 899 | ||
| 899 | #ifdef CONFIG_ETRAX_VIRTUAL_GPIO | 900 | #ifdef CONFIG_ETRAX_VIRTUAL_GPIO |
diff --git a/arch/cris/arch-v32/drivers/mach-fs/gpio.c b/arch/cris/arch-v32/drivers/mach-fs/gpio.c index de8dca0550f2..ee90d2659be7 100644 --- a/arch/cris/arch-v32/drivers/mach-fs/gpio.c +++ b/arch/cris/arch-v32/drivers/mach-fs/gpio.c | |||
| @@ -871,6 +871,7 @@ static const struct file_operations gpio_fops = { | |||
| 871 | .write = gpio_write, | 871 | .write = gpio_write, |
| 872 | .open = gpio_open, | 872 | .open = gpio_open, |
| 873 | .release = gpio_release, | 873 | .release = gpio_release, |
| 874 | .llseek = noop_llseek, | ||
| 874 | }; | 875 | }; |
| 875 | 876 | ||
| 876 | #ifdef CONFIG_ETRAX_VIRTUAL_GPIO | 877 | #ifdef CONFIG_ETRAX_VIRTUAL_GPIO |
diff --git a/arch/cris/arch-v32/drivers/pcf8563.c b/arch/cris/arch-v32/drivers/pcf8563.c index bdcac9dec5cb..b6e4fc0aad42 100644 --- a/arch/cris/arch-v32/drivers/pcf8563.c +++ b/arch/cris/arch-v32/drivers/pcf8563.c | |||
| @@ -60,6 +60,7 @@ static int voltage_low; | |||
| 60 | static const struct file_operations pcf8563_fops = { | 60 | static const struct file_operations pcf8563_fops = { |
| 61 | .owner = THIS_MODULE, | 61 | .owner = THIS_MODULE, |
| 62 | .unlocked_ioctl = pcf8563_unlocked_ioctl, | 62 | .unlocked_ioctl = pcf8563_unlocked_ioctl, |
| 63 | .llseek = noop_llseek, | ||
| 63 | }; | 64 | }; |
| 64 | 65 | ||
| 65 | unsigned char | 66 | unsigned char |
diff --git a/arch/cris/arch-v32/drivers/sync_serial.c b/arch/cris/arch-v32/drivers/sync_serial.c index a01ae9f3b814..c8637a9195ea 100644 --- a/arch/cris/arch-v32/drivers/sync_serial.c +++ b/arch/cris/arch-v32/drivers/sync_serial.c | |||
| @@ -248,7 +248,8 @@ static const struct file_operations sync_serial_fops = { | |||
| 248 | .poll = sync_serial_poll, | 248 | .poll = sync_serial_poll, |
| 249 | .unlocked_ioctl = sync_serial_ioctl, | 249 | .unlocked_ioctl = sync_serial_ioctl, |
| 250 | .open = sync_serial_open, | 250 | .open = sync_serial_open, |
| 251 | .release = sync_serial_release | 251 | .release = sync_serial_release, |
| 252 | .llseek = noop_llseek, | ||
| 252 | }; | 253 | }; |
| 253 | 254 | ||
| 254 | static int __init etrax_sync_serial_init(void) | 255 | static int __init etrax_sync_serial_init(void) |
diff --git a/arch/cris/kernel/profile.c b/arch/cris/kernel/profile.c index 195ec5fa0dd2..b82e08615d1b 100644 --- a/arch/cris/kernel/profile.c +++ b/arch/cris/kernel/profile.c | |||
| @@ -59,6 +59,7 @@ write_cris_profile(struct file *file, const char __user *buf, | |||
| 59 | static const struct file_operations cris_proc_profile_operations = { | 59 | static const struct file_operations cris_proc_profile_operations = { |
| 60 | .read = read_cris_profile, | 60 | .read = read_cris_profile, |
| 61 | .write = write_cris_profile, | 61 | .write = write_cris_profile, |
| 62 | .llseek = default_llseek, | ||
| 62 | }; | 63 | }; |
| 63 | 64 | ||
| 64 | static int __init init_cris_profile(void) | 65 | static int __init init_cris_profile(void) |
diff --git a/arch/ia64/kernel/salinfo.c b/arch/ia64/kernel/salinfo.c index 45d7543b69cc..79802e540e53 100644 --- a/arch/ia64/kernel/salinfo.c +++ b/arch/ia64/kernel/salinfo.c | |||
| @@ -354,6 +354,7 @@ retry: | |||
| 354 | static const struct file_operations salinfo_event_fops = { | 354 | static const struct file_operations salinfo_event_fops = { |
| 355 | .open = salinfo_event_open, | 355 | .open = salinfo_event_open, |
| 356 | .read = salinfo_event_read, | 356 | .read = salinfo_event_read, |
| 357 | .llseek = noop_llseek, | ||
| 357 | }; | 358 | }; |
| 358 | 359 | ||
| 359 | static int | 360 | static int |
| @@ -571,6 +572,7 @@ static const struct file_operations salinfo_data_fops = { | |||
| 571 | .release = salinfo_log_release, | 572 | .release = salinfo_log_release, |
| 572 | .read = salinfo_log_read, | 573 | .read = salinfo_log_read, |
| 573 | .write = salinfo_log_write, | 574 | .write = salinfo_log_write, |
| 575 | .llseek = default_llseek, | ||
| 574 | }; | 576 | }; |
| 575 | 577 | ||
| 576 | static int __cpuinit | 578 | static int __cpuinit |
diff --git a/arch/ia64/sn/kernel/sn2/sn_hwperf.c b/arch/ia64/sn/kernel/sn2/sn_hwperf.c index fa1eceed0d23..30862c0358cd 100644 --- a/arch/ia64/sn/kernel/sn2/sn_hwperf.c +++ b/arch/ia64/sn/kernel/sn2/sn_hwperf.c | |||
| @@ -860,6 +860,7 @@ error: | |||
| 860 | 860 | ||
| 861 | static const struct file_operations sn_hwperf_fops = { | 861 | static const struct file_operations sn_hwperf_fops = { |
| 862 | .unlocked_ioctl = sn_hwperf_ioctl, | 862 | .unlocked_ioctl = sn_hwperf_ioctl, |
| 863 | .llseek = noop_llseek, | ||
| 863 | }; | 864 | }; |
| 864 | 865 | ||
| 865 | static struct miscdevice sn_hwperf_dev = { | 866 | static struct miscdevice sn_hwperf_dev = { |
diff --git a/arch/m68k/bvme6000/rtc.c b/arch/m68k/bvme6000/rtc.c index cb8617bb194b..1c4d4c7bf4d4 100644 --- a/arch/m68k/bvme6000/rtc.c +++ b/arch/m68k/bvme6000/rtc.c | |||
| @@ -155,6 +155,7 @@ static const struct file_operations rtc_fops = { | |||
| 155 | .unlocked_ioctl = rtc_ioctl, | 155 | .unlocked_ioctl = rtc_ioctl, |
| 156 | .open = rtc_open, | 156 | .open = rtc_open, |
| 157 | .release = rtc_release, | 157 | .release = rtc_release, |
| 158 | .llseek = noop_llseek, | ||
| 158 | }; | 159 | }; |
| 159 | 160 | ||
| 160 | static struct miscdevice rtc_dev = { | 161 | static struct miscdevice rtc_dev = { |
diff --git a/arch/m68k/mvme16x/rtc.c b/arch/m68k/mvme16x/rtc.c index 11ac6f63967a..39c79ebcd18a 100644 --- a/arch/m68k/mvme16x/rtc.c +++ b/arch/m68k/mvme16x/rtc.c | |||
| @@ -144,6 +144,7 @@ static const struct file_operations rtc_fops = { | |||
| 144 | .unlocked_ioctl = rtc_ioctl, | 144 | .unlocked_ioctl = rtc_ioctl, |
| 145 | .open = rtc_open, | 145 | .open = rtc_open, |
| 146 | .release = rtc_release, | 146 | .release = rtc_release, |
| 147 | .llseek = noop_llseek, | ||
| 147 | }; | 148 | }; |
| 148 | 149 | ||
| 149 | static struct miscdevice rtc_dev= | 150 | static struct miscdevice rtc_dev= |
diff --git a/arch/mips/kernel/rtlx.c b/arch/mips/kernel/rtlx.c index 26f9b9ab19cc..557ef72472e0 100644 --- a/arch/mips/kernel/rtlx.c +++ b/arch/mips/kernel/rtlx.c | |||
| @@ -468,7 +468,8 @@ static const struct file_operations rtlx_fops = { | |||
| 468 | .release = file_release, | 468 | .release = file_release, |
| 469 | .write = file_write, | 469 | .write = file_write, |
| 470 | .read = file_read, | 470 | .read = file_read, |
| 471 | .poll = file_poll | 471 | .poll = file_poll, |
| 472 | .llseek = noop_llseek, | ||
| 472 | }; | 473 | }; |
| 473 | 474 | ||
| 474 | static struct irqaction rtlx_irq = { | 475 | static struct irqaction rtlx_irq = { |
diff --git a/arch/mips/kernel/vpe.c b/arch/mips/kernel/vpe.c index 2bd2151c586a..3eb3cde2f661 100644 --- a/arch/mips/kernel/vpe.c +++ b/arch/mips/kernel/vpe.c | |||
| @@ -1192,7 +1192,8 @@ static const struct file_operations vpe_fops = { | |||
| 1192 | .owner = THIS_MODULE, | 1192 | .owner = THIS_MODULE, |
| 1193 | .open = vpe_open, | 1193 | .open = vpe_open, |
| 1194 | .release = vpe_release, | 1194 | .release = vpe_release, |
| 1195 | .write = vpe_write | 1195 | .write = vpe_write, |
| 1196 | .llseek = noop_llseek, | ||
| 1196 | }; | 1197 | }; |
| 1197 | 1198 | ||
| 1198 | /* module wrapper entry points */ | 1199 | /* module wrapper entry points */ |
diff --git a/arch/mips/sibyte/common/sb_tbprof.c b/arch/mips/sibyte/common/sb_tbprof.c index d4ed7a9156f5..ca35b730d189 100644 --- a/arch/mips/sibyte/common/sb_tbprof.c +++ b/arch/mips/sibyte/common/sb_tbprof.c | |||
| @@ -545,6 +545,7 @@ static const struct file_operations sbprof_tb_fops = { | |||
| 545 | .unlocked_ioctl = sbprof_tb_ioctl, | 545 | .unlocked_ioctl = sbprof_tb_ioctl, |
| 546 | .compat_ioctl = sbprof_tb_ioctl, | 546 | .compat_ioctl = sbprof_tb_ioctl, |
| 547 | .mmap = NULL, | 547 | .mmap = NULL, |
| 548 | .llseek = default_llseek, | ||
| 548 | }; | 549 | }; |
| 549 | 550 | ||
| 550 | static struct class *tb_class; | 551 | static struct class *tb_class; |
diff --git a/arch/powerpc/kernel/lparcfg.c b/arch/powerpc/kernel/lparcfg.c index 8d9e3b9cda64..16468362ad57 100644 --- a/arch/powerpc/kernel/lparcfg.c +++ b/arch/powerpc/kernel/lparcfg.c | |||
| @@ -780,6 +780,7 @@ static const struct file_operations lparcfg_fops = { | |||
| 780 | .write = lparcfg_write, | 780 | .write = lparcfg_write, |
| 781 | .open = lparcfg_open, | 781 | .open = lparcfg_open, |
| 782 | .release = single_release, | 782 | .release = single_release, |
| 783 | .llseek = seq_lseek, | ||
| 783 | }; | 784 | }; |
| 784 | 785 | ||
| 785 | static int __init lparcfg_init(void) | 786 | static int __init lparcfg_init(void) |
diff --git a/arch/powerpc/kernel/rtas_flash.c b/arch/powerpc/kernel/rtas_flash.c index 67a84d8f118d..2b442e6c21e6 100644 --- a/arch/powerpc/kernel/rtas_flash.c +++ b/arch/powerpc/kernel/rtas_flash.c | |||
| @@ -716,6 +716,7 @@ static const struct file_operations rtas_flash_operations = { | |||
| 716 | .write = rtas_flash_write, | 716 | .write = rtas_flash_write, |
| 717 | .open = rtas_excl_open, | 717 | .open = rtas_excl_open, |
| 718 | .release = rtas_flash_release, | 718 | .release = rtas_flash_release, |
| 719 | .llseek = default_llseek, | ||
| 719 | }; | 720 | }; |
| 720 | 721 | ||
| 721 | static const struct file_operations manage_flash_operations = { | 722 | static const struct file_operations manage_flash_operations = { |
| @@ -724,6 +725,7 @@ static const struct file_operations manage_flash_operations = { | |||
| 724 | .write = manage_flash_write, | 725 | .write = manage_flash_write, |
| 725 | .open = rtas_excl_open, | 726 | .open = rtas_excl_open, |
| 726 | .release = rtas_excl_release, | 727 | .release = rtas_excl_release, |
| 728 | .llseek = default_llseek, | ||
| 727 | }; | 729 | }; |
| 728 | 730 | ||
| 729 | static const struct file_operations validate_flash_operations = { | 731 | static const struct file_operations validate_flash_operations = { |
| @@ -732,6 +734,7 @@ static const struct file_operations validate_flash_operations = { | |||
| 732 | .write = validate_flash_write, | 734 | .write = validate_flash_write, |
| 733 | .open = rtas_excl_open, | 735 | .open = rtas_excl_open, |
| 734 | .release = validate_flash_release, | 736 | .release = validate_flash_release, |
| 737 | .llseek = default_llseek, | ||
| 735 | }; | 738 | }; |
| 736 | 739 | ||
| 737 | static int __init rtas_flash_init(void) | 740 | static int __init rtas_flash_init(void) |
diff --git a/arch/powerpc/kernel/rtasd.c b/arch/powerpc/kernel/rtasd.c index 638883e23e3a..0438f819fe6b 100644 --- a/arch/powerpc/kernel/rtasd.c +++ b/arch/powerpc/kernel/rtasd.c | |||
| @@ -354,6 +354,7 @@ static const struct file_operations proc_rtas_log_operations = { | |||
| 354 | .poll = rtas_log_poll, | 354 | .poll = rtas_log_poll, |
| 355 | .open = rtas_log_open, | 355 | .open = rtas_log_open, |
| 356 | .release = rtas_log_release, | 356 | .release = rtas_log_release, |
| 357 | .llseek = noop_llseek, | ||
| 357 | }; | 358 | }; |
| 358 | 359 | ||
| 359 | static int enable_surveillance(int timeout) | 360 | static int enable_surveillance(int timeout) |
diff --git a/arch/powerpc/platforms/iseries/mf.c b/arch/powerpc/platforms/iseries/mf.c index 33e5fc7334fc..42d0a886de05 100644 --- a/arch/powerpc/platforms/iseries/mf.c +++ b/arch/powerpc/platforms/iseries/mf.c | |||
| @@ -1249,6 +1249,7 @@ out: | |||
| 1249 | 1249 | ||
| 1250 | static const struct file_operations proc_vmlinux_operations = { | 1250 | static const struct file_operations proc_vmlinux_operations = { |
| 1251 | .write = proc_mf_change_vmlinux, | 1251 | .write = proc_mf_change_vmlinux, |
| 1252 | .llseek = default_llseek, | ||
| 1252 | }; | 1253 | }; |
| 1253 | 1254 | ||
| 1254 | static int __init mf_proc_init(void) | 1255 | static int __init mf_proc_init(void) |
diff --git a/arch/powerpc/platforms/pseries/reconfig.c b/arch/powerpc/platforms/pseries/reconfig.c index 57ddbb43b33a..1de2cbb92303 100644 --- a/arch/powerpc/platforms/pseries/reconfig.c +++ b/arch/powerpc/platforms/pseries/reconfig.c | |||
| @@ -539,7 +539,8 @@ out: | |||
| 539 | } | 539 | } |
| 540 | 540 | ||
| 541 | static const struct file_operations ofdt_fops = { | 541 | static const struct file_operations ofdt_fops = { |
| 542 | .write = ofdt_write | 542 | .write = ofdt_write, |
| 543 | .llseek = noop_llseek, | ||
| 543 | }; | 544 | }; |
| 544 | 545 | ||
| 545 | /* create /proc/powerpc/ofdt write-only by root */ | 546 | /* create /proc/powerpc/ofdt write-only by root */ |
diff --git a/arch/powerpc/platforms/pseries/scanlog.c b/arch/powerpc/platforms/pseries/scanlog.c index 80e9e7652a4d..554457294a2b 100644 --- a/arch/powerpc/platforms/pseries/scanlog.c +++ b/arch/powerpc/platforms/pseries/scanlog.c | |||
| @@ -170,6 +170,7 @@ const struct file_operations scanlog_fops = { | |||
| 170 | .write = scanlog_write, | 170 | .write = scanlog_write, |
| 171 | .open = scanlog_open, | 171 | .open = scanlog_open, |
| 172 | .release = scanlog_release, | 172 | .release = scanlog_release, |
| 173 | .llseek = noop_llseek, | ||
| 173 | }; | 174 | }; |
| 174 | 175 | ||
| 175 | static int __init scanlog_init(void) | 176 | static int __init scanlog_init(void) |
diff --git a/arch/s390/crypto/prng.c b/arch/s390/crypto/prng.c index aa819dac2360..975e3ab13cb5 100644 --- a/arch/s390/crypto/prng.c +++ b/arch/s390/crypto/prng.c | |||
| @@ -152,6 +152,7 @@ static const struct file_operations prng_fops = { | |||
| 152 | .open = &prng_open, | 152 | .open = &prng_open, |
| 153 | .release = NULL, | 153 | .release = NULL, |
| 154 | .read = &prng_read, | 154 | .read = &prng_read, |
| 155 | .llseek = noop_llseek, | ||
| 155 | }; | 156 | }; |
| 156 | 157 | ||
| 157 | static struct miscdevice prng_dev = { | 158 | static struct miscdevice prng_dev = { |
diff --git a/arch/s390/hypfs/hypfs_diag.c b/arch/s390/hypfs/hypfs_diag.c index 1211bb1d2f24..020e51c063d2 100644 --- a/arch/s390/hypfs/hypfs_diag.c +++ b/arch/s390/hypfs/hypfs_diag.c | |||
| @@ -618,6 +618,7 @@ static const struct file_operations dbfs_d204_ops = { | |||
| 618 | .open = dbfs_d204_open, | 618 | .open = dbfs_d204_open, |
| 619 | .read = dbfs_d204_read, | 619 | .read = dbfs_d204_read, |
| 620 | .release = dbfs_d204_release, | 620 | .release = dbfs_d204_release, |
| 621 | .llseek = no_llseek, | ||
| 621 | }; | 622 | }; |
| 622 | 623 | ||
| 623 | static int hypfs_dbfs_init(void) | 624 | static int hypfs_dbfs_init(void) |
diff --git a/arch/s390/hypfs/hypfs_vm.c b/arch/s390/hypfs/hypfs_vm.c index ee5ab1a578e7..26cf177f6a3a 100644 --- a/arch/s390/hypfs/hypfs_vm.c +++ b/arch/s390/hypfs/hypfs_vm.c | |||
| @@ -275,6 +275,7 @@ static const struct file_operations dbfs_d2fc_ops = { | |||
| 275 | .open = dbfs_d2fc_open, | 275 | .open = dbfs_d2fc_open, |
| 276 | .read = dbfs_d2fc_read, | 276 | .read = dbfs_d2fc_read, |
| 277 | .release = dbfs_d2fc_release, | 277 | .release = dbfs_d2fc_release, |
| 278 | .llseek = no_llseek, | ||
| 278 | }; | 279 | }; |
| 279 | 280 | ||
| 280 | int hypfs_vm_init(void) | 281 | int hypfs_vm_init(void) |
diff --git a/arch/s390/hypfs/inode.c b/arch/s390/hypfs/inode.c index 98a4a4c267a7..74d98670be27 100644 --- a/arch/s390/hypfs/inode.c +++ b/arch/s390/hypfs/inode.c | |||
| @@ -449,6 +449,7 @@ static const struct file_operations hypfs_file_ops = { | |||
| 449 | .write = do_sync_write, | 449 | .write = do_sync_write, |
| 450 | .aio_read = hypfs_aio_read, | 450 | .aio_read = hypfs_aio_read, |
| 451 | .aio_write = hypfs_aio_write, | 451 | .aio_write = hypfs_aio_write, |
| 452 | .llseek = no_llseek, | ||
| 452 | }; | 453 | }; |
| 453 | 454 | ||
| 454 | static struct file_system_type hypfs_type = { | 455 | static struct file_system_type hypfs_type = { |
diff --git a/arch/s390/kernel/debug.c b/arch/s390/kernel/debug.c index 98192261491d..5ad6bc078bfd 100644 --- a/arch/s390/kernel/debug.c +++ b/arch/s390/kernel/debug.c | |||
| @@ -174,6 +174,7 @@ static const struct file_operations debug_file_ops = { | |||
| 174 | .write = debug_input, | 174 | .write = debug_input, |
| 175 | .open = debug_open, | 175 | .open = debug_open, |
| 176 | .release = debug_close, | 176 | .release = debug_close, |
| 177 | .llseek = no_llseek, | ||
| 177 | }; | 178 | }; |
| 178 | 179 | ||
| 179 | static struct dentry *debug_debugfs_root_entry; | 180 | static struct dentry *debug_debugfs_root_entry; |
diff --git a/arch/sh/boards/mach-landisk/gio.c b/arch/sh/boards/mach-landisk/gio.c index 01e6abb769b9..8132dff078fb 100644 --- a/arch/sh/boards/mach-landisk/gio.c +++ b/arch/sh/boards/mach-landisk/gio.c | |||
| @@ -128,6 +128,7 @@ static const struct file_operations gio_fops = { | |||
| 128 | .open = gio_open, /* open */ | 128 | .open = gio_open, /* open */ |
| 129 | .release = gio_close, /* release */ | 129 | .release = gio_close, /* release */ |
| 130 | .unlocked_ioctl = gio_ioctl, | 130 | .unlocked_ioctl = gio_ioctl, |
| 131 | .llseek = noop_llseek, | ||
| 131 | }; | 132 | }; |
| 132 | 133 | ||
| 133 | static int __init gio_init(void) | 134 | static int __init gio_init(void) |
diff --git a/arch/sparc/kernel/apc.c b/arch/sparc/kernel/apc.c index 2c0046ecc715..52de4a9424e8 100644 --- a/arch/sparc/kernel/apc.c +++ b/arch/sparc/kernel/apc.c | |||
| @@ -132,6 +132,7 @@ static const struct file_operations apc_fops = { | |||
| 132 | .unlocked_ioctl = apc_ioctl, | 132 | .unlocked_ioctl = apc_ioctl, |
| 133 | .open = apc_open, | 133 | .open = apc_open, |
| 134 | .release = apc_release, | 134 | .release = apc_release, |
| 135 | .llseek = noop_llseek, | ||
| 135 | }; | 136 | }; |
| 136 | 137 | ||
| 137 | static struct miscdevice apc_miscdev = { APC_MINOR, APC_DEVNAME, &apc_fops }; | 138 | static struct miscdevice apc_miscdev = { APC_MINOR, APC_DEVNAME, &apc_fops }; |
diff --git a/arch/sparc/kernel/mdesc.c b/arch/sparc/kernel/mdesc.c index 83e85c2e802a..6addb914fcc8 100644 --- a/arch/sparc/kernel/mdesc.c +++ b/arch/sparc/kernel/mdesc.c | |||
| @@ -890,6 +890,7 @@ static ssize_t mdesc_read(struct file *file, char __user *buf, | |||
| 890 | static const struct file_operations mdesc_fops = { | 890 | static const struct file_operations mdesc_fops = { |
| 891 | .read = mdesc_read, | 891 | .read = mdesc_read, |
| 892 | .owner = THIS_MODULE, | 892 | .owner = THIS_MODULE, |
| 893 | .llseek = noop_llseek, | ||
| 893 | }; | 894 | }; |
| 894 | 895 | ||
| 895 | static struct miscdevice mdesc_misc = { | 896 | static struct miscdevice mdesc_misc = { |
diff --git a/arch/tile/kernel/hardwall.c b/arch/tile/kernel/hardwall.c index 584b965dc824..1e54a7843410 100644 --- a/arch/tile/kernel/hardwall.c +++ b/arch/tile/kernel/hardwall.c | |||
| @@ -774,6 +774,7 @@ static const struct file_operations dev_hardwall_fops = { | |||
| 774 | #endif | 774 | #endif |
| 775 | .flush = hardwall_flush, | 775 | .flush = hardwall_flush, |
| 776 | .release = hardwall_release, | 776 | .release = hardwall_release, |
| 777 | .llseek = noop_llseek, | ||
| 777 | }; | 778 | }; |
| 778 | 779 | ||
| 779 | static struct cdev hardwall_dev; | 780 | static struct cdev hardwall_dev; |
diff --git a/arch/um/drivers/harddog_kern.c b/arch/um/drivers/harddog_kern.c index 86036276020f..2d0266d0254d 100644 --- a/arch/um/drivers/harddog_kern.c +++ b/arch/um/drivers/harddog_kern.c | |||
| @@ -167,6 +167,7 @@ static const struct file_operations harddog_fops = { | |||
| 167 | .unlocked_ioctl = harddog_ioctl, | 167 | .unlocked_ioctl = harddog_ioctl, |
| 168 | .open = harddog_open, | 168 | .open = harddog_open, |
| 169 | .release = harddog_release, | 169 | .release = harddog_release, |
| 170 | .llseek = no_llseek, | ||
| 170 | }; | 171 | }; |
| 171 | 172 | ||
| 172 | static struct miscdevice harddog_miscdev = { | 173 | static struct miscdevice harddog_miscdev = { |
diff --git a/arch/um/drivers/mconsole_kern.c b/arch/um/drivers/mconsole_kern.c index ebc680717e59..975613b23dcf 100644 --- a/arch/um/drivers/mconsole_kern.c +++ b/arch/um/drivers/mconsole_kern.c | |||
| @@ -843,6 +843,7 @@ static ssize_t mconsole_proc_write(struct file *file, | |||
| 843 | static const struct file_operations mconsole_proc_fops = { | 843 | static const struct file_operations mconsole_proc_fops = { |
| 844 | .owner = THIS_MODULE, | 844 | .owner = THIS_MODULE, |
| 845 | .write = mconsole_proc_write, | 845 | .write = mconsole_proc_write, |
| 846 | .llseek = noop_llseek, | ||
| 846 | }; | 847 | }; |
| 847 | 848 | ||
| 848 | static int create_proc_mconsole(void) | 849 | static int create_proc_mconsole(void) |
diff --git a/arch/um/drivers/mmapper_kern.c b/arch/um/drivers/mmapper_kern.c index 7158393b6793..8501e7d0015c 100644 --- a/arch/um/drivers/mmapper_kern.c +++ b/arch/um/drivers/mmapper_kern.c | |||
| @@ -93,6 +93,7 @@ static const struct file_operations mmapper_fops = { | |||
| 93 | .mmap = mmapper_mmap, | 93 | .mmap = mmapper_mmap, |
| 94 | .open = mmapper_open, | 94 | .open = mmapper_open, |
| 95 | .release = mmapper_release, | 95 | .release = mmapper_release, |
| 96 | .llseek = default_llseek, | ||
| 96 | }; | 97 | }; |
| 97 | 98 | ||
| 98 | /* | 99 | /* |
diff --git a/arch/um/drivers/random.c b/arch/um/drivers/random.c index 4949044773ba..981085a93f30 100644 --- a/arch/um/drivers/random.c +++ b/arch/um/drivers/random.c | |||
| @@ -100,6 +100,7 @@ static const struct file_operations rng_chrdev_ops = { | |||
| 100 | .owner = THIS_MODULE, | 100 | .owner = THIS_MODULE, |
| 101 | .open = rng_dev_open, | 101 | .open = rng_dev_open, |
| 102 | .read = rng_dev_read, | 102 | .read = rng_dev_read, |
| 103 | .llseek = noop_llseek, | ||
| 103 | }; | 104 | }; |
| 104 | 105 | ||
| 105 | /* rng_init shouldn't be called more than once at boot time */ | 106 | /* rng_init shouldn't be called more than once at boot time */ |
diff --git a/arch/x86/kernel/apm_32.c b/arch/x86/kernel/apm_32.c index 4c9c67bf09b7..fbbc4dadecc4 100644 --- a/arch/x86/kernel/apm_32.c +++ b/arch/x86/kernel/apm_32.c | |||
| @@ -1926,6 +1926,7 @@ static const struct file_operations apm_bios_fops = { | |||
| 1926 | .unlocked_ioctl = do_ioctl, | 1926 | .unlocked_ioctl = do_ioctl, |
| 1927 | .open = do_open, | 1927 | .open = do_open, |
| 1928 | .release = do_release, | 1928 | .release = do_release, |
| 1929 | .llseek = noop_llseek, | ||
| 1929 | }; | 1930 | }; |
| 1930 | 1931 | ||
| 1931 | static struct miscdevice apm_device = { | 1932 | static struct miscdevice apm_device = { |
diff --git a/arch/x86/kernel/cpu/mcheck/mce-severity.c b/arch/x86/kernel/cpu/mcheck/mce-severity.c index 8a85dd1b1aa1..1e8d66c1336a 100644 --- a/arch/x86/kernel/cpu/mcheck/mce-severity.c +++ b/arch/x86/kernel/cpu/mcheck/mce-severity.c | |||
| @@ -192,6 +192,7 @@ static const struct file_operations severities_coverage_fops = { | |||
| 192 | .release = seq_release, | 192 | .release = seq_release, |
| 193 | .read = seq_read, | 193 | .read = seq_read, |
| 194 | .write = severities_coverage_write, | 194 | .write = severities_coverage_write, |
| 195 | .llseek = seq_lseek, | ||
| 195 | }; | 196 | }; |
| 196 | 197 | ||
| 197 | static int __init severities_debugfs_init(void) | 198 | static int __init severities_debugfs_init(void) |
diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c index ed41562909fe..7a35b72d7c03 100644 --- a/arch/x86/kernel/cpu/mcheck/mce.c +++ b/arch/x86/kernel/cpu/mcheck/mce.c | |||
| @@ -1665,6 +1665,7 @@ struct file_operations mce_chrdev_ops = { | |||
| 1665 | .read = mce_read, | 1665 | .read = mce_read, |
| 1666 | .poll = mce_poll, | 1666 | .poll = mce_poll, |
| 1667 | .unlocked_ioctl = mce_ioctl, | 1667 | .unlocked_ioctl = mce_ioctl, |
| 1668 | .llseek = no_llseek, | ||
| 1668 | }; | 1669 | }; |
| 1669 | EXPORT_SYMBOL_GPL(mce_chrdev_ops); | 1670 | EXPORT_SYMBOL_GPL(mce_chrdev_ops); |
| 1670 | 1671 | ||
diff --git a/arch/x86/kernel/kdebugfs.c b/arch/x86/kernel/kdebugfs.c index 8afd9f321f10..90fcf62854bb 100644 --- a/arch/x86/kernel/kdebugfs.c +++ b/arch/x86/kernel/kdebugfs.c | |||
| @@ -78,6 +78,7 @@ static int setup_data_open(struct inode *inode, struct file *file) | |||
| 78 | static const struct file_operations fops_setup_data = { | 78 | static const struct file_operations fops_setup_data = { |
| 79 | .read = setup_data_read, | 79 | .read = setup_data_read, |
| 80 | .open = setup_data_open, | 80 | .open = setup_data_open, |
| 81 | .llseek = default_llseek, | ||
| 81 | }; | 82 | }; |
| 82 | 83 | ||
| 83 | static int __init | 84 | static int __init |
diff --git a/arch/x86/kernel/microcode_core.c b/arch/x86/kernel/microcode_core.c index fa6551d36c10..0b3d37e83606 100644 --- a/arch/x86/kernel/microcode_core.c +++ b/arch/x86/kernel/microcode_core.c | |||
| @@ -232,6 +232,7 @@ static const struct file_operations microcode_fops = { | |||
| 232 | .owner = THIS_MODULE, | 232 | .owner = THIS_MODULE, |
| 233 | .write = microcode_write, | 233 | .write = microcode_write, |
| 234 | .open = microcode_open, | 234 | .open = microcode_open, |
| 235 | .llseek = no_llseek, | ||
| 235 | }; | 236 | }; |
| 236 | 237 | ||
| 237 | static struct miscdevice microcode_dev = { | 238 | static struct miscdevice microcode_dev = { |
diff --git a/arch/x86/kernel/tlb_uv.c b/arch/x86/kernel/tlb_uv.c index 312ef0292815..50ac949c7f1c 100644 --- a/arch/x86/kernel/tlb_uv.c +++ b/arch/x86/kernel/tlb_uv.c | |||
| @@ -1285,6 +1285,7 @@ static const struct file_operations tunables_fops = { | |||
| 1285 | .open = tunables_open, | 1285 | .open = tunables_open, |
| 1286 | .read = tunables_read, | 1286 | .read = tunables_read, |
| 1287 | .write = tunables_write, | 1287 | .write = tunables_write, |
| 1288 | .llseek = default_llseek, | ||
| 1288 | }; | 1289 | }; |
| 1289 | 1290 | ||
| 1290 | static int __init uv_ptc_init(void) | 1291 | static int __init uv_ptc_init(void) |
diff --git a/arch/x86/xen/debugfs.c b/arch/x86/xen/debugfs.c index 1304bcec8ee5..7c0fedd98ea0 100644 --- a/arch/x86/xen/debugfs.c +++ b/arch/x86/xen/debugfs.c | |||
| @@ -106,6 +106,7 @@ static const struct file_operations u32_array_fops = { | |||
| 106 | .open = u32_array_open, | 106 | .open = u32_array_open, |
| 107 | .release= xen_array_release, | 107 | .release= xen_array_release, |
| 108 | .read = u32_array_read, | 108 | .read = u32_array_read, |
| 109 | .llseek = no_llseek, | ||
| 109 | }; | 110 | }; |
| 110 | 111 | ||
| 111 | struct dentry *xen_debugfs_create_u32_array(const char *name, mode_t mode, | 112 | struct dentry *xen_debugfs_create_u32_array(const char *name, mode_t mode, |
diff --git a/block/bsg.c b/block/bsg.c index d3afe702ede7..f20d6a789d48 100644 --- a/block/bsg.c +++ b/block/bsg.c | |||
| @@ -965,6 +965,7 @@ static const struct file_operations bsg_fops = { | |||
| 965 | .release = bsg_release, | 965 | .release = bsg_release, |
| 966 | .unlocked_ioctl = bsg_ioctl, | 966 | .unlocked_ioctl = bsg_ioctl, |
| 967 | .owner = THIS_MODULE, | 967 | .owner = THIS_MODULE, |
| 968 | .llseek = default_llseek, | ||
| 968 | }; | 969 | }; |
| 969 | 970 | ||
| 970 | void bsg_unregister_queue(struct request_queue *q) | 971 | void bsg_unregister_queue(struct request_queue *q) |
diff --git a/drivers/acpi/apei/erst-dbg.c b/drivers/acpi/apei/erst-dbg.c index da1228a9a544..de73caf3cebc 100644 --- a/drivers/acpi/apei/erst-dbg.c +++ b/drivers/acpi/apei/erst-dbg.c | |||
| @@ -184,6 +184,7 @@ static const struct file_operations erst_dbg_ops = { | |||
| 184 | .read = erst_dbg_read, | 184 | .read = erst_dbg_read, |
| 185 | .write = erst_dbg_write, | 185 | .write = erst_dbg_write, |
| 186 | .unlocked_ioctl = erst_dbg_ioctl, | 186 | .unlocked_ioctl = erst_dbg_ioctl, |
| 187 | .llseek = no_llseek, | ||
| 187 | }; | 188 | }; |
| 188 | 189 | ||
| 189 | static struct miscdevice erst_dbg_dev = { | 190 | static struct miscdevice erst_dbg_dev = { |
diff --git a/drivers/acpi/debugfs.c b/drivers/acpi/debugfs.c index 7de27d49c4b9..6355b575ee5a 100644 --- a/drivers/acpi/debugfs.c +++ b/drivers/acpi/debugfs.c | |||
| @@ -69,6 +69,7 @@ static ssize_t cm_write(struct file *file, const char __user * user_buf, | |||
| 69 | 69 | ||
| 70 | static const struct file_operations cm_fops = { | 70 | static const struct file_operations cm_fops = { |
| 71 | .write = cm_write, | 71 | .write = cm_write, |
| 72 | .llseek = default_llseek, | ||
| 72 | }; | 73 | }; |
| 73 | 74 | ||
| 74 | int __init acpi_debugfs_init(void) | 75 | int __init acpi_debugfs_init(void) |
diff --git a/drivers/acpi/ec_sys.c b/drivers/acpi/ec_sys.c index 0e869b3f81ca..411620ef84c2 100644 --- a/drivers/acpi/ec_sys.c +++ b/drivers/acpi/ec_sys.c | |||
| @@ -101,6 +101,7 @@ static struct file_operations acpi_ec_io_ops = { | |||
| 101 | .open = acpi_ec_open_io, | 101 | .open = acpi_ec_open_io, |
| 102 | .read = acpi_ec_read_io, | 102 | .read = acpi_ec_read_io, |
| 103 | .write = acpi_ec_write_io, | 103 | .write = acpi_ec_write_io, |
| 104 | .llseek = default_llseek, | ||
| 104 | }; | 105 | }; |
| 105 | 106 | ||
| 106 | int acpi_ec_add_debugfs(struct acpi_ec *ec, unsigned int ec_device_count) | 107 | int acpi_ec_add_debugfs(struct acpi_ec *ec, unsigned int ec_device_count) |
diff --git a/drivers/acpi/event.c b/drivers/acpi/event.c index d439314a75d8..85d908993809 100644 --- a/drivers/acpi/event.c +++ b/drivers/acpi/event.c | |||
| @@ -110,6 +110,7 @@ static const struct file_operations acpi_system_event_ops = { | |||
| 110 | .read = acpi_system_read_event, | 110 | .read = acpi_system_read_event, |
| 111 | .release = acpi_system_close_event, | 111 | .release = acpi_system_close_event, |
| 112 | .poll = acpi_system_poll_event, | 112 | .poll = acpi_system_poll_event, |
| 113 | .llseek = default_llseek, | ||
| 113 | }; | 114 | }; |
| 114 | #endif /* CONFIG_ACPI_PROC_EVENT */ | 115 | #endif /* CONFIG_ACPI_PROC_EVENT */ |
| 115 | 116 | ||
diff --git a/drivers/block/DAC960.c b/drivers/block/DAC960.c index da0f6ddd7621..1f286ab461d3 100644 --- a/drivers/block/DAC960.c +++ b/drivers/block/DAC960.c | |||
| @@ -7063,7 +7063,8 @@ static long DAC960_gam_ioctl(struct file *file, unsigned int Request, | |||
| 7063 | 7063 | ||
| 7064 | static const struct file_operations DAC960_gam_fops = { | 7064 | static const struct file_operations DAC960_gam_fops = { |
| 7065 | .owner = THIS_MODULE, | 7065 | .owner = THIS_MODULE, |
| 7066 | .unlocked_ioctl = DAC960_gam_ioctl | 7066 | .unlocked_ioctl = DAC960_gam_ioctl, |
| 7067 | .llseek = noop_llseek, | ||
| 7067 | }; | 7068 | }; |
| 7068 | 7069 | ||
| 7069 | static struct miscdevice DAC960_gam_dev = { | 7070 | static struct miscdevice DAC960_gam_dev = { |
diff --git a/drivers/block/aoe/aoechr.c b/drivers/block/aoe/aoechr.c index 05d5ef172ca5..146296ca4965 100644 --- a/drivers/block/aoe/aoechr.c +++ b/drivers/block/aoe/aoechr.c | |||
| @@ -266,6 +266,7 @@ static const struct file_operations aoe_fops = { | |||
| 266 | .open = aoechr_open, | 266 | .open = aoechr_open, |
| 267 | .release = aoechr_rel, | 267 | .release = aoechr_rel, |
| 268 | .owner = THIS_MODULE, | 268 | .owner = THIS_MODULE, |
| 269 | .llseek = noop_llseek, | ||
| 269 | }; | 270 | }; |
| 270 | 271 | ||
| 271 | static char *aoe_devnode(struct device *dev, mode_t *mode) | 272 | static char *aoe_devnode(struct device *dev, mode_t *mode) |
diff --git a/drivers/block/paride/pg.c b/drivers/block/paride/pg.c index bed29cb9e6d9..6b9a2000d56a 100644 --- a/drivers/block/paride/pg.c +++ b/drivers/block/paride/pg.c | |||
| @@ -235,6 +235,7 @@ static const struct file_operations pg_fops = { | |||
| 235 | .write = pg_write, | 235 | .write = pg_write, |
| 236 | .open = pg_open, | 236 | .open = pg_open, |
| 237 | .release = pg_release, | 237 | .release = pg_release, |
| 238 | .llseek = noop_llseek, | ||
| 238 | }; | 239 | }; |
| 239 | 240 | ||
| 240 | static void pg_init_units(void) | 241 | static void pg_init_units(void) |
diff --git a/drivers/block/paride/pt.c b/drivers/block/paride/pt.c index e4dda282e0a6..7179f79d7468 100644 --- a/drivers/block/paride/pt.c +++ b/drivers/block/paride/pt.c | |||
| @@ -240,6 +240,7 @@ static const struct file_operations pt_fops = { | |||
| 240 | .unlocked_ioctl = pt_ioctl, | 240 | .unlocked_ioctl = pt_ioctl, |
| 241 | .open = pt_open, | 241 | .open = pt_open, |
| 242 | .release = pt_release, | 242 | .release = pt_release, |
| 243 | .llseek = noop_llseek, | ||
| 243 | }; | 244 | }; |
| 244 | 245 | ||
| 245 | /* sysfs class support */ | 246 | /* sysfs class support */ |
diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c index 044b84e6f147..ef58fccadad3 100644 --- a/drivers/block/pktcdvd.c +++ b/drivers/block/pktcdvd.c | |||
| @@ -3046,6 +3046,7 @@ static const struct file_operations pkt_ctl_fops = { | |||
| 3046 | .compat_ioctl = pkt_ctl_compat_ioctl, | 3046 | .compat_ioctl = pkt_ctl_compat_ioctl, |
| 3047 | #endif | 3047 | #endif |
| 3048 | .owner = THIS_MODULE, | 3048 | .owner = THIS_MODULE, |
| 3049 | .llseek = no_llseek, | ||
| 3049 | }; | 3050 | }; |
| 3050 | 3051 | ||
| 3051 | static struct miscdevice pkt_misc = { | 3052 | static struct miscdevice pkt_misc = { |
diff --git a/drivers/bluetooth/btmrvl_debugfs.c b/drivers/bluetooth/btmrvl_debugfs.c index 54739b08c308..fd6305bf953e 100644 --- a/drivers/bluetooth/btmrvl_debugfs.c +++ b/drivers/bluetooth/btmrvl_debugfs.c | |||
| @@ -92,6 +92,7 @@ static const struct file_operations btmrvl_hscfgcmd_fops = { | |||
| 92 | .read = btmrvl_hscfgcmd_read, | 92 | .read = btmrvl_hscfgcmd_read, |
| 93 | .write = btmrvl_hscfgcmd_write, | 93 | .write = btmrvl_hscfgcmd_write, |
| 94 | .open = btmrvl_open_generic, | 94 | .open = btmrvl_open_generic, |
| 95 | .llseek = default_llseek, | ||
| 95 | }; | 96 | }; |
| 96 | 97 | ||
| 97 | static ssize_t btmrvl_psmode_write(struct file *file, const char __user *ubuf, | 98 | static ssize_t btmrvl_psmode_write(struct file *file, const char __user *ubuf, |
| @@ -130,6 +131,7 @@ static const struct file_operations btmrvl_psmode_fops = { | |||
| 130 | .read = btmrvl_psmode_read, | 131 | .read = btmrvl_psmode_read, |
| 131 | .write = btmrvl_psmode_write, | 132 | .write = btmrvl_psmode_write, |
| 132 | .open = btmrvl_open_generic, | 133 | .open = btmrvl_open_generic, |
| 134 | .llseek = default_llseek, | ||
| 133 | }; | 135 | }; |
| 134 | 136 | ||
| 135 | static ssize_t btmrvl_pscmd_write(struct file *file, const char __user *ubuf, | 137 | static ssize_t btmrvl_pscmd_write(struct file *file, const char __user *ubuf, |
| @@ -173,6 +175,7 @@ static const struct file_operations btmrvl_pscmd_fops = { | |||
| 173 | .read = btmrvl_pscmd_read, | 175 | .read = btmrvl_pscmd_read, |
| 174 | .write = btmrvl_pscmd_write, | 176 | .write = btmrvl_pscmd_write, |
| 175 | .open = btmrvl_open_generic, | 177 | .open = btmrvl_open_generic, |
| 178 | .llseek = default_llseek, | ||
| 176 | }; | 179 | }; |
| 177 | 180 | ||
| 178 | static ssize_t btmrvl_gpiogap_write(struct file *file, const char __user *ubuf, | 181 | static ssize_t btmrvl_gpiogap_write(struct file *file, const char __user *ubuf, |
| @@ -211,6 +214,7 @@ static const struct file_operations btmrvl_gpiogap_fops = { | |||
| 211 | .read = btmrvl_gpiogap_read, | 214 | .read = btmrvl_gpiogap_read, |
| 212 | .write = btmrvl_gpiogap_write, | 215 | .write = btmrvl_gpiogap_write, |
| 213 | .open = btmrvl_open_generic, | 216 | .open = btmrvl_open_generic, |
| 217 | .llseek = default_llseek, | ||
| 214 | }; | 218 | }; |
| 215 | 219 | ||
| 216 | static ssize_t btmrvl_hscmd_write(struct file *file, const char __user *ubuf, | 220 | static ssize_t btmrvl_hscmd_write(struct file *file, const char __user *ubuf, |
| @@ -252,6 +256,7 @@ static const struct file_operations btmrvl_hscmd_fops = { | |||
| 252 | .read = btmrvl_hscmd_read, | 256 | .read = btmrvl_hscmd_read, |
| 253 | .write = btmrvl_hscmd_write, | 257 | .write = btmrvl_hscmd_write, |
| 254 | .open = btmrvl_open_generic, | 258 | .open = btmrvl_open_generic, |
| 259 | .llseek = default_llseek, | ||
| 255 | }; | 260 | }; |
| 256 | 261 | ||
| 257 | static ssize_t btmrvl_hsmode_write(struct file *file, const char __user *ubuf, | 262 | static ssize_t btmrvl_hsmode_write(struct file *file, const char __user *ubuf, |
| @@ -289,6 +294,7 @@ static const struct file_operations btmrvl_hsmode_fops = { | |||
| 289 | .read = btmrvl_hsmode_read, | 294 | .read = btmrvl_hsmode_read, |
| 290 | .write = btmrvl_hsmode_write, | 295 | .write = btmrvl_hsmode_write, |
| 291 | .open = btmrvl_open_generic, | 296 | .open = btmrvl_open_generic, |
| 297 | .llseek = default_llseek, | ||
| 292 | }; | 298 | }; |
| 293 | 299 | ||
| 294 | static ssize_t btmrvl_curpsmode_read(struct file *file, char __user *userbuf, | 300 | static ssize_t btmrvl_curpsmode_read(struct file *file, char __user *userbuf, |
| @@ -306,6 +312,7 @@ static ssize_t btmrvl_curpsmode_read(struct file *file, char __user *userbuf, | |||
| 306 | static const struct file_operations btmrvl_curpsmode_fops = { | 312 | static const struct file_operations btmrvl_curpsmode_fops = { |
| 307 | .read = btmrvl_curpsmode_read, | 313 | .read = btmrvl_curpsmode_read, |
| 308 | .open = btmrvl_open_generic, | 314 | .open = btmrvl_open_generic, |
| 315 | .llseek = default_llseek, | ||
| 309 | }; | 316 | }; |
| 310 | 317 | ||
| 311 | static ssize_t btmrvl_psstate_read(struct file *file, char __user * userbuf, | 318 | static ssize_t btmrvl_psstate_read(struct file *file, char __user * userbuf, |
| @@ -323,6 +330,7 @@ static ssize_t btmrvl_psstate_read(struct file *file, char __user * userbuf, | |||
| 323 | static const struct file_operations btmrvl_psstate_fops = { | 330 | static const struct file_operations btmrvl_psstate_fops = { |
| 324 | .read = btmrvl_psstate_read, | 331 | .read = btmrvl_psstate_read, |
| 325 | .open = btmrvl_open_generic, | 332 | .open = btmrvl_open_generic, |
| 333 | .llseek = default_llseek, | ||
| 326 | }; | 334 | }; |
| 327 | 335 | ||
| 328 | static ssize_t btmrvl_hsstate_read(struct file *file, char __user *userbuf, | 336 | static ssize_t btmrvl_hsstate_read(struct file *file, char __user *userbuf, |
| @@ -340,6 +348,7 @@ static ssize_t btmrvl_hsstate_read(struct file *file, char __user *userbuf, | |||
| 340 | static const struct file_operations btmrvl_hsstate_fops = { | 348 | static const struct file_operations btmrvl_hsstate_fops = { |
| 341 | .read = btmrvl_hsstate_read, | 349 | .read = btmrvl_hsstate_read, |
| 342 | .open = btmrvl_open_generic, | 350 | .open = btmrvl_open_generic, |
| 351 | .llseek = default_llseek, | ||
| 343 | }; | 352 | }; |
| 344 | 353 | ||
| 345 | static ssize_t btmrvl_txdnldready_read(struct file *file, char __user *userbuf, | 354 | static ssize_t btmrvl_txdnldready_read(struct file *file, char __user *userbuf, |
| @@ -358,6 +367,7 @@ static ssize_t btmrvl_txdnldready_read(struct file *file, char __user *userbuf, | |||
| 358 | static const struct file_operations btmrvl_txdnldready_fops = { | 367 | static const struct file_operations btmrvl_txdnldready_fops = { |
| 359 | .read = btmrvl_txdnldready_read, | 368 | .read = btmrvl_txdnldready_read, |
| 360 | .open = btmrvl_open_generic, | 369 | .open = btmrvl_open_generic, |
| 370 | .llseek = default_llseek, | ||
| 361 | }; | 371 | }; |
| 362 | 372 | ||
| 363 | void btmrvl_debugfs_init(struct hci_dev *hdev) | 373 | void btmrvl_debugfs_init(struct hci_dev *hdev) |
diff --git a/drivers/bluetooth/hci_vhci.c b/drivers/bluetooth/hci_vhci.c index 3aa7b2a54b6f..67c180c2c1e0 100644 --- a/drivers/bluetooth/hci_vhci.c +++ b/drivers/bluetooth/hci_vhci.c | |||
| @@ -282,6 +282,7 @@ static const struct file_operations vhci_fops = { | |||
| 282 | .poll = vhci_poll, | 282 | .poll = vhci_poll, |
| 283 | .open = vhci_open, | 283 | .open = vhci_open, |
| 284 | .release = vhci_release, | 284 | .release = vhci_release, |
| 285 | .llseek = no_llseek, | ||
| 285 | }; | 286 | }; |
| 286 | 287 | ||
| 287 | static struct miscdevice vhci_miscdev= { | 288 | static struct miscdevice vhci_miscdev= { |
diff --git a/drivers/char/apm-emulation.c b/drivers/char/apm-emulation.c index 6a420baea268..3022801669b1 100644 --- a/drivers/char/apm-emulation.c +++ b/drivers/char/apm-emulation.c | |||
| @@ -403,6 +403,7 @@ static const struct file_operations apm_bios_fops = { | |||
| 403 | .unlocked_ioctl = apm_ioctl, | 403 | .unlocked_ioctl = apm_ioctl, |
| 404 | .open = apm_open, | 404 | .open = apm_open, |
| 405 | .release = apm_release, | 405 | .release = apm_release, |
| 406 | .llseek = noop_llseek, | ||
| 406 | }; | 407 | }; |
| 407 | 408 | ||
| 408 | static struct miscdevice apm_device = { | 409 | static struct miscdevice apm_device = { |
diff --git a/drivers/char/bfin-otp.c b/drivers/char/bfin-otp.c index 836d4f0a876f..44660f1c4849 100644 --- a/drivers/char/bfin-otp.c +++ b/drivers/char/bfin-otp.c | |||
| @@ -222,6 +222,7 @@ static const struct file_operations bfin_otp_fops = { | |||
| 222 | .unlocked_ioctl = bfin_otp_ioctl, | 222 | .unlocked_ioctl = bfin_otp_ioctl, |
| 223 | .read = bfin_otp_read, | 223 | .read = bfin_otp_read, |
| 224 | .write = bfin_otp_write, | 224 | .write = bfin_otp_write, |
| 225 | .llseek = default_llseek, | ||
| 225 | }; | 226 | }; |
| 226 | 227 | ||
| 227 | static struct miscdevice bfin_otp_misc_device = { | 228 | static struct miscdevice bfin_otp_misc_device = { |
diff --git a/drivers/char/briq_panel.c b/drivers/char/briq_panel.c index d5fa113afe37..f6718f05dad4 100644 --- a/drivers/char/briq_panel.c +++ b/drivers/char/briq_panel.c | |||
| @@ -186,6 +186,7 @@ static const struct file_operations briq_panel_fops = { | |||
| 186 | .write = briq_panel_write, | 186 | .write = briq_panel_write, |
| 187 | .open = briq_panel_open, | 187 | .open = briq_panel_open, |
| 188 | .release = briq_panel_release, | 188 | .release = briq_panel_release, |
| 189 | .llseek = noop_llseek, | ||
| 189 | }; | 190 | }; |
| 190 | 191 | ||
| 191 | static struct miscdevice briq_panel_miscdev = { | 192 | static struct miscdevice briq_panel_miscdev = { |
diff --git a/drivers/char/bsr.c b/drivers/char/bsr.c index 91917133ae0a..a4a6c2f044b5 100644 --- a/drivers/char/bsr.c +++ b/drivers/char/bsr.c | |||
| @@ -155,6 +155,7 @@ static const struct file_operations bsr_fops = { | |||
| 155 | .owner = THIS_MODULE, | 155 | .owner = THIS_MODULE, |
| 156 | .mmap = bsr_mmap, | 156 | .mmap = bsr_mmap, |
| 157 | .open = bsr_open, | 157 | .open = bsr_open, |
| 158 | .llseek = noop_llseek, | ||
| 158 | }; | 159 | }; |
| 159 | 160 | ||
| 160 | static void bsr_cleanup_devs(void) | 161 | static void bsr_cleanup_devs(void) |
diff --git a/drivers/char/cs5535_gpio.c b/drivers/char/cs5535_gpio.c index 4d830dc482ef..0cf1e5fad9ab 100644 --- a/drivers/char/cs5535_gpio.c +++ b/drivers/char/cs5535_gpio.c | |||
| @@ -169,7 +169,8 @@ static const struct file_operations cs5535_gpio_fops = { | |||
| 169 | .owner = THIS_MODULE, | 169 | .owner = THIS_MODULE, |
| 170 | .write = cs5535_gpio_write, | 170 | .write = cs5535_gpio_write, |
| 171 | .read = cs5535_gpio_read, | 171 | .read = cs5535_gpio_read, |
| 172 | .open = cs5535_gpio_open | 172 | .open = cs5535_gpio_open, |
| 173 | .llseek = no_llseek, | ||
| 173 | }; | 174 | }; |
| 174 | 175 | ||
| 175 | static int __init cs5535_gpio_init(void) | 176 | static int __init cs5535_gpio_init(void) |
diff --git a/drivers/char/ds1302.c b/drivers/char/ds1302.c index e3d72aa3cbd2..ed8303f9890c 100644 --- a/drivers/char/ds1302.c +++ b/drivers/char/ds1302.c | |||
| @@ -289,6 +289,7 @@ get_rtc_status(char *buf) | |||
| 289 | static const struct file_operations rtc_fops = { | 289 | static const struct file_operations rtc_fops = { |
| 290 | .owner = THIS_MODULE, | 290 | .owner = THIS_MODULE, |
| 291 | .unlocked_ioctl = rtc_ioctl, | 291 | .unlocked_ioctl = rtc_ioctl, |
| 292 | .llseek = noop_llseek, | ||
| 292 | }; | 293 | }; |
| 293 | 294 | ||
| 294 | /* Probe for the chip by writing something to its RAM and try reading it back. */ | 295 | /* Probe for the chip by writing something to its RAM and try reading it back. */ |
diff --git a/drivers/char/ds1620.c b/drivers/char/ds1620.c index 9aa1fd059aea..aab9605f0b43 100644 --- a/drivers/char/ds1620.c +++ b/drivers/char/ds1620.c | |||
| @@ -357,6 +357,7 @@ static const struct file_operations ds1620_fops = { | |||
| 357 | .open = ds1620_open, | 357 | .open = ds1620_open, |
| 358 | .read = ds1620_read, | 358 | .read = ds1620_read, |
| 359 | .unlocked_ioctl = ds1620_unlocked_ioctl, | 359 | .unlocked_ioctl = ds1620_unlocked_ioctl, |
| 360 | .llseek = no_llseek, | ||
| 360 | }; | 361 | }; |
| 361 | 362 | ||
| 362 | static struct miscdevice ds1620_miscdev = { | 363 | static struct miscdevice ds1620_miscdev = { |
diff --git a/drivers/char/dsp56k.c b/drivers/char/dsp56k.c index b3c756227e39..052797b32bd3 100644 --- a/drivers/char/dsp56k.c +++ b/drivers/char/dsp56k.c | |||
| @@ -483,6 +483,7 @@ static const struct file_operations dsp56k_fops = { | |||
| 483 | .unlocked_ioctl = dsp56k_ioctl, | 483 | .unlocked_ioctl = dsp56k_ioctl, |
| 484 | .open = dsp56k_open, | 484 | .open = dsp56k_open, |
| 485 | .release = dsp56k_release, | 485 | .release = dsp56k_release, |
| 486 | .llseek = noop_llseek, | ||
| 486 | }; | 487 | }; |
| 487 | 488 | ||
| 488 | 489 | ||
diff --git a/drivers/char/dtlk.c b/drivers/char/dtlk.c index 8dd040a945d4..85156dd0caee 100644 --- a/drivers/char/dtlk.c +++ b/drivers/char/dtlk.c | |||
| @@ -106,6 +106,7 @@ static const struct file_operations dtlk_fops = | |||
| 106 | .unlocked_ioctl = dtlk_ioctl, | 106 | .unlocked_ioctl = dtlk_ioctl, |
| 107 | .open = dtlk_open, | 107 | .open = dtlk_open, |
| 108 | .release = dtlk_release, | 108 | .release = dtlk_release, |
| 109 | .llseek = no_llseek, | ||
| 109 | }; | 110 | }; |
| 110 | 111 | ||
| 111 | /* local prototypes */ | 112 | /* local prototypes */ |
diff --git a/drivers/char/genrtc.c b/drivers/char/genrtc.c index 2aa69f97360d..f773a9dd14f3 100644 --- a/drivers/char/genrtc.c +++ b/drivers/char/genrtc.c | |||
| @@ -498,6 +498,7 @@ static const struct file_operations gen_rtc_fops = { | |||
| 498 | .unlocked_ioctl = gen_rtc_unlocked_ioctl, | 498 | .unlocked_ioctl = gen_rtc_unlocked_ioctl, |
| 499 | .open = gen_rtc_open, | 499 | .open = gen_rtc_open, |
| 500 | .release = gen_rtc_release, | 500 | .release = gen_rtc_release, |
| 501 | .llseek = noop_llseek, | ||
| 501 | }; | 502 | }; |
| 502 | 503 | ||
| 503 | static struct miscdevice rtc_gen_dev = | 504 | static struct miscdevice rtc_gen_dev = |
diff --git a/drivers/char/hw_random/core.c b/drivers/char/hw_random/core.c index 3d9c61e5acbf..788da05190cc 100644 --- a/drivers/char/hw_random/core.c +++ b/drivers/char/hw_random/core.c | |||
| @@ -170,6 +170,7 @@ static const struct file_operations rng_chrdev_ops = { | |||
| 170 | .owner = THIS_MODULE, | 170 | .owner = THIS_MODULE, |
| 171 | .open = rng_dev_open, | 171 | .open = rng_dev_open, |
| 172 | .read = rng_dev_read, | 172 | .read = rng_dev_read, |
| 173 | .llseek = noop_llseek, | ||
| 173 | }; | 174 | }; |
| 174 | 175 | ||
| 175 | static struct miscdevice rng_miscdev = { | 176 | static struct miscdevice rng_miscdev = { |
diff --git a/drivers/char/ip2/ip2main.c b/drivers/char/ip2/ip2main.c index dfbdf49d1e80..64a439ce2f89 100644 --- a/drivers/char/ip2/ip2main.c +++ b/drivers/char/ip2/ip2main.c | |||
| @@ -237,6 +237,7 @@ static const struct file_operations ip2_ipl = { | |||
| 237 | .write = ip2_ipl_write, | 237 | .write = ip2_ipl_write, |
| 238 | .unlocked_ioctl = ip2_ipl_ioctl, | 238 | .unlocked_ioctl = ip2_ipl_ioctl, |
| 239 | .open = ip2_ipl_open, | 239 | .open = ip2_ipl_open, |
| 240 | .llseek = noop_llseek, | ||
| 240 | }; | 241 | }; |
| 241 | 242 | ||
| 242 | static unsigned long irq_counter; | 243 | static unsigned long irq_counter; |
diff --git a/drivers/char/ipmi/ipmi_devintf.c b/drivers/char/ipmi/ipmi_devintf.c index 44833de47728..1fc8876af1f5 100644 --- a/drivers/char/ipmi/ipmi_devintf.c +++ b/drivers/char/ipmi/ipmi_devintf.c | |||
| @@ -850,6 +850,7 @@ static const struct file_operations ipmi_fops = { | |||
| 850 | .release = ipmi_release, | 850 | .release = ipmi_release, |
| 851 | .fasync = ipmi_fasync, | 851 | .fasync = ipmi_fasync, |
| 852 | .poll = ipmi_poll, | 852 | .poll = ipmi_poll, |
| 853 | .llseek = noop_llseek, | ||
| 853 | }; | 854 | }; |
| 854 | 855 | ||
| 855 | #define DEVICE_NAME "ipmidev" | 856 | #define DEVICE_NAME "ipmidev" |
diff --git a/drivers/char/ipmi/ipmi_watchdog.c b/drivers/char/ipmi/ipmi_watchdog.c index ed10b741962d..f4d334f2536e 100644 --- a/drivers/char/ipmi/ipmi_watchdog.c +++ b/drivers/char/ipmi/ipmi_watchdog.c | |||
| @@ -909,6 +909,7 @@ static const struct file_operations ipmi_wdog_fops = { | |||
| 909 | .open = ipmi_open, | 909 | .open = ipmi_open, |
| 910 | .release = ipmi_close, | 910 | .release = ipmi_close, |
| 911 | .fasync = ipmi_fasync, | 911 | .fasync = ipmi_fasync, |
| 912 | .llseek = no_llseek, | ||
| 912 | }; | 913 | }; |
| 913 | 914 | ||
| 914 | static struct miscdevice ipmi_wdog_miscdev = { | 915 | static struct miscdevice ipmi_wdog_miscdev = { |
diff --git a/drivers/char/istallion.c b/drivers/char/istallion.c index be28391adb79..667abd23ad6a 100644 --- a/drivers/char/istallion.c +++ b/drivers/char/istallion.c | |||
| @@ -704,6 +704,7 @@ static const struct file_operations stli_fsiomem = { | |||
| 704 | .read = stli_memread, | 704 | .read = stli_memread, |
| 705 | .write = stli_memwrite, | 705 | .write = stli_memwrite, |
| 706 | .unlocked_ioctl = stli_memioctl, | 706 | .unlocked_ioctl = stli_memioctl, |
| 707 | .llseek = default_llseek, | ||
| 707 | }; | 708 | }; |
| 708 | 709 | ||
| 709 | /*****************************************************************************/ | 710 | /*****************************************************************************/ |
diff --git a/drivers/char/lp.c b/drivers/char/lp.c index 598d278db058..97c3edb95ae7 100644 --- a/drivers/char/lp.c +++ b/drivers/char/lp.c | |||
| @@ -749,6 +749,7 @@ static const struct file_operations lp_fops = { | |||
| 749 | #ifdef CONFIG_PARPORT_1284 | 749 | #ifdef CONFIG_PARPORT_1284 |
| 750 | .read = lp_read, | 750 | .read = lp_read, |
| 751 | #endif | 751 | #endif |
| 752 | .llseek = noop_llseek, | ||
| 752 | }; | 753 | }; |
| 753 | 754 | ||
| 754 | /* --- support for console on the line printer ----------------- */ | 755 | /* --- support for console on the line printer ----------------- */ |
diff --git a/drivers/char/mem.c b/drivers/char/mem.c index 1f528fad3516..e985b1c2730e 100644 --- a/drivers/char/mem.c +++ b/drivers/char/mem.c | |||
| @@ -805,6 +805,7 @@ static const struct file_operations full_fops = { | |||
| 805 | static const struct file_operations oldmem_fops = { | 805 | static const struct file_operations oldmem_fops = { |
| 806 | .read = read_oldmem, | 806 | .read = read_oldmem, |
| 807 | .open = open_oldmem, | 807 | .open = open_oldmem, |
| 808 | .llseek = default_llseek, | ||
| 808 | }; | 809 | }; |
| 809 | #endif | 810 | #endif |
| 810 | 811 | ||
| @@ -831,6 +832,7 @@ static ssize_t kmsg_write(struct file *file, const char __user *buf, | |||
| 831 | 832 | ||
| 832 | static const struct file_operations kmsg_fops = { | 833 | static const struct file_operations kmsg_fops = { |
| 833 | .write = kmsg_write, | 834 | .write = kmsg_write, |
| 835 | .llseek = noop_llseek, | ||
| 834 | }; | 836 | }; |
| 835 | 837 | ||
| 836 | static const struct memdev { | 838 | static const struct memdev { |
| @@ -882,6 +884,7 @@ static int memory_open(struct inode *inode, struct file *filp) | |||
| 882 | 884 | ||
| 883 | static const struct file_operations memory_fops = { | 885 | static const struct file_operations memory_fops = { |
| 884 | .open = memory_open, | 886 | .open = memory_open, |
| 887 | .llseek = noop_llseek, | ||
| 885 | }; | 888 | }; |
| 886 | 889 | ||
| 887 | static char *mem_devnode(struct device *dev, mode_t *mode) | 890 | static char *mem_devnode(struct device *dev, mode_t *mode) |
diff --git a/drivers/char/misc.c b/drivers/char/misc.c index abdafd488980..778273c93242 100644 --- a/drivers/char/misc.c +++ b/drivers/char/misc.c | |||
| @@ -162,6 +162,7 @@ static struct class *misc_class; | |||
| 162 | static const struct file_operations misc_fops = { | 162 | static const struct file_operations misc_fops = { |
| 163 | .owner = THIS_MODULE, | 163 | .owner = THIS_MODULE, |
| 164 | .open = misc_open, | 164 | .open = misc_open, |
| 165 | .llseek = noop_llseek, | ||
| 165 | }; | 166 | }; |
| 166 | 167 | ||
| 167 | /** | 168 | /** |
diff --git a/drivers/char/mmtimer.c b/drivers/char/mmtimer.c index fe4697844ec1..c070b53984e4 100644 --- a/drivers/char/mmtimer.c +++ b/drivers/char/mmtimer.c | |||
| @@ -73,6 +73,7 @@ static const struct file_operations mmtimer_fops = { | |||
| 73 | .owner = THIS_MODULE, | 73 | .owner = THIS_MODULE, |
| 74 | .mmap = mmtimer_mmap, | 74 | .mmap = mmtimer_mmap, |
| 75 | .unlocked_ioctl = mmtimer_ioctl, | 75 | .unlocked_ioctl = mmtimer_ioctl, |
| 76 | .llseek = noop_llseek, | ||
| 76 | }; | 77 | }; |
| 77 | 78 | ||
| 78 | /* | 79 | /* |
diff --git a/drivers/char/mspec.c b/drivers/char/mspec.c index ecb89d798e35..966a95bc974b 100644 --- a/drivers/char/mspec.c +++ b/drivers/char/mspec.c | |||
| @@ -316,7 +316,8 @@ uncached_mmap(struct file *file, struct vm_area_struct *vma) | |||
| 316 | 316 | ||
| 317 | static const struct file_operations fetchop_fops = { | 317 | static const struct file_operations fetchop_fops = { |
| 318 | .owner = THIS_MODULE, | 318 | .owner = THIS_MODULE, |
| 319 | .mmap = fetchop_mmap | 319 | .mmap = fetchop_mmap, |
| 320 | .llseek = noop_llseek, | ||
| 320 | }; | 321 | }; |
| 321 | 322 | ||
| 322 | static struct miscdevice fetchop_miscdev = { | 323 | static struct miscdevice fetchop_miscdev = { |
| @@ -327,7 +328,8 @@ static struct miscdevice fetchop_miscdev = { | |||
| 327 | 328 | ||
| 328 | static const struct file_operations cached_fops = { | 329 | static const struct file_operations cached_fops = { |
| 329 | .owner = THIS_MODULE, | 330 | .owner = THIS_MODULE, |
| 330 | .mmap = cached_mmap | 331 | .mmap = cached_mmap, |
| 332 | .llseek = noop_llseek, | ||
| 331 | }; | 333 | }; |
| 332 | 334 | ||
| 333 | static struct miscdevice cached_miscdev = { | 335 | static struct miscdevice cached_miscdev = { |
| @@ -338,7 +340,8 @@ static struct miscdevice cached_miscdev = { | |||
| 338 | 340 | ||
| 339 | static const struct file_operations uncached_fops = { | 341 | static const struct file_operations uncached_fops = { |
| 340 | .owner = THIS_MODULE, | 342 | .owner = THIS_MODULE, |
| 341 | .mmap = uncached_mmap | 343 | .mmap = uncached_mmap, |
| 344 | .llseek = noop_llseek, | ||
| 342 | }; | 345 | }; |
| 343 | 346 | ||
| 344 | static struct miscdevice uncached_miscdev = { | 347 | static struct miscdevice uncached_miscdev = { |
diff --git a/drivers/char/mwave/mwavedd.c b/drivers/char/mwave/mwavedd.c index e5df26b56d59..1d82d5838f0c 100644 --- a/drivers/char/mwave/mwavedd.c +++ b/drivers/char/mwave/mwavedd.c | |||
| @@ -479,7 +479,8 @@ static const struct file_operations mwave_fops = { | |||
| 479 | .write = mwave_write, | 479 | .write = mwave_write, |
| 480 | .unlocked_ioctl = mwave_ioctl, | 480 | .unlocked_ioctl = mwave_ioctl, |
| 481 | .open = mwave_open, | 481 | .open = mwave_open, |
| 482 | .release = mwave_close | 482 | .release = mwave_close, |
| 483 | .llseek = default_llseek, | ||
| 483 | }; | 484 | }; |
| 484 | 485 | ||
| 485 | 486 | ||
diff --git a/drivers/char/nwbutton.c b/drivers/char/nwbutton.c index 2604246501e4..8994ce32e6c7 100644 --- a/drivers/char/nwbutton.c +++ b/drivers/char/nwbutton.c | |||
| @@ -182,6 +182,7 @@ static int button_read (struct file *filp, char __user *buffer, | |||
| 182 | static const struct file_operations button_fops = { | 182 | static const struct file_operations button_fops = { |
| 183 | .owner = THIS_MODULE, | 183 | .owner = THIS_MODULE, |
| 184 | .read = button_read, | 184 | .read = button_read, |
| 185 | .llseek = noop_llseek, | ||
| 185 | }; | 186 | }; |
| 186 | 187 | ||
| 187 | /* | 188 | /* |
diff --git a/drivers/char/pc8736x_gpio.c b/drivers/char/pc8736x_gpio.c index 8ecbcc174c15..b304ec052501 100644 --- a/drivers/char/pc8736x_gpio.c +++ b/drivers/char/pc8736x_gpio.c | |||
| @@ -234,6 +234,7 @@ static const struct file_operations pc8736x_gpio_fileops = { | |||
| 234 | .open = pc8736x_gpio_open, | 234 | .open = pc8736x_gpio_open, |
| 235 | .write = nsc_gpio_write, | 235 | .write = nsc_gpio_write, |
| 236 | .read = nsc_gpio_read, | 236 | .read = nsc_gpio_read, |
| 237 | .llseek = no_llseek, | ||
| 237 | }; | 238 | }; |
| 238 | 239 | ||
| 239 | static void __init pc8736x_init_shadow(void) | 240 | static void __init pc8736x_init_shadow(void) |
diff --git a/drivers/char/pcmcia/cm4000_cs.c b/drivers/char/pcmcia/cm4000_cs.c index c4e52ec85c6e..6835c23e9a51 100644 --- a/drivers/char/pcmcia/cm4000_cs.c +++ b/drivers/char/pcmcia/cm4000_cs.c | |||
| @@ -1866,6 +1866,7 @@ static const struct file_operations cm4000_fops = { | |||
| 1866 | .unlocked_ioctl = cmm_ioctl, | 1866 | .unlocked_ioctl = cmm_ioctl, |
| 1867 | .open = cmm_open, | 1867 | .open = cmm_open, |
| 1868 | .release= cmm_close, | 1868 | .release= cmm_close, |
| 1869 | .llseek = no_llseek, | ||
| 1869 | }; | 1870 | }; |
| 1870 | 1871 | ||
| 1871 | static struct pcmcia_device_id cm4000_ids[] = { | 1872 | static struct pcmcia_device_id cm4000_ids[] = { |
diff --git a/drivers/char/pcmcia/cm4040_cs.c b/drivers/char/pcmcia/cm4040_cs.c index d7c32cb40ca3..5d8d59e865f4 100644 --- a/drivers/char/pcmcia/cm4040_cs.c +++ b/drivers/char/pcmcia/cm4040_cs.c | |||
| @@ -630,6 +630,7 @@ static const struct file_operations reader_fops = { | |||
| 630 | .open = cm4040_open, | 630 | .open = cm4040_open, |
| 631 | .release = cm4040_close, | 631 | .release = cm4040_close, |
| 632 | .poll = cm4040_poll, | 632 | .poll = cm4040_poll, |
| 633 | .llseek = no_llseek, | ||
| 633 | }; | 634 | }; |
| 634 | 635 | ||
| 635 | static struct pcmcia_device_id cm4040_ids[] = { | 636 | static struct pcmcia_device_id cm4040_ids[] = { |
diff --git a/drivers/char/random.c b/drivers/char/random.c index caef35a46890..5a1aa64f4e76 100644 --- a/drivers/char/random.c +++ b/drivers/char/random.c | |||
| @@ -1165,6 +1165,7 @@ const struct file_operations random_fops = { | |||
| 1165 | .poll = random_poll, | 1165 | .poll = random_poll, |
| 1166 | .unlocked_ioctl = random_ioctl, | 1166 | .unlocked_ioctl = random_ioctl, |
| 1167 | .fasync = random_fasync, | 1167 | .fasync = random_fasync, |
| 1168 | .llseek = noop_llseek, | ||
| 1168 | }; | 1169 | }; |
| 1169 | 1170 | ||
| 1170 | const struct file_operations urandom_fops = { | 1171 | const struct file_operations urandom_fops = { |
| @@ -1172,6 +1173,7 @@ const struct file_operations urandom_fops = { | |||
| 1172 | .write = random_write, | 1173 | .write = random_write, |
| 1173 | .unlocked_ioctl = random_ioctl, | 1174 | .unlocked_ioctl = random_ioctl, |
| 1174 | .fasync = random_fasync, | 1175 | .fasync = random_fasync, |
| 1176 | .llseek = noop_llseek, | ||
| 1175 | }; | 1177 | }; |
| 1176 | 1178 | ||
| 1177 | /*************************************************************** | 1179 | /*************************************************************** |
diff --git a/drivers/char/raw.c b/drivers/char/raw.c index 24b2b9160aa6..bfe25ea9766b 100644 --- a/drivers/char/raw.c +++ b/drivers/char/raw.c | |||
| @@ -292,6 +292,7 @@ static const struct file_operations raw_fops = { | |||
| 292 | .open = raw_open, | 292 | .open = raw_open, |
| 293 | .release = raw_release, | 293 | .release = raw_release, |
| 294 | .unlocked_ioctl = raw_ioctl, | 294 | .unlocked_ioctl = raw_ioctl, |
| 295 | .llseek = default_llseek, | ||
| 295 | .owner = THIS_MODULE, | 296 | .owner = THIS_MODULE, |
| 296 | }; | 297 | }; |
| 297 | 298 | ||
| @@ -302,6 +303,7 @@ static const struct file_operations raw_ctl_fops = { | |||
| 302 | #endif | 303 | #endif |
| 303 | .open = raw_open, | 304 | .open = raw_open, |
| 304 | .owner = THIS_MODULE, | 305 | .owner = THIS_MODULE, |
| 306 | .llseek = noop_llseek, | ||
| 305 | }; | 307 | }; |
| 306 | 308 | ||
| 307 | static struct cdev raw_cdev; | 309 | static struct cdev raw_cdev; |
diff --git a/drivers/char/rio/rio_linux.c b/drivers/char/rio/rio_linux.c index e06a5977fdb2..5e33293d24e3 100644 --- a/drivers/char/rio/rio_linux.c +++ b/drivers/char/rio/rio_linux.c | |||
| @@ -242,6 +242,7 @@ static struct real_driver rio_real_driver = { | |||
| 242 | static const struct file_operations rio_fw_fops = { | 242 | static const struct file_operations rio_fw_fops = { |
| 243 | .owner = THIS_MODULE, | 243 | .owner = THIS_MODULE, |
| 244 | .unlocked_ioctl = rio_fw_ioctl, | 244 | .unlocked_ioctl = rio_fw_ioctl, |
| 245 | .llseek = noop_llseek, | ||
| 245 | }; | 246 | }; |
| 246 | 247 | ||
| 247 | static struct miscdevice rio_fw_device = { | 248 | static struct miscdevice rio_fw_device = { |
diff --git a/drivers/char/scx200_gpio.c b/drivers/char/scx200_gpio.c index 99e5272e3c53..0bc135b9b16f 100644 --- a/drivers/char/scx200_gpio.c +++ b/drivers/char/scx200_gpio.c | |||
| @@ -67,6 +67,7 @@ static const struct file_operations scx200_gpio_fileops = { | |||
| 67 | .read = nsc_gpio_read, | 67 | .read = nsc_gpio_read, |
| 68 | .open = scx200_gpio_open, | 68 | .open = scx200_gpio_open, |
| 69 | .release = scx200_gpio_release, | 69 | .release = scx200_gpio_release, |
| 70 | .llseek = no_llseek, | ||
| 70 | }; | 71 | }; |
| 71 | 72 | ||
| 72 | static struct cdev scx200_gpio_cdev; /* use 1 cdev for all pins */ | 73 | static struct cdev scx200_gpio_cdev; /* use 1 cdev for all pins */ |
diff --git a/drivers/char/snsc.c b/drivers/char/snsc.c index 208e25731dfe..5816b39ff5a9 100644 --- a/drivers/char/snsc.c +++ b/drivers/char/snsc.c | |||
| @@ -358,6 +358,7 @@ static const struct file_operations scdrv_fops = { | |||
| 358 | .poll = scdrv_poll, | 358 | .poll = scdrv_poll, |
| 359 | .open = scdrv_open, | 359 | .open = scdrv_open, |
| 360 | .release = scdrv_release, | 360 | .release = scdrv_release, |
| 361 | .llseek = noop_llseek, | ||
| 361 | }; | 362 | }; |
| 362 | 363 | ||
| 363 | static struct class *snsc_class; | 364 | static struct class *snsc_class; |
diff --git a/drivers/char/stallion.c b/drivers/char/stallion.c index f2167f8e5aab..8ef16490810c 100644 --- a/drivers/char/stallion.c +++ b/drivers/char/stallion.c | |||
| @@ -608,6 +608,7 @@ static unsigned int sc26198_baudtable[] = { | |||
| 608 | static const struct file_operations stl_fsiomem = { | 608 | static const struct file_operations stl_fsiomem = { |
| 609 | .owner = THIS_MODULE, | 609 | .owner = THIS_MODULE, |
| 610 | .unlocked_ioctl = stl_memioctl, | 610 | .unlocked_ioctl = stl_memioctl, |
| 611 | .llseek = noop_llseek, | ||
| 611 | }; | 612 | }; |
| 612 | 613 | ||
| 613 | static struct class *stallion_class; | 614 | static struct class *stallion_class; |
diff --git a/drivers/char/sx.c b/drivers/char/sx.c index 5b24db4ff7f1..e53f16865397 100644 --- a/drivers/char/sx.c +++ b/drivers/char/sx.c | |||
| @@ -397,6 +397,7 @@ static struct real_driver sx_real_driver = { | |||
| 397 | static const struct file_operations sx_fw_fops = { | 397 | static const struct file_operations sx_fw_fops = { |
| 398 | .owner = THIS_MODULE, | 398 | .owner = THIS_MODULE, |
| 399 | .unlocked_ioctl = sx_fw_ioctl, | 399 | .unlocked_ioctl = sx_fw_ioctl, |
| 400 | .llseek = noop_llseek, | ||
| 400 | }; | 401 | }; |
| 401 | 402 | ||
| 402 | static struct miscdevice sx_fw_device = { | 403 | static struct miscdevice sx_fw_device = { |
diff --git a/drivers/char/sysrq.c b/drivers/char/sysrq.c index ef31bb81e843..f3019f53e875 100644 --- a/drivers/char/sysrq.c +++ b/drivers/char/sysrq.c | |||
| @@ -772,6 +772,7 @@ static ssize_t write_sysrq_trigger(struct file *file, const char __user *buf, | |||
| 772 | 772 | ||
| 773 | static const struct file_operations proc_sysrq_trigger_operations = { | 773 | static const struct file_operations proc_sysrq_trigger_operations = { |
| 774 | .write = write_sysrq_trigger, | 774 | .write = write_sysrq_trigger, |
| 775 | .llseek = noop_llseek, | ||
| 775 | }; | 776 | }; |
| 776 | 777 | ||
| 777 | static void sysrq_init_procfs(void) | 778 | static void sysrq_init_procfs(void) |
diff --git a/drivers/char/tb0219.c b/drivers/char/tb0219.c index cad4eb65f13d..ad264185eb10 100644 --- a/drivers/char/tb0219.c +++ b/drivers/char/tb0219.c | |||
| @@ -261,6 +261,7 @@ static const struct file_operations tb0219_fops = { | |||
| 261 | .write = tanbac_tb0219_write, | 261 | .write = tanbac_tb0219_write, |
| 262 | .open = tanbac_tb0219_open, | 262 | .open = tanbac_tb0219_open, |
| 263 | .release = tanbac_tb0219_release, | 263 | .release = tanbac_tb0219_release, |
| 264 | .llseek = no_llseek, | ||
| 264 | }; | 265 | }; |
| 265 | 266 | ||
| 266 | static void tb0219_restart(char *command) | 267 | static void tb0219_restart(char *command) |
diff --git a/drivers/char/tlclk.c b/drivers/char/tlclk.c index e32cbf0c9a0b..0c964cdcc223 100644 --- a/drivers/char/tlclk.c +++ b/drivers/char/tlclk.c | |||
| @@ -267,6 +267,7 @@ static const struct file_operations tlclk_fops = { | |||
| 267 | .read = tlclk_read, | 267 | .read = tlclk_read, |
| 268 | .open = tlclk_open, | 268 | .open = tlclk_open, |
| 269 | .release = tlclk_release, | 269 | .release = tlclk_release, |
| 270 | .llseek = noop_llseek, | ||
| 270 | 271 | ||
| 271 | }; | 272 | }; |
| 272 | 273 | ||
diff --git a/drivers/char/toshiba.c b/drivers/char/toshiba.c index f8f09ab0b170..014c9d90d297 100644 --- a/drivers/char/toshiba.c +++ b/drivers/char/toshiba.c | |||
| @@ -96,6 +96,7 @@ static long tosh_ioctl(struct file *, unsigned int, | |||
| 96 | static const struct file_operations tosh_fops = { | 96 | static const struct file_operations tosh_fops = { |
| 97 | .owner = THIS_MODULE, | 97 | .owner = THIS_MODULE, |
| 98 | .unlocked_ioctl = tosh_ioctl, | 98 | .unlocked_ioctl = tosh_ioctl, |
| 99 | .llseek = noop_llseek, | ||
| 99 | }; | 100 | }; |
| 100 | 101 | ||
| 101 | static struct miscdevice tosh_device = { | 102 | static struct miscdevice tosh_device = { |
diff --git a/drivers/char/uv_mmtimer.c b/drivers/char/uv_mmtimer.c index c7072ba14f48..493b47a0d511 100644 --- a/drivers/char/uv_mmtimer.c +++ b/drivers/char/uv_mmtimer.c | |||
| @@ -52,6 +52,7 @@ static const struct file_operations uv_mmtimer_fops = { | |||
| 52 | .owner = THIS_MODULE, | 52 | .owner = THIS_MODULE, |
| 53 | .mmap = uv_mmtimer_mmap, | 53 | .mmap = uv_mmtimer_mmap, |
| 54 | .unlocked_ioctl = uv_mmtimer_ioctl, | 54 | .unlocked_ioctl = uv_mmtimer_ioctl, |
| 55 | .llseek = noop_llseek, | ||
| 55 | }; | 56 | }; |
| 56 | 57 | ||
| 57 | /** | 58 | /** |
diff --git a/drivers/char/viotape.c b/drivers/char/viotape.c index 6f954a808b65..ad6e64a2912d 100644 --- a/drivers/char/viotape.c +++ b/drivers/char/viotape.c | |||
| @@ -805,6 +805,7 @@ const struct file_operations viotap_fops = { | |||
| 805 | .unlocked_ioctl = viotap_unlocked_ioctl, | 805 | .unlocked_ioctl = viotap_unlocked_ioctl, |
| 806 | .open = viotap_open, | 806 | .open = viotap_open, |
| 807 | .release = viotap_release, | 807 | .release = viotap_release, |
| 808 | .llseek = noop_llseek, | ||
| 808 | }; | 809 | }; |
| 809 | 810 | ||
| 810 | /* Handle interrupt events for tape */ | 811 | /* Handle interrupt events for tape */ |
diff --git a/drivers/char/xilinx_hwicap/xilinx_hwicap.c b/drivers/char/xilinx_hwicap/xilinx_hwicap.c index d985204d76fe..9f2272e6de1c 100644 --- a/drivers/char/xilinx_hwicap/xilinx_hwicap.c +++ b/drivers/char/xilinx_hwicap/xilinx_hwicap.c | |||
| @@ -567,6 +567,7 @@ static const struct file_operations hwicap_fops = { | |||
| 567 | .read = hwicap_read, | 567 | .read = hwicap_read, |
| 568 | .open = hwicap_open, | 568 | .open = hwicap_open, |
| 569 | .release = hwicap_release, | 569 | .release = hwicap_release, |
| 570 | .llseek = noop_llseek, | ||
| 570 | }; | 571 | }; |
| 571 | 572 | ||
| 572 | static int __devinit hwicap_setup(struct device *dev, int id, | 573 | static int __devinit hwicap_setup(struct device *dev, int id, |
diff --git a/drivers/dma/coh901318.c b/drivers/dma/coh901318.c index 557e2272e5b3..ae2b8714d190 100644 --- a/drivers/dma/coh901318.c +++ b/drivers/dma/coh901318.c | |||
| @@ -157,6 +157,7 @@ static const struct file_operations coh901318_debugfs_status_operations = { | |||
| 157 | .owner = THIS_MODULE, | 157 | .owner = THIS_MODULE, |
| 158 | .open = coh901318_debugfs_open, | 158 | .open = coh901318_debugfs_open, |
| 159 | .read = coh901318_debugfs_read, | 159 | .read = coh901318_debugfs_read, |
| 160 | .llseek = default_llseek, | ||
| 160 | }; | 161 | }; |
| 161 | 162 | ||
| 162 | 163 | ||
diff --git a/drivers/firewire/nosy.c b/drivers/firewire/nosy.c index 8528b10763ed..bf184fb59a5e 100644 --- a/drivers/firewire/nosy.c +++ b/drivers/firewire/nosy.c | |||
| @@ -405,6 +405,7 @@ static const struct file_operations nosy_ops = { | |||
| 405 | .poll = nosy_poll, | 405 | .poll = nosy_poll, |
| 406 | .open = nosy_open, | 406 | .open = nosy_open, |
| 407 | .release = nosy_release, | 407 | .release = nosy_release, |
| 408 | .llseek = noop_llseek, | ||
| 408 | }; | 409 | }; |
| 409 | 410 | ||
| 410 | #define PHY_PACKET_SIZE 12 /* 1 payload, 1 inverse, 1 ack = 3 quadlets */ | 411 | #define PHY_PACKET_SIZE 12 /* 1 payload, 1 inverse, 1 ack = 3 quadlets */ |
diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c index 84da748555bc..ff6690f4fc87 100644 --- a/drivers/gpu/drm/drm_drv.c +++ b/drivers/gpu/drm/drm_drv.c | |||
| @@ -284,7 +284,8 @@ EXPORT_SYMBOL(drm_exit); | |||
| 284 | /** File operations structure */ | 284 | /** File operations structure */ |
| 285 | static const struct file_operations drm_stub_fops = { | 285 | static const struct file_operations drm_stub_fops = { |
| 286 | .owner = THIS_MODULE, | 286 | .owner = THIS_MODULE, |
| 287 | .open = drm_stub_open | 287 | .open = drm_stub_open, |
| 288 | .llseek = noop_llseek, | ||
| 288 | }; | 289 | }; |
| 289 | 290 | ||
| 290 | static int __init drm_core_init(void) | 291 | static int __init drm_core_init(void) |
diff --git a/drivers/gpu/drm/i810/i810_dma.c b/drivers/gpu/drm/i810/i810_dma.c index fb07e73581e8..ff33e53bbbf8 100644 --- a/drivers/gpu/drm/i810/i810_dma.c +++ b/drivers/gpu/drm/i810/i810_dma.c | |||
| @@ -119,6 +119,7 @@ static const struct file_operations i810_buffer_fops = { | |||
| 119 | .unlocked_ioctl = i810_ioctl, | 119 | .unlocked_ioctl = i810_ioctl, |
| 120 | .mmap = i810_mmap_buffers, | 120 | .mmap = i810_mmap_buffers, |
| 121 | .fasync = drm_fasync, | 121 | .fasync = drm_fasync, |
| 122 | .llseek = noop_llseek, | ||
| 122 | }; | 123 | }; |
| 123 | 124 | ||
| 124 | static int i810_map_buffer(struct drm_buf *buf, struct drm_file *file_priv) | 125 | static int i810_map_buffer(struct drm_buf *buf, struct drm_file *file_priv) |
diff --git a/drivers/gpu/drm/i810/i810_drv.c b/drivers/gpu/drm/i810/i810_drv.c index b4250b2cac1f..fe69914ce507 100644 --- a/drivers/gpu/drm/i810/i810_drv.c +++ b/drivers/gpu/drm/i810/i810_drv.c | |||
| @@ -63,6 +63,7 @@ static struct drm_driver driver = { | |||
| 63 | .mmap = drm_mmap, | 63 | .mmap = drm_mmap, |
| 64 | .poll = drm_poll, | 64 | .poll = drm_poll, |
| 65 | .fasync = drm_fasync, | 65 | .fasync = drm_fasync, |
| 66 | .llseek = noop_llseek, | ||
| 66 | }, | 67 | }, |
| 67 | 68 | ||
| 68 | .pci_driver = { | 69 | .pci_driver = { |
diff --git a/drivers/gpu/drm/i830/i830_dma.c b/drivers/gpu/drm/i830/i830_dma.c index cc92c7e6236f..ca6f31ff0eec 100644 --- a/drivers/gpu/drm/i830/i830_dma.c +++ b/drivers/gpu/drm/i830/i830_dma.c | |||
| @@ -121,6 +121,7 @@ static const struct file_operations i830_buffer_fops = { | |||
| 121 | .unlocked_ioctl = i830_ioctl, | 121 | .unlocked_ioctl = i830_ioctl, |
| 122 | .mmap = i830_mmap_buffers, | 122 | .mmap = i830_mmap_buffers, |
| 123 | .fasync = drm_fasync, | 123 | .fasync = drm_fasync, |
| 124 | .llseek = noop_llseek, | ||
| 124 | }; | 125 | }; |
| 125 | 126 | ||
| 126 | static int i830_map_buffer(struct drm_buf *buf, struct drm_file *file_priv) | 127 | static int i830_map_buffer(struct drm_buf *buf, struct drm_file *file_priv) |
diff --git a/drivers/gpu/drm/i830/i830_drv.c b/drivers/gpu/drm/i830/i830_drv.c index a5c66aa82f0c..5b6298b24e24 100644 --- a/drivers/gpu/drm/i830/i830_drv.c +++ b/drivers/gpu/drm/i830/i830_drv.c | |||
| @@ -74,6 +74,7 @@ static struct drm_driver driver = { | |||
| 74 | .mmap = drm_mmap, | 74 | .mmap = drm_mmap, |
| 75 | .poll = drm_poll, | 75 | .poll = drm_poll, |
| 76 | .fasync = drm_fasync, | 76 | .fasync = drm_fasync, |
| 77 | .llseek = noop_llseek, | ||
| 77 | }, | 78 | }, |
| 78 | 79 | ||
| 79 | .pci_driver = { | 80 | .pci_driver = { |
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 5e43d7076789..048149748fdc 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c | |||
| @@ -782,6 +782,7 @@ static const struct file_operations i915_wedged_fops = { | |||
| 782 | .open = i915_wedged_open, | 782 | .open = i915_wedged_open, |
| 783 | .read = i915_wedged_read, | 783 | .read = i915_wedged_read, |
| 784 | .write = i915_wedged_write, | 784 | .write = i915_wedged_write, |
| 785 | .llseek = default_llseek, | ||
| 785 | }; | 786 | }; |
| 786 | 787 | ||
| 787 | /* As the drm_debugfs_init() routines are called before dev->dev_private is | 788 | /* As the drm_debugfs_init() routines are called before dev->dev_private is |
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index 6dbe14cc4f74..895ab896e336 100644 --- a/drivers/gpu/drm/i915/i915_drv.c +++ b/drivers/gpu/drm/i915/i915_drv.c | |||
| @@ -548,6 +548,7 @@ static struct drm_driver driver = { | |||
| 548 | #ifdef CONFIG_COMPAT | 548 | #ifdef CONFIG_COMPAT |
| 549 | .compat_ioctl = i915_compat_ioctl, | 549 | .compat_ioctl = i915_compat_ioctl, |
| 550 | #endif | 550 | #endif |
| 551 | .llseek = noop_llseek, | ||
| 551 | }, | 552 | }, |
| 552 | 553 | ||
| 553 | .pci_driver = { | 554 | .pci_driver = { |
diff --git a/drivers/gpu/drm/mga/mga_drv.c b/drivers/gpu/drm/mga/mga_drv.c index 26d0d8ced80d..ac64f0b0392e 100644 --- a/drivers/gpu/drm/mga/mga_drv.c +++ b/drivers/gpu/drm/mga/mga_drv.c | |||
| @@ -75,6 +75,7 @@ static struct drm_driver driver = { | |||
| 75 | #ifdef CONFIG_COMPAT | 75 | #ifdef CONFIG_COMPAT |
| 76 | .compat_ioctl = mga_compat_ioctl, | 76 | .compat_ioctl = mga_compat_ioctl, |
| 77 | #endif | 77 | #endif |
| 78 | .llseek = noop_llseek, | ||
| 78 | }, | 79 | }, |
| 79 | .pci_driver = { | 80 | .pci_driver = { |
| 80 | .name = DRIVER_NAME, | 81 | .name = DRIVER_NAME, |
diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.c b/drivers/gpu/drm/nouveau/nouveau_drv.c index 1de5eb53e016..eb15345162a0 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drv.c +++ b/drivers/gpu/drm/nouveau/nouveau_drv.c | |||
| @@ -393,6 +393,7 @@ static struct drm_driver driver = { | |||
| 393 | #if defined(CONFIG_COMPAT) | 393 | #if defined(CONFIG_COMPAT) |
| 394 | .compat_ioctl = nouveau_compat_ioctl, | 394 | .compat_ioctl = nouveau_compat_ioctl, |
| 395 | #endif | 395 | #endif |
| 396 | .llseek = noop_llseek, | ||
| 396 | }, | 397 | }, |
| 397 | .pci_driver = { | 398 | .pci_driver = { |
| 398 | .name = DRIVER_NAME, | 399 | .name = DRIVER_NAME, |
diff --git a/drivers/gpu/drm/r128/r128_drv.c b/drivers/gpu/drm/r128/r128_drv.c index 1e2971f13aa1..d42c76c23714 100644 --- a/drivers/gpu/drm/r128/r128_drv.c +++ b/drivers/gpu/drm/r128/r128_drv.c | |||
| @@ -71,6 +71,7 @@ static struct drm_driver driver = { | |||
| 71 | #ifdef CONFIG_COMPAT | 71 | #ifdef CONFIG_COMPAT |
| 72 | .compat_ioctl = r128_compat_ioctl, | 72 | .compat_ioctl = r128_compat_ioctl, |
| 73 | #endif | 73 | #endif |
| 74 | .llseek = noop_llseek, | ||
| 74 | }, | 75 | }, |
| 75 | .pci_driver = { | 76 | .pci_driver = { |
| 76 | .name = DRIVER_NAME, | 77 | .name = DRIVER_NAME, |
diff --git a/drivers/gpu/drm/radeon/radeon_drv.c b/drivers/gpu/drm/radeon/radeon_drv.c index 795403b0e2cd..29c1237c2e7b 100644 --- a/drivers/gpu/drm/radeon/radeon_drv.c +++ b/drivers/gpu/drm/radeon/radeon_drv.c | |||
| @@ -219,6 +219,7 @@ static struct drm_driver driver_old = { | |||
| 219 | #ifdef CONFIG_COMPAT | 219 | #ifdef CONFIG_COMPAT |
| 220 | .compat_ioctl = radeon_compat_ioctl, | 220 | .compat_ioctl = radeon_compat_ioctl, |
| 221 | #endif | 221 | #endif |
| 222 | .llseek = noop_llseek, | ||
| 222 | }, | 223 | }, |
| 223 | 224 | ||
| 224 | .pci_driver = { | 225 | .pci_driver = { |
diff --git a/drivers/gpu/drm/savage/savage_drv.c b/drivers/gpu/drm/savage/savage_drv.c index 021de44c15ab..2a2830f5a840 100644 --- a/drivers/gpu/drm/savage/savage_drv.c +++ b/drivers/gpu/drm/savage/savage_drv.c | |||
| @@ -54,6 +54,7 @@ static struct drm_driver driver = { | |||
| 54 | .mmap = drm_mmap, | 54 | .mmap = drm_mmap, |
| 55 | .poll = drm_poll, | 55 | .poll = drm_poll, |
| 56 | .fasync = drm_fasync, | 56 | .fasync = drm_fasync, |
| 57 | .llseek = noop_llseek, | ||
| 57 | }, | 58 | }, |
| 58 | 59 | ||
| 59 | .pci_driver = { | 60 | .pci_driver = { |
diff --git a/drivers/gpu/drm/sis/sis_drv.c b/drivers/gpu/drm/sis/sis_drv.c index 776bf9e9ea1a..4bb10ef6676a 100644 --- a/drivers/gpu/drm/sis/sis_drv.c +++ b/drivers/gpu/drm/sis/sis_drv.c | |||
| @@ -83,6 +83,7 @@ static struct drm_driver driver = { | |||
| 83 | .mmap = drm_mmap, | 83 | .mmap = drm_mmap, |
| 84 | .poll = drm_poll, | 84 | .poll = drm_poll, |
| 85 | .fasync = drm_fasync, | 85 | .fasync = drm_fasync, |
| 86 | .llseek = noop_llseek, | ||
| 86 | }, | 87 | }, |
| 87 | .pci_driver = { | 88 | .pci_driver = { |
| 88 | .name = DRIVER_NAME, | 89 | .name = DRIVER_NAME, |
diff --git a/drivers/gpu/drm/tdfx/tdfx_drv.c b/drivers/gpu/drm/tdfx/tdfx_drv.c index ec5a43e65722..640567ef713d 100644 --- a/drivers/gpu/drm/tdfx/tdfx_drv.c +++ b/drivers/gpu/drm/tdfx/tdfx_drv.c | |||
| @@ -52,6 +52,7 @@ static struct drm_driver driver = { | |||
| 52 | .mmap = drm_mmap, | 52 | .mmap = drm_mmap, |
| 53 | .poll = drm_poll, | 53 | .poll = drm_poll, |
| 54 | .fasync = drm_fasync, | 54 | .fasync = drm_fasync, |
| 55 | .llseek = noop_llseek, | ||
| 55 | }, | 56 | }, |
| 56 | .pci_driver = { | 57 | .pci_driver = { |
| 57 | .name = DRIVER_NAME, | 58 | .name = DRIVER_NAME, |
diff --git a/drivers/gpu/drm/via/via_drv.c b/drivers/gpu/drm/via/via_drv.c index 7a1b210401e0..b8984a5ae521 100644 --- a/drivers/gpu/drm/via/via_drv.c +++ b/drivers/gpu/drm/via/via_drv.c | |||
| @@ -62,6 +62,7 @@ static struct drm_driver driver = { | |||
| 62 | .mmap = drm_mmap, | 62 | .mmap = drm_mmap, |
| 63 | .poll = drm_poll, | 63 | .poll = drm_poll, |
| 64 | .fasync = drm_fasync, | 64 | .fasync = drm_fasync, |
| 65 | .llseek = noop_llseek, | ||
| 65 | }, | 66 | }, |
| 66 | .pci_driver = { | 67 | .pci_driver = { |
| 67 | .name = DRIVER_NAME, | 68 | .name = DRIVER_NAME, |
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c index a96ed6d9d010..2ef93df9e8ae 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | |||
| @@ -820,6 +820,7 @@ static struct drm_driver driver = { | |||
| 820 | #if defined(CONFIG_COMPAT) | 820 | #if defined(CONFIG_COMPAT) |
| 821 | .compat_ioctl = drm_compat_ioctl, | 821 | .compat_ioctl = drm_compat_ioctl, |
| 822 | #endif | 822 | #endif |
| 823 | .llseek = noop_llseek, | ||
| 823 | }, | 824 | }, |
| 824 | .pci_driver = { | 825 | .pci_driver = { |
| 825 | .name = VMWGFX_DRIVER_NAME, | 826 | .name = VMWGFX_DRIVER_NAME, |
diff --git a/drivers/gpu/vga/vgaarb.c b/drivers/gpu/vga/vgaarb.c index f366f968155a..c380c65da417 100644 --- a/drivers/gpu/vga/vgaarb.c +++ b/drivers/gpu/vga/vgaarb.c | |||
| @@ -1211,6 +1211,7 @@ static const struct file_operations vga_arb_device_fops = { | |||
| 1211 | .poll = vga_arb_fpoll, | 1211 | .poll = vga_arb_fpoll, |
| 1212 | .open = vga_arb_open, | 1212 | .open = vga_arb_open, |
| 1213 | .release = vga_arb_release, | 1213 | .release = vga_arb_release, |
| 1214 | .llseek = noop_llseek, | ||
| 1214 | }; | 1215 | }; |
| 1215 | 1216 | ||
| 1216 | static struct miscdevice vga_arb_device = { | 1217 | static struct miscdevice vga_arb_device = { |
diff --git a/drivers/hid/hid-debug.c b/drivers/hid/hid-debug.c index 850d02a7a925..61a3e572224a 100644 --- a/drivers/hid/hid-debug.c +++ b/drivers/hid/hid-debug.c | |||
| @@ -1051,6 +1051,7 @@ static const struct file_operations hid_debug_events_fops = { | |||
| 1051 | .read = hid_debug_events_read, | 1051 | .read = hid_debug_events_read, |
| 1052 | .poll = hid_debug_events_poll, | 1052 | .poll = hid_debug_events_poll, |
| 1053 | .release = hid_debug_events_release, | 1053 | .release = hid_debug_events_release, |
| 1054 | .llseek = noop_llseek, | ||
| 1054 | }; | 1055 | }; |
| 1055 | 1056 | ||
| 1056 | 1057 | ||
diff --git a/drivers/hid/hid-roccat.c b/drivers/hid/hid-roccat.c index f6e80c7ca61e..5a6879e235ac 100644 --- a/drivers/hid/hid-roccat.c +++ b/drivers/hid/hid-roccat.c | |||
| @@ -384,6 +384,7 @@ static const struct file_operations roccat_ops = { | |||
| 384 | .poll = roccat_poll, | 384 | .poll = roccat_poll, |
| 385 | .open = roccat_open, | 385 | .open = roccat_open, |
| 386 | .release = roccat_release, | 386 | .release = roccat_release, |
| 387 | .llseek = noop_llseek, | ||
| 387 | }; | 388 | }; |
| 388 | 389 | ||
| 389 | static int __init roccat_init(void) | 390 | static int __init roccat_init(void) |
diff --git a/drivers/hid/hidraw.c b/drivers/hid/hidraw.c index a3866b5c0c43..925992f549f0 100644 --- a/drivers/hid/hidraw.c +++ b/drivers/hid/hidraw.c | |||
| @@ -340,6 +340,7 @@ static const struct file_operations hidraw_ops = { | |||
| 340 | .open = hidraw_open, | 340 | .open = hidraw_open, |
| 341 | .release = hidraw_release, | 341 | .release = hidraw_release, |
| 342 | .unlocked_ioctl = hidraw_ioctl, | 342 | .unlocked_ioctl = hidraw_ioctl, |
| 343 | .llseek = noop_llseek, | ||
| 343 | }; | 344 | }; |
| 344 | 345 | ||
| 345 | void hidraw_report_event(struct hid_device *hid, u8 *data, int len) | 346 | void hidraw_report_event(struct hid_device *hid, u8 *data, int len) |
diff --git a/drivers/hid/usbhid/hiddev.c b/drivers/hid/usbhid/hiddev.c index 681e620eb95b..dfcb27613ec5 100644 --- a/drivers/hid/usbhid/hiddev.c +++ b/drivers/hid/usbhid/hiddev.c | |||
| @@ -847,6 +847,7 @@ static const struct file_operations hiddev_fops = { | |||
| 847 | #ifdef CONFIG_COMPAT | 847 | #ifdef CONFIG_COMPAT |
| 848 | .compat_ioctl = hiddev_compat_ioctl, | 848 | .compat_ioctl = hiddev_compat_ioctl, |
| 849 | #endif | 849 | #endif |
| 850 | .llseek = noop_llseek, | ||
| 850 | }; | 851 | }; |
| 851 | 852 | ||
| 852 | static char *hiddev_devnode(struct device *dev, mode_t *mode) | 853 | static char *hiddev_devnode(struct device *dev, mode_t *mode) |
diff --git a/drivers/hwmon/asus_atk0110.c b/drivers/hwmon/asus_atk0110.c index 653db1bda934..23b8555215d2 100644 --- a/drivers/hwmon/asus_atk0110.c +++ b/drivers/hwmon/asus_atk0110.c | |||
| @@ -762,6 +762,7 @@ static const struct file_operations atk_debugfs_ggrp_fops = { | |||
| 762 | .read = atk_debugfs_ggrp_read, | 762 | .read = atk_debugfs_ggrp_read, |
| 763 | .open = atk_debugfs_ggrp_open, | 763 | .open = atk_debugfs_ggrp_open, |
| 764 | .release = atk_debugfs_ggrp_release, | 764 | .release = atk_debugfs_ggrp_release, |
| 765 | .llseek = no_llseek, | ||
| 765 | }; | 766 | }; |
| 766 | 767 | ||
| 767 | static void atk_debugfs_init(struct atk_data *data) | 768 | static void atk_debugfs_init(struct atk_data *data) |
diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c index 65f0bcfb42ca..7ecb1ade8874 100644 --- a/drivers/ide/ide-tape.c +++ b/drivers/ide/ide-tape.c | |||
| @@ -1902,6 +1902,7 @@ static const struct file_operations idetape_fops = { | |||
| 1902 | .unlocked_ioctl = idetape_chrdev_ioctl, | 1902 | .unlocked_ioctl = idetape_chrdev_ioctl, |
| 1903 | .open = idetape_chrdev_open, | 1903 | .open = idetape_chrdev_open, |
| 1904 | .release = idetape_chrdev_release, | 1904 | .release = idetape_chrdev_release, |
| 1905 | .llseek = noop_llseek, | ||
| 1905 | }; | 1906 | }; |
| 1906 | 1907 | ||
| 1907 | static int idetape_open(struct block_device *bdev, fmode_t mode) | 1908 | static int idetape_open(struct block_device *bdev, fmode_t mode) |
diff --git a/drivers/idle/i7300_idle.c b/drivers/idle/i7300_idle.c index 15341fc1c68b..c976285d313e 100644 --- a/drivers/idle/i7300_idle.c +++ b/drivers/idle/i7300_idle.c | |||
| @@ -536,6 +536,7 @@ static ssize_t stats_read_ul(struct file *fp, char __user *ubuf, size_t count, | |||
| 536 | static const struct file_operations idle_fops = { | 536 | static const struct file_operations idle_fops = { |
| 537 | .open = stats_open_generic, | 537 | .open = stats_open_generic, |
| 538 | .read = stats_read_ul, | 538 | .read = stats_read_ul, |
| 539 | .llseek = default_llseek, | ||
| 539 | }; | 540 | }; |
| 540 | 541 | ||
| 541 | struct debugfs_file_info { | 542 | struct debugfs_file_info { |
diff --git a/drivers/infiniband/hw/ipath/ipath_diag.c b/drivers/infiniband/hw/ipath/ipath_diag.c index d4ce8b63e19e..daef61d5e5bb 100644 --- a/drivers/infiniband/hw/ipath/ipath_diag.c +++ b/drivers/infiniband/hw/ipath/ipath_diag.c | |||
| @@ -65,7 +65,8 @@ static const struct file_operations diag_file_ops = { | |||
| 65 | .write = ipath_diag_write, | 65 | .write = ipath_diag_write, |
| 66 | .read = ipath_diag_read, | 66 | .read = ipath_diag_read, |
| 67 | .open = ipath_diag_open, | 67 | .open = ipath_diag_open, |
| 68 | .release = ipath_diag_release | 68 | .release = ipath_diag_release, |
| 69 | .llseek = default_llseek, | ||
| 69 | }; | 70 | }; |
| 70 | 71 | ||
| 71 | static ssize_t ipath_diagpkt_write(struct file *fp, | 72 | static ssize_t ipath_diagpkt_write(struct file *fp, |
| @@ -75,6 +76,7 @@ static ssize_t ipath_diagpkt_write(struct file *fp, | |||
| 75 | static const struct file_operations diagpkt_file_ops = { | 76 | static const struct file_operations diagpkt_file_ops = { |
| 76 | .owner = THIS_MODULE, | 77 | .owner = THIS_MODULE, |
| 77 | .write = ipath_diagpkt_write, | 78 | .write = ipath_diagpkt_write, |
| 79 | .llseek = noop_llseek, | ||
| 78 | }; | 80 | }; |
| 79 | 81 | ||
| 80 | static atomic_t diagpkt_count = ATOMIC_INIT(0); | 82 | static atomic_t diagpkt_count = ATOMIC_INIT(0); |
diff --git a/drivers/infiniband/hw/ipath/ipath_file_ops.c b/drivers/infiniband/hw/ipath/ipath_file_ops.c index 65eb8929db22..6078992da3f0 100644 --- a/drivers/infiniband/hw/ipath/ipath_file_ops.c +++ b/drivers/infiniband/hw/ipath/ipath_file_ops.c | |||
| @@ -63,7 +63,8 @@ static const struct file_operations ipath_file_ops = { | |||
| 63 | .open = ipath_open, | 63 | .open = ipath_open, |
| 64 | .release = ipath_close, | 64 | .release = ipath_close, |
| 65 | .poll = ipath_poll, | 65 | .poll = ipath_poll, |
| 66 | .mmap = ipath_mmap | 66 | .mmap = ipath_mmap, |
| 67 | .llseek = noop_llseek, | ||
| 67 | }; | 68 | }; |
| 68 | 69 | ||
| 69 | /* | 70 | /* |
diff --git a/drivers/infiniband/hw/ipath/ipath_fs.c b/drivers/infiniband/hw/ipath/ipath_fs.c index 2fca70836dae..d13e72685dcf 100644 --- a/drivers/infiniband/hw/ipath/ipath_fs.c +++ b/drivers/infiniband/hw/ipath/ipath_fs.c | |||
| @@ -103,6 +103,7 @@ static ssize_t atomic_stats_read(struct file *file, char __user *buf, | |||
| 103 | 103 | ||
| 104 | static const struct file_operations atomic_stats_ops = { | 104 | static const struct file_operations atomic_stats_ops = { |
| 105 | .read = atomic_stats_read, | 105 | .read = atomic_stats_read, |
| 106 | .llseek = default_llseek, | ||
| 106 | }; | 107 | }; |
| 107 | 108 | ||
| 108 | static ssize_t atomic_counters_read(struct file *file, char __user *buf, | 109 | static ssize_t atomic_counters_read(struct file *file, char __user *buf, |
| @@ -120,6 +121,7 @@ static ssize_t atomic_counters_read(struct file *file, char __user *buf, | |||
| 120 | 121 | ||
| 121 | static const struct file_operations atomic_counters_ops = { | 122 | static const struct file_operations atomic_counters_ops = { |
| 122 | .read = atomic_counters_read, | 123 | .read = atomic_counters_read, |
| 124 | .llseek = default_llseek, | ||
| 123 | }; | 125 | }; |
| 124 | 126 | ||
| 125 | static ssize_t flash_read(struct file *file, char __user *buf, | 127 | static ssize_t flash_read(struct file *file, char __user *buf, |
| @@ -224,6 +226,7 @@ bail: | |||
| 224 | static const struct file_operations flash_ops = { | 226 | static const struct file_operations flash_ops = { |
| 225 | .read = flash_read, | 227 | .read = flash_read, |
| 226 | .write = flash_write, | 228 | .write = flash_write, |
| 229 | .llseek = default_llseek, | ||
| 227 | }; | 230 | }; |
| 228 | 231 | ||
| 229 | static int create_device_files(struct super_block *sb, | 232 | static int create_device_files(struct super_block *sb, |
diff --git a/drivers/infiniband/hw/qib/qib_diag.c b/drivers/infiniband/hw/qib/qib_diag.c index 05dcf0d9a7d3..204c4dd9dce0 100644 --- a/drivers/infiniband/hw/qib/qib_diag.c +++ b/drivers/infiniband/hw/qib/qib_diag.c | |||
| @@ -136,7 +136,8 @@ static const struct file_operations diag_file_ops = { | |||
| 136 | .write = qib_diag_write, | 136 | .write = qib_diag_write, |
| 137 | .read = qib_diag_read, | 137 | .read = qib_diag_read, |
| 138 | .open = qib_diag_open, | 138 | .open = qib_diag_open, |
| 139 | .release = qib_diag_release | 139 | .release = qib_diag_release, |
| 140 | .llseek = default_llseek, | ||
| 140 | }; | 141 | }; |
| 141 | 142 | ||
| 142 | static atomic_t diagpkt_count = ATOMIC_INIT(0); | 143 | static atomic_t diagpkt_count = ATOMIC_INIT(0); |
| @@ -149,6 +150,7 @@ static ssize_t qib_diagpkt_write(struct file *fp, const char __user *data, | |||
| 149 | static const struct file_operations diagpkt_file_ops = { | 150 | static const struct file_operations diagpkt_file_ops = { |
| 150 | .owner = THIS_MODULE, | 151 | .owner = THIS_MODULE, |
| 151 | .write = qib_diagpkt_write, | 152 | .write = qib_diagpkt_write, |
| 153 | .llseek = noop_llseek, | ||
| 152 | }; | 154 | }; |
| 153 | 155 | ||
| 154 | int qib_diag_add(struct qib_devdata *dd) | 156 | int qib_diag_add(struct qib_devdata *dd) |
diff --git a/drivers/infiniband/hw/qib/qib_file_ops.c b/drivers/infiniband/hw/qib/qib_file_ops.c index 6b11645edf35..aa2be214270f 100644 --- a/drivers/infiniband/hw/qib/qib_file_ops.c +++ b/drivers/infiniband/hw/qib/qib_file_ops.c | |||
| @@ -63,7 +63,8 @@ static const struct file_operations qib_file_ops = { | |||
| 63 | .open = qib_open, | 63 | .open = qib_open, |
| 64 | .release = qib_close, | 64 | .release = qib_close, |
| 65 | .poll = qib_poll, | 65 | .poll = qib_poll, |
| 66 | .mmap = qib_mmapf | 66 | .mmap = qib_mmapf, |
| 67 | .llseek = noop_llseek, | ||
| 67 | }; | 68 | }; |
| 68 | 69 | ||
| 69 | /* | 70 | /* |
diff --git a/drivers/infiniband/hw/qib/qib_fs.c b/drivers/infiniband/hw/qib/qib_fs.c index 9f989c0ba9d3..a0e6613e8be6 100644 --- a/drivers/infiniband/hw/qib/qib_fs.c +++ b/drivers/infiniband/hw/qib/qib_fs.c | |||
| @@ -367,6 +367,7 @@ bail: | |||
| 367 | static const struct file_operations flash_ops = { | 367 | static const struct file_operations flash_ops = { |
| 368 | .read = flash_read, | 368 | .read = flash_read, |
| 369 | .write = flash_write, | 369 | .write = flash_write, |
| 370 | .llseek = default_llseek, | ||
| 370 | }; | 371 | }; |
| 371 | 372 | ||
| 372 | static int add_cntr_files(struct super_block *sb, struct qib_devdata *dd) | 373 | static int add_cntr_files(struct super_block *sb, struct qib_devdata *dd) |
diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c index af9ee313c10b..535fea4fe67f 100644 --- a/drivers/input/evdev.c +++ b/drivers/input/evdev.c | |||
| @@ -767,7 +767,8 @@ static const struct file_operations evdev_fops = { | |||
| 767 | .compat_ioctl = evdev_ioctl_compat, | 767 | .compat_ioctl = evdev_ioctl_compat, |
| 768 | #endif | 768 | #endif |
| 769 | .fasync = evdev_fasync, | 769 | .fasync = evdev_fasync, |
| 770 | .flush = evdev_flush | 770 | .flush = evdev_flush, |
| 771 | .llseek = no_llseek, | ||
| 771 | }; | 772 | }; |
| 772 | 773 | ||
| 773 | static int evdev_install_chrdev(struct evdev *evdev) | 774 | static int evdev_install_chrdev(struct evdev *evdev) |
diff --git a/drivers/input/input.c b/drivers/input/input.c index ab6982056518..7919c2537225 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c | |||
| @@ -2047,6 +2047,7 @@ out: | |||
| 2047 | static const struct file_operations input_fops = { | 2047 | static const struct file_operations input_fops = { |
| 2048 | .owner = THIS_MODULE, | 2048 | .owner = THIS_MODULE, |
| 2049 | .open = input_open_file, | 2049 | .open = input_open_file, |
| 2050 | .llseek = noop_llseek, | ||
| 2050 | }; | 2051 | }; |
| 2051 | 2052 | ||
| 2052 | static int __init input_init(void) | 2053 | static int __init input_init(void) |
diff --git a/drivers/input/joydev.c b/drivers/input/joydev.c index 22239e988498..9d424cebfd2c 100644 --- a/drivers/input/joydev.c +++ b/drivers/input/joydev.c | |||
| @@ -739,6 +739,7 @@ static const struct file_operations joydev_fops = { | |||
| 739 | .compat_ioctl = joydev_compat_ioctl, | 739 | .compat_ioctl = joydev_compat_ioctl, |
| 740 | #endif | 740 | #endif |
| 741 | .fasync = joydev_fasync, | 741 | .fasync = joydev_fasync, |
| 742 | .llseek = no_llseek, | ||
| 742 | }; | 743 | }; |
| 743 | 744 | ||
| 744 | static int joydev_install_chrdev(struct joydev *joydev) | 745 | static int joydev_install_chrdev(struct joydev *joydev) |
diff --git a/drivers/input/misc/uinput.c b/drivers/input/misc/uinput.c index 360698553eb5..b9410784e6a1 100644 --- a/drivers/input/misc/uinput.c +++ b/drivers/input/misc/uinput.c | |||
| @@ -811,6 +811,7 @@ static const struct file_operations uinput_fops = { | |||
| 811 | #ifdef CONFIG_COMPAT | 811 | #ifdef CONFIG_COMPAT |
| 812 | .compat_ioctl = uinput_compat_ioctl, | 812 | .compat_ioctl = uinput_compat_ioctl, |
| 813 | #endif | 813 | #endif |
| 814 | .llseek = no_llseek, | ||
| 814 | }; | 815 | }; |
| 815 | 816 | ||
| 816 | static struct miscdevice uinput_misc = { | 817 | static struct miscdevice uinput_misc = { |
diff --git a/drivers/input/mousedev.c b/drivers/input/mousedev.c index d528a2dba064..31ec7265aac6 100644 --- a/drivers/input/mousedev.c +++ b/drivers/input/mousedev.c | |||
| @@ -792,6 +792,7 @@ static const struct file_operations mousedev_fops = { | |||
| 792 | .open = mousedev_open, | 792 | .open = mousedev_open, |
| 793 | .release = mousedev_release, | 793 | .release = mousedev_release, |
| 794 | .fasync = mousedev_fasync, | 794 | .fasync = mousedev_fasync, |
| 795 | .llseek = noop_llseek, | ||
| 795 | }; | 796 | }; |
| 796 | 797 | ||
| 797 | static int mousedev_install_chrdev(struct mousedev *mousedev) | 798 | static int mousedev_install_chrdev(struct mousedev *mousedev) |
diff --git a/drivers/input/serio/serio_raw.c b/drivers/input/serio/serio_raw.c index 998664854440..cd82bb125915 100644 --- a/drivers/input/serio/serio_raw.c +++ b/drivers/input/serio/serio_raw.c | |||
| @@ -243,6 +243,7 @@ static const struct file_operations serio_raw_fops = { | |||
| 243 | .write = serio_raw_write, | 243 | .write = serio_raw_write, |
| 244 | .poll = serio_raw_poll, | 244 | .poll = serio_raw_poll, |
| 245 | .fasync = serio_raw_fasync, | 245 | .fasync = serio_raw_fasync, |
| 246 | .llseek = noop_llseek, | ||
| 246 | }; | 247 | }; |
| 247 | 248 | ||
| 248 | 249 | ||
diff --git a/drivers/isdn/mISDN/timerdev.c b/drivers/isdn/mISDN/timerdev.c index de43c8c70ad0..859c81e9483b 100644 --- a/drivers/isdn/mISDN/timerdev.c +++ b/drivers/isdn/mISDN/timerdev.c | |||
| @@ -267,6 +267,7 @@ static const struct file_operations mISDN_fops = { | |||
| 267 | .unlocked_ioctl = mISDN_ioctl, | 267 | .unlocked_ioctl = mISDN_ioctl, |
| 268 | .open = mISDN_open, | 268 | .open = mISDN_open, |
| 269 | .release = mISDN_close, | 269 | .release = mISDN_close, |
| 270 | .llseek = no_llseek, | ||
| 270 | }; | 271 | }; |
| 271 | 272 | ||
| 272 | static struct miscdevice mISDNtimer = { | 273 | static struct miscdevice mISDNtimer = { |
diff --git a/drivers/lguest/lguest_user.c b/drivers/lguest/lguest_user.c index 85b714df8eae..3c781cdddda9 100644 --- a/drivers/lguest/lguest_user.c +++ b/drivers/lguest/lguest_user.c | |||
| @@ -514,6 +514,7 @@ static const struct file_operations lguest_fops = { | |||
| 514 | .release = close, | 514 | .release = close, |
| 515 | .write = write, | 515 | .write = write, |
| 516 | .read = read, | 516 | .read = read, |
| 517 | .llseek = default_llseek, | ||
| 517 | }; | 518 | }; |
| 518 | 519 | ||
| 519 | /* | 520 | /* |
diff --git a/drivers/macintosh/ans-lcd.c b/drivers/macintosh/ans-lcd.c index a3d25da2f275..1a57e88a38f7 100644 --- a/drivers/macintosh/ans-lcd.c +++ b/drivers/macintosh/ans-lcd.c | |||
| @@ -137,6 +137,7 @@ const struct file_operations anslcd_fops = { | |||
| 137 | .write = anslcd_write, | 137 | .write = anslcd_write, |
| 138 | .unlocked_ioctl = anslcd_ioctl, | 138 | .unlocked_ioctl = anslcd_ioctl, |
| 139 | .open = anslcd_open, | 139 | .open = anslcd_open, |
| 140 | .llseek = default_llseek, | ||
| 140 | }; | 141 | }; |
| 141 | 142 | ||
| 142 | static struct miscdevice anslcd_dev = { | 143 | static struct miscdevice anslcd_dev = { |
diff --git a/drivers/macintosh/via-pmu.c b/drivers/macintosh/via-pmu.c index 7b8b1de03db4..cd29c8248386 100644 --- a/drivers/macintosh/via-pmu.c +++ b/drivers/macintosh/via-pmu.c | |||
| @@ -2399,6 +2399,7 @@ static const struct file_operations pmu_device_fops = { | |||
| 2399 | #endif | 2399 | #endif |
| 2400 | .open = pmu_open, | 2400 | .open = pmu_open, |
| 2401 | .release = pmu_release, | 2401 | .release = pmu_release, |
| 2402 | .llseek = noop_llseek, | ||
| 2402 | }; | 2403 | }; |
| 2403 | 2404 | ||
| 2404 | static struct miscdevice pmu_device = { | 2405 | static struct miscdevice pmu_device = { |
diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c index 3e39193e5036..4b54618b4159 100644 --- a/drivers/md/dm-ioctl.c +++ b/drivers/md/dm-ioctl.c | |||
| @@ -1596,6 +1596,7 @@ static const struct file_operations _ctl_fops = { | |||
| 1596 | .unlocked_ioctl = dm_ctl_ioctl, | 1596 | .unlocked_ioctl = dm_ctl_ioctl, |
| 1597 | .compat_ioctl = dm_compat_ctl_ioctl, | 1597 | .compat_ioctl = dm_compat_ctl_ioctl, |
| 1598 | .owner = THIS_MODULE, | 1598 | .owner = THIS_MODULE, |
| 1599 | .llseek = noop_llseek, | ||
| 1599 | }; | 1600 | }; |
| 1600 | 1601 | ||
| 1601 | static struct miscdevice _dm_misc = { | 1602 | static struct miscdevice _dm_misc = { |
diff --git a/drivers/media/IR/imon.c b/drivers/media/IR/imon.c index c185422ef28c..faed5a332c71 100644 --- a/drivers/media/IR/imon.c +++ b/drivers/media/IR/imon.c | |||
| @@ -151,7 +151,8 @@ static const struct file_operations vfd_fops = { | |||
| 151 | .owner = THIS_MODULE, | 151 | .owner = THIS_MODULE, |
| 152 | .open = &display_open, | 152 | .open = &display_open, |
| 153 | .write = &vfd_write, | 153 | .write = &vfd_write, |
| 154 | .release = &display_close | 154 | .release = &display_close, |
| 155 | .llseek = noop_llseek, | ||
| 155 | }; | 156 | }; |
| 156 | 157 | ||
| 157 | /* lcd character device file operations */ | 158 | /* lcd character device file operations */ |
| @@ -159,7 +160,8 @@ static const struct file_operations lcd_fops = { | |||
| 159 | .owner = THIS_MODULE, | 160 | .owner = THIS_MODULE, |
| 160 | .open = &display_open, | 161 | .open = &display_open, |
| 161 | .write = &lcd_write, | 162 | .write = &lcd_write, |
| 162 | .release = &display_close | 163 | .release = &display_close, |
| 164 | .llseek = noop_llseek, | ||
| 163 | }; | 165 | }; |
| 164 | 166 | ||
| 165 | enum { | 167 | enum { |
diff --git a/drivers/media/IR/ir-lirc-codec.c b/drivers/media/IR/ir-lirc-codec.c index e63f757d5d72..1983cd3f3994 100644 --- a/drivers/media/IR/ir-lirc-codec.c +++ b/drivers/media/IR/ir-lirc-codec.c | |||
| @@ -235,6 +235,7 @@ static struct file_operations lirc_fops = { | |||
| 235 | .poll = lirc_dev_fop_poll, | 235 | .poll = lirc_dev_fop_poll, |
| 236 | .open = lirc_dev_fop_open, | 236 | .open = lirc_dev_fop_open, |
| 237 | .release = lirc_dev_fop_close, | 237 | .release = lirc_dev_fop_close, |
| 238 | .llseek = no_llseek, | ||
| 238 | }; | 239 | }; |
| 239 | 240 | ||
| 240 | static int ir_lirc_register(struct input_dev *input_dev) | 241 | static int ir_lirc_register(struct input_dev *input_dev) |
diff --git a/drivers/media/IR/lirc_dev.c b/drivers/media/IR/lirc_dev.c index 899891bec352..0acf6396e068 100644 --- a/drivers/media/IR/lirc_dev.c +++ b/drivers/media/IR/lirc_dev.c | |||
| @@ -163,6 +163,7 @@ static struct file_operations fops = { | |||
| 163 | .unlocked_ioctl = lirc_dev_fop_ioctl, | 163 | .unlocked_ioctl = lirc_dev_fop_ioctl, |
| 164 | .open = lirc_dev_fop_open, | 164 | .open = lirc_dev_fop_open, |
| 165 | .release = lirc_dev_fop_close, | 165 | .release = lirc_dev_fop_close, |
| 166 | .llseek = noop_llseek, | ||
| 166 | }; | 167 | }; |
| 167 | 168 | ||
| 168 | static int lirc_cdev_add(struct irctl *ir) | 169 | static int lirc_cdev_add(struct irctl *ir) |
| @@ -460,6 +461,8 @@ error: | |||
| 460 | 461 | ||
| 461 | mutex_unlock(&lirc_dev_lock); | 462 | mutex_unlock(&lirc_dev_lock); |
| 462 | 463 | ||
| 464 | nonseekable_open(inode, file); | ||
| 465 | |||
| 463 | return retval; | 466 | return retval; |
| 464 | } | 467 | } |
| 465 | EXPORT_SYMBOL(lirc_dev_fop_open); | 468 | EXPORT_SYMBOL(lirc_dev_fop_open); |
diff --git a/drivers/media/dvb/bt8xx/dst_ca.c b/drivers/media/dvb/bt8xx/dst_ca.c index d75788b4e22e..48e48e8af55a 100644 --- a/drivers/media/dvb/bt8xx/dst_ca.c +++ b/drivers/media/dvb/bt8xx/dst_ca.c | |||
| @@ -695,7 +695,8 @@ static const struct file_operations dst_ca_fops = { | |||
| 695 | .open = dst_ca_open, | 695 | .open = dst_ca_open, |
| 696 | .release = dst_ca_release, | 696 | .release = dst_ca_release, |
| 697 | .read = dst_ca_read, | 697 | .read = dst_ca_read, |
| 698 | .write = dst_ca_write | 698 | .write = dst_ca_write, |
| 699 | .llseek = noop_llseek, | ||
| 699 | }; | 700 | }; |
| 700 | 701 | ||
| 701 | static struct dvb_device dvbdev_ca = { | 702 | static struct dvb_device dvbdev_ca = { |
diff --git a/drivers/media/dvb/dvb-core/dmxdev.c b/drivers/media/dvb/dvb-core/dmxdev.c index 2de13b04b09d..ad1f61d301e1 100644 --- a/drivers/media/dvb/dvb-core/dmxdev.c +++ b/drivers/media/dvb/dvb-core/dmxdev.c | |||
| @@ -1143,6 +1143,7 @@ static const struct file_operations dvb_demux_fops = { | |||
| 1143 | .open = dvb_demux_open, | 1143 | .open = dvb_demux_open, |
| 1144 | .release = dvb_demux_release, | 1144 | .release = dvb_demux_release, |
| 1145 | .poll = dvb_demux_poll, | 1145 | .poll = dvb_demux_poll, |
| 1146 | .llseek = default_llseek, | ||
| 1146 | }; | 1147 | }; |
| 1147 | 1148 | ||
| 1148 | static struct dvb_device dvbdev_demux = { | 1149 | static struct dvb_device dvbdev_demux = { |
| @@ -1212,6 +1213,7 @@ static const struct file_operations dvb_dvr_fops = { | |||
| 1212 | .open = dvb_dvr_open, | 1213 | .open = dvb_dvr_open, |
| 1213 | .release = dvb_dvr_release, | 1214 | .release = dvb_dvr_release, |
| 1214 | .poll = dvb_dvr_poll, | 1215 | .poll = dvb_dvr_poll, |
| 1216 | .llseek = default_llseek, | ||
| 1215 | }; | 1217 | }; |
| 1216 | 1218 | ||
| 1217 | static struct dvb_device dvbdev_dvr = { | 1219 | static struct dvb_device dvbdev_dvr = { |
diff --git a/drivers/media/dvb/dvb-core/dvb_ca_en50221.c b/drivers/media/dvb/dvb-core/dvb_ca_en50221.c index 1723a984a522..4d0646da6087 100644 --- a/drivers/media/dvb/dvb-core/dvb_ca_en50221.c +++ b/drivers/media/dvb/dvb-core/dvb_ca_en50221.c | |||
| @@ -1622,6 +1622,7 @@ static const struct file_operations dvb_ca_fops = { | |||
| 1622 | .open = dvb_ca_en50221_io_open, | 1622 | .open = dvb_ca_en50221_io_open, |
| 1623 | .release = dvb_ca_en50221_io_release, | 1623 | .release = dvb_ca_en50221_io_release, |
| 1624 | .poll = dvb_ca_en50221_io_poll, | 1624 | .poll = dvb_ca_en50221_io_poll, |
| 1625 | .llseek = noop_llseek, | ||
| 1625 | }; | 1626 | }; |
| 1626 | 1627 | ||
| 1627 | static struct dvb_device dvbdev_ca = { | 1628 | static struct dvb_device dvbdev_ca = { |
diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.c b/drivers/media/dvb/dvb-core/dvb_frontend.c index 4d45b7d6b3fb..970c9b8882d4 100644 --- a/drivers/media/dvb/dvb-core/dvb_frontend.c +++ b/drivers/media/dvb/dvb-core/dvb_frontend.c | |||
| @@ -2034,7 +2034,8 @@ static const struct file_operations dvb_frontend_fops = { | |||
| 2034 | .unlocked_ioctl = dvb_generic_ioctl, | 2034 | .unlocked_ioctl = dvb_generic_ioctl, |
| 2035 | .poll = dvb_frontend_poll, | 2035 | .poll = dvb_frontend_poll, |
| 2036 | .open = dvb_frontend_open, | 2036 | .open = dvb_frontend_open, |
| 2037 | .release = dvb_frontend_release | 2037 | .release = dvb_frontend_release, |
| 2038 | .llseek = noop_llseek, | ||
| 2038 | }; | 2039 | }; |
| 2039 | 2040 | ||
| 2040 | int dvb_register_frontend(struct dvb_adapter* dvb, | 2041 | int dvb_register_frontend(struct dvb_adapter* dvb, |
diff --git a/drivers/media/dvb/dvb-core/dvb_net.c b/drivers/media/dvb/dvb-core/dvb_net.c index a08032284cbf..4df42aaae7f7 100644 --- a/drivers/media/dvb/dvb-core/dvb_net.c +++ b/drivers/media/dvb/dvb-core/dvb_net.c | |||
| @@ -1468,6 +1468,7 @@ static const struct file_operations dvb_net_fops = { | |||
| 1468 | .unlocked_ioctl = dvb_net_ioctl, | 1468 | .unlocked_ioctl = dvb_net_ioctl, |
| 1469 | .open = dvb_generic_open, | 1469 | .open = dvb_generic_open, |
| 1470 | .release = dvb_net_close, | 1470 | .release = dvb_net_close, |
| 1471 | .llseek = noop_llseek, | ||
| 1471 | }; | 1472 | }; |
| 1472 | 1473 | ||
| 1473 | static struct dvb_device dvbdev_net = { | 1474 | static struct dvb_device dvbdev_net = { |
diff --git a/drivers/media/dvb/dvb-core/dvbdev.c b/drivers/media/dvb/dvb-core/dvbdev.c index 28f486edcaf0..f73287775953 100644 --- a/drivers/media/dvb/dvb-core/dvbdev.c +++ b/drivers/media/dvb/dvb-core/dvbdev.c | |||
| @@ -105,6 +105,7 @@ static const struct file_operations dvb_device_fops = | |||
| 105 | { | 105 | { |
| 106 | .owner = THIS_MODULE, | 106 | .owner = THIS_MODULE, |
| 107 | .open = dvb_device_open, | 107 | .open = dvb_device_open, |
| 108 | .llseek = noop_llseek, | ||
| 108 | }; | 109 | }; |
| 109 | 110 | ||
| 110 | static struct cdev dvb_device_cdev; | 111 | static struct cdev dvb_device_cdev; |
diff --git a/drivers/media/dvb/firewire/firedtv-ci.c b/drivers/media/dvb/firewire/firedtv-ci.c index d3c2cf60de76..8ffb565f0704 100644 --- a/drivers/media/dvb/firewire/firedtv-ci.c +++ b/drivers/media/dvb/firewire/firedtv-ci.c | |||
| @@ -220,6 +220,7 @@ static const struct file_operations fdtv_ca_fops = { | |||
| 220 | .open = dvb_generic_open, | 220 | .open = dvb_generic_open, |
| 221 | .release = dvb_generic_release, | 221 | .release = dvb_generic_release, |
| 222 | .poll = fdtv_ca_io_poll, | 222 | .poll = fdtv_ca_io_poll, |
| 223 | .llseek = noop_llseek, | ||
| 223 | }; | 224 | }; |
| 224 | 225 | ||
| 225 | static struct dvb_device fdtv_ca = { | 226 | static struct dvb_device fdtv_ca = { |
diff --git a/drivers/media/dvb/ttpci/av7110.c b/drivers/media/dvb/ttpci/av7110.c index a6be529eec5c..893fbc57c72f 100644 --- a/drivers/media/dvb/ttpci/av7110.c +++ b/drivers/media/dvb/ttpci/av7110.c | |||
| @@ -730,6 +730,7 @@ static const struct file_operations dvb_osd_fops = { | |||
| 730 | .unlocked_ioctl = dvb_generic_ioctl, | 730 | .unlocked_ioctl = dvb_generic_ioctl, |
| 731 | .open = dvb_generic_open, | 731 | .open = dvb_generic_open, |
| 732 | .release = dvb_generic_release, | 732 | .release = dvb_generic_release, |
| 733 | .llseek = noop_llseek, | ||
| 733 | }; | 734 | }; |
| 734 | 735 | ||
| 735 | static struct dvb_device dvbdev_osd = { | 736 | static struct dvb_device dvbdev_osd = { |
diff --git a/drivers/media/dvb/ttpci/av7110_av.c b/drivers/media/dvb/ttpci/av7110_av.c index 13efba942dac..6ef3996565ad 100644 --- a/drivers/media/dvb/ttpci/av7110_av.c +++ b/drivers/media/dvb/ttpci/av7110_av.c | |||
| @@ -1521,6 +1521,7 @@ static const struct file_operations dvb_video_fops = { | |||
| 1521 | .open = dvb_video_open, | 1521 | .open = dvb_video_open, |
| 1522 | .release = dvb_video_release, | 1522 | .release = dvb_video_release, |
| 1523 | .poll = dvb_video_poll, | 1523 | .poll = dvb_video_poll, |
| 1524 | .llseek = noop_llseek, | ||
| 1524 | }; | 1525 | }; |
| 1525 | 1526 | ||
| 1526 | static struct dvb_device dvbdev_video = { | 1527 | static struct dvb_device dvbdev_video = { |
| @@ -1539,6 +1540,7 @@ static const struct file_operations dvb_audio_fops = { | |||
| 1539 | .open = dvb_audio_open, | 1540 | .open = dvb_audio_open, |
| 1540 | .release = dvb_audio_release, | 1541 | .release = dvb_audio_release, |
| 1541 | .poll = dvb_audio_poll, | 1542 | .poll = dvb_audio_poll, |
| 1543 | .llseek = noop_llseek, | ||
| 1542 | }; | 1544 | }; |
| 1543 | 1545 | ||
| 1544 | static struct dvb_device dvbdev_audio = { | 1546 | static struct dvb_device dvbdev_audio = { |
diff --git a/drivers/media/dvb/ttpci/av7110_ca.c b/drivers/media/dvb/ttpci/av7110_ca.c index 4eba35a018e3..43f61f2eca98 100644 --- a/drivers/media/dvb/ttpci/av7110_ca.c +++ b/drivers/media/dvb/ttpci/av7110_ca.c | |||
| @@ -353,6 +353,7 @@ static const struct file_operations dvb_ca_fops = { | |||
| 353 | .open = dvb_ca_open, | 353 | .open = dvb_ca_open, |
| 354 | .release = dvb_generic_release, | 354 | .release = dvb_generic_release, |
| 355 | .poll = dvb_ca_poll, | 355 | .poll = dvb_ca_poll, |
| 356 | .llseek = default_llseek, | ||
| 356 | }; | 357 | }; |
| 357 | 358 | ||
| 358 | static struct dvb_device dvbdev_ca = { | 359 | static struct dvb_device dvbdev_ca = { |
diff --git a/drivers/media/dvb/ttpci/av7110_ir.c b/drivers/media/dvb/ttpci/av7110_ir.c index b070e88d8c6b..908f272fe26c 100644 --- a/drivers/media/dvb/ttpci/av7110_ir.c +++ b/drivers/media/dvb/ttpci/av7110_ir.c | |||
| @@ -312,6 +312,7 @@ static ssize_t av7110_ir_proc_write(struct file *file, const char __user *buffer | |||
| 312 | static const struct file_operations av7110_ir_proc_fops = { | 312 | static const struct file_operations av7110_ir_proc_fops = { |
| 313 | .owner = THIS_MODULE, | 313 | .owner = THIS_MODULE, |
| 314 | .write = av7110_ir_proc_write, | 314 | .write = av7110_ir_proc_write, |
| 315 | .llseek = noop_llseek, | ||
| 315 | }; | 316 | }; |
| 316 | 317 | ||
| 317 | /* interrupt handler */ | 318 | /* interrupt handler */ |
diff --git a/drivers/mfd/ab3100-core.c b/drivers/mfd/ab3100-core.c index 66379b413906..b048ecc56db9 100644 --- a/drivers/mfd/ab3100-core.c +++ b/drivers/mfd/ab3100-core.c | |||
| @@ -583,6 +583,7 @@ static ssize_t ab3100_get_set_reg(struct file *file, | |||
| 583 | static const struct file_operations ab3100_get_set_reg_fops = { | 583 | static const struct file_operations ab3100_get_set_reg_fops = { |
| 584 | .open = ab3100_get_set_reg_open_file, | 584 | .open = ab3100_get_set_reg_open_file, |
| 585 | .write = ab3100_get_set_reg, | 585 | .write = ab3100_get_set_reg, |
| 586 | .llseek = noop_llseek, | ||
| 586 | }; | 587 | }; |
| 587 | 588 | ||
| 588 | static struct dentry *ab3100_dir; | 589 | static struct dentry *ab3100_dir; |
diff --git a/drivers/misc/hpilo.c b/drivers/misc/hpilo.c index 557a8c2a7336..69c1f2fca141 100644 --- a/drivers/misc/hpilo.c +++ b/drivers/misc/hpilo.c | |||
| @@ -640,6 +640,7 @@ static const struct file_operations ilo_fops = { | |||
| 640 | .poll = ilo_poll, | 640 | .poll = ilo_poll, |
| 641 | .open = ilo_open, | 641 | .open = ilo_open, |
| 642 | .release = ilo_close, | 642 | .release = ilo_close, |
| 643 | .llseek = noop_llseek, | ||
| 643 | }; | 644 | }; |
| 644 | 645 | ||
| 645 | static irqreturn_t ilo_isr(int irq, void *data) | 646 | static irqreturn_t ilo_isr(int irq, void *data) |
diff --git a/drivers/misc/ibmasm/ibmasmfs.c b/drivers/misc/ibmasm/ibmasmfs.c index 8844a3f45381..af2497ae5fe3 100644 --- a/drivers/misc/ibmasm/ibmasmfs.c +++ b/drivers/misc/ibmasm/ibmasmfs.c | |||
| @@ -584,6 +584,7 @@ static const struct file_operations command_fops = { | |||
| 584 | .release = command_file_close, | 584 | .release = command_file_close, |
| 585 | .read = command_file_read, | 585 | .read = command_file_read, |
| 586 | .write = command_file_write, | 586 | .write = command_file_write, |
| 587 | .llseek = generic_file_llseek, | ||
| 587 | }; | 588 | }; |
| 588 | 589 | ||
| 589 | static const struct file_operations event_fops = { | 590 | static const struct file_operations event_fops = { |
| @@ -591,6 +592,7 @@ static const struct file_operations event_fops = { | |||
| 591 | .release = event_file_close, | 592 | .release = event_file_close, |
| 592 | .read = event_file_read, | 593 | .read = event_file_read, |
| 593 | .write = event_file_write, | 594 | .write = event_file_write, |
| 595 | .llseek = generic_file_llseek, | ||
| 594 | }; | 596 | }; |
| 595 | 597 | ||
| 596 | static const struct file_operations r_heartbeat_fops = { | 598 | static const struct file_operations r_heartbeat_fops = { |
| @@ -598,6 +600,7 @@ static const struct file_operations r_heartbeat_fops = { | |||
| 598 | .release = r_heartbeat_file_close, | 600 | .release = r_heartbeat_file_close, |
| 599 | .read = r_heartbeat_file_read, | 601 | .read = r_heartbeat_file_read, |
| 600 | .write = r_heartbeat_file_write, | 602 | .write = r_heartbeat_file_write, |
| 603 | .llseek = generic_file_llseek, | ||
| 601 | }; | 604 | }; |
| 602 | 605 | ||
| 603 | static const struct file_operations remote_settings_fops = { | 606 | static const struct file_operations remote_settings_fops = { |
| @@ -605,6 +608,7 @@ static const struct file_operations remote_settings_fops = { | |||
| 605 | .release = remote_settings_file_close, | 608 | .release = remote_settings_file_close, |
| 606 | .read = remote_settings_file_read, | 609 | .read = remote_settings_file_read, |
| 607 | .write = remote_settings_file_write, | 610 | .write = remote_settings_file_write, |
| 611 | .llseek = generic_file_llseek, | ||
| 608 | }; | 612 | }; |
| 609 | 613 | ||
| 610 | 614 | ||
diff --git a/drivers/misc/iwmc3200top/debugfs.c b/drivers/misc/iwmc3200top/debugfs.c index e9eda471f6e0..62fbaec48207 100644 --- a/drivers/misc/iwmc3200top/debugfs.c +++ b/drivers/misc/iwmc3200top/debugfs.c | |||
| @@ -71,6 +71,7 @@ ssize_t iwmct_dbgfs_##name##_write(struct file *file, \ | |||
| 71 | static const struct file_operations iwmct_dbgfs_##name##_ops = { \ | 71 | static const struct file_operations iwmct_dbgfs_##name##_ops = { \ |
| 72 | .read = iwmct_dbgfs_##name##_read, \ | 72 | .read = iwmct_dbgfs_##name##_read, \ |
| 73 | .open = iwmct_dbgfs_open_file_generic, \ | 73 | .open = iwmct_dbgfs_open_file_generic, \ |
| 74 | .llseek = generic_file_llseek, \ | ||
| 74 | }; | 75 | }; |
| 75 | 76 | ||
| 76 | #define DEBUGFS_WRITE_FILE_OPS(name) \ | 77 | #define DEBUGFS_WRITE_FILE_OPS(name) \ |
| @@ -78,6 +79,7 @@ ssize_t iwmct_dbgfs_##name##_write(struct file *file, \ | |||
| 78 | static const struct file_operations iwmct_dbgfs_##name##_ops = { \ | 79 | static const struct file_operations iwmct_dbgfs_##name##_ops = { \ |
| 79 | .write = iwmct_dbgfs_##name##_write, \ | 80 | .write = iwmct_dbgfs_##name##_write, \ |
| 80 | .open = iwmct_dbgfs_open_file_generic, \ | 81 | .open = iwmct_dbgfs_open_file_generic, \ |
| 82 | .llseek = generic_file_llseek, \ | ||
| 81 | }; | 83 | }; |
| 82 | 84 | ||
| 83 | #define DEBUGFS_READ_WRITE_FILE_OPS(name) \ | 85 | #define DEBUGFS_READ_WRITE_FILE_OPS(name) \ |
| @@ -87,6 +89,7 @@ ssize_t iwmct_dbgfs_##name##_write(struct file *file, \ | |||
| 87 | .write = iwmct_dbgfs_##name##_write, \ | 89 | .write = iwmct_dbgfs_##name##_write, \ |
| 88 | .read = iwmct_dbgfs_##name##_read, \ | 90 | .read = iwmct_dbgfs_##name##_read, \ |
| 89 | .open = iwmct_dbgfs_open_file_generic, \ | 91 | .open = iwmct_dbgfs_open_file_generic, \ |
| 92 | .llseek = generic_file_llseek, \ | ||
| 90 | }; | 93 | }; |
| 91 | 94 | ||
| 92 | 95 | ||
diff --git a/drivers/misc/lkdtm.c b/drivers/misc/lkdtm.c index ef34de7a8026..343b5d8ea697 100644 --- a/drivers/misc/lkdtm.c +++ b/drivers/misc/lkdtm.c | |||
| @@ -575,30 +575,39 @@ struct crash_entry { | |||
| 575 | 575 | ||
| 576 | static const struct crash_entry crash_entries[] = { | 576 | static const struct crash_entry crash_entries[] = { |
| 577 | {"DIRECT", {.read = lkdtm_debugfs_read, | 577 | {"DIRECT", {.read = lkdtm_debugfs_read, |
| 578 | .llseek = generic_file_llseek, | ||
| 578 | .open = lkdtm_debugfs_open, | 579 | .open = lkdtm_debugfs_open, |
| 579 | .write = direct_entry} }, | 580 | .write = direct_entry} }, |
| 580 | {"INT_HARDWARE_ENTRY", {.read = lkdtm_debugfs_read, | 581 | {"INT_HARDWARE_ENTRY", {.read = lkdtm_debugfs_read, |
| 582 | .llseek = generic_file_llseek, | ||
| 581 | .open = lkdtm_debugfs_open, | 583 | .open = lkdtm_debugfs_open, |
| 582 | .write = int_hardware_entry} }, | 584 | .write = int_hardware_entry} }, |
| 583 | {"INT_HW_IRQ_EN", {.read = lkdtm_debugfs_read, | 585 | {"INT_HW_IRQ_EN", {.read = lkdtm_debugfs_read, |
| 586 | .llseek = generic_file_llseek, | ||
| 584 | .open = lkdtm_debugfs_open, | 587 | .open = lkdtm_debugfs_open, |
| 585 | .write = int_hw_irq_en} }, | 588 | .write = int_hw_irq_en} }, |
| 586 | {"INT_TASKLET_ENTRY", {.read = lkdtm_debugfs_read, | 589 | {"INT_TASKLET_ENTRY", {.read = lkdtm_debugfs_read, |
| 590 | .llseek = generic_file_llseek, | ||
| 587 | .open = lkdtm_debugfs_open, | 591 | .open = lkdtm_debugfs_open, |
| 588 | .write = int_tasklet_entry} }, | 592 | .write = int_tasklet_entry} }, |
| 589 | {"FS_DEVRW", {.read = lkdtm_debugfs_read, | 593 | {"FS_DEVRW", {.read = lkdtm_debugfs_read, |
| 594 | .llseek = generic_file_llseek, | ||
| 590 | .open = lkdtm_debugfs_open, | 595 | .open = lkdtm_debugfs_open, |
| 591 | .write = fs_devrw_entry} }, | 596 | .write = fs_devrw_entry} }, |
| 592 | {"MEM_SWAPOUT", {.read = lkdtm_debugfs_read, | 597 | {"MEM_SWAPOUT", {.read = lkdtm_debugfs_read, |
| 598 | .llseek = generic_file_llseek, | ||
| 593 | .open = lkdtm_debugfs_open, | 599 | .open = lkdtm_debugfs_open, |
| 594 | .write = mem_swapout_entry} }, | 600 | .write = mem_swapout_entry} }, |
| 595 | {"TIMERADD", {.read = lkdtm_debugfs_read, | 601 | {"TIMERADD", {.read = lkdtm_debugfs_read, |
| 602 | .llseek = generic_file_llseek, | ||
| 596 | .open = lkdtm_debugfs_open, | 603 | .open = lkdtm_debugfs_open, |
| 597 | .write = timeradd_entry} }, | 604 | .write = timeradd_entry} }, |
| 598 | {"SCSI_DISPATCH_CMD", {.read = lkdtm_debugfs_read, | 605 | {"SCSI_DISPATCH_CMD", {.read = lkdtm_debugfs_read, |
| 606 | .llseek = generic_file_llseek, | ||
| 599 | .open = lkdtm_debugfs_open, | 607 | .open = lkdtm_debugfs_open, |
| 600 | .write = scsi_dispatch_cmd_entry} }, | 608 | .write = scsi_dispatch_cmd_entry} }, |
| 601 | {"IDE_CORE_CP", {.read = lkdtm_debugfs_read, | 609 | {"IDE_CORE_CP", {.read = lkdtm_debugfs_read, |
| 610 | .llseek = generic_file_llseek, | ||
| 602 | .open = lkdtm_debugfs_open, | 611 | .open = lkdtm_debugfs_open, |
| 603 | .write = ide_core_cp_entry} }, | 612 | .write = ide_core_cp_entry} }, |
| 604 | }; | 613 | }; |
diff --git a/drivers/misc/phantom.c b/drivers/misc/phantom.c index 3712e5077e25..4197a3cb26ba 100644 --- a/drivers/misc/phantom.c +++ b/drivers/misc/phantom.c | |||
| @@ -280,6 +280,7 @@ static const struct file_operations phantom_file_ops = { | |||
| 280 | .unlocked_ioctl = phantom_ioctl, | 280 | .unlocked_ioctl = phantom_ioctl, |
| 281 | .compat_ioctl = phantom_compat_ioctl, | 281 | .compat_ioctl = phantom_compat_ioctl, |
| 282 | .poll = phantom_poll, | 282 | .poll = phantom_poll, |
| 283 | .llseek = no_llseek, | ||
| 283 | }; | 284 | }; |
| 284 | 285 | ||
| 285 | static irqreturn_t phantom_isr(int irq, void *data) | 286 | static irqreturn_t phantom_isr(int irq, void *data) |
diff --git a/drivers/misc/sgi-gru/grufile.c b/drivers/misc/sgi-gru/grufile.c index cb3b4d228475..28852dfa310d 100644 --- a/drivers/misc/sgi-gru/grufile.c +++ b/drivers/misc/sgi-gru/grufile.c | |||
| @@ -587,6 +587,7 @@ static const struct file_operations gru_fops = { | |||
| 587 | .owner = THIS_MODULE, | 587 | .owner = THIS_MODULE, |
| 588 | .unlocked_ioctl = gru_file_unlocked_ioctl, | 588 | .unlocked_ioctl = gru_file_unlocked_ioctl, |
| 589 | .mmap = gru_file_mmap, | 589 | .mmap = gru_file_mmap, |
| 590 | .llseek = noop_llseek, | ||
| 590 | }; | 591 | }; |
| 591 | 592 | ||
| 592 | static struct miscdevice gru_miscdev = { | 593 | static struct miscdevice gru_miscdev = { |
diff --git a/drivers/mmc/core/debugfs.c b/drivers/mmc/core/debugfs.c index 53cb380c0987..46bc6d7551a3 100644 --- a/drivers/mmc/core/debugfs.c +++ b/drivers/mmc/core/debugfs.c | |||
| @@ -245,6 +245,7 @@ static const struct file_operations mmc_dbg_ext_csd_fops = { | |||
| 245 | .open = mmc_ext_csd_open, | 245 | .open = mmc_ext_csd_open, |
| 246 | .read = mmc_ext_csd_read, | 246 | .read = mmc_ext_csd_read, |
| 247 | .release = mmc_ext_csd_release, | 247 | .release = mmc_ext_csd_release, |
| 248 | .llseek = default_llseek, | ||
| 248 | }; | 249 | }; |
| 249 | 250 | ||
| 250 | void mmc_add_card_debugfs(struct mmc_card *card) | 251 | void mmc_add_card_debugfs(struct mmc_card *card) |
diff --git a/drivers/mtd/ubi/cdev.c b/drivers/mtd/ubi/cdev.c index 3d2d1a69e9a0..af9fb0ff8210 100644 --- a/drivers/mtd/ubi/cdev.c +++ b/drivers/mtd/ubi/cdev.c | |||
| @@ -1100,4 +1100,5 @@ const struct file_operations ubi_ctrl_cdev_operations = { | |||
| 1100 | .owner = THIS_MODULE, | 1100 | .owner = THIS_MODULE, |
| 1101 | .unlocked_ioctl = ctrl_cdev_ioctl, | 1101 | .unlocked_ioctl = ctrl_cdev_ioctl, |
| 1102 | .compat_ioctl = ctrl_cdev_compat_ioctl, | 1102 | .compat_ioctl = ctrl_cdev_compat_ioctl, |
| 1103 | .llseek = noop_llseek, | ||
| 1103 | }; | 1104 | }; |
diff --git a/drivers/net/caif/caif_spi.c b/drivers/net/caif/caif_spi.c index f5058ff2b210..8427533fe313 100644 --- a/drivers/net/caif/caif_spi.c +++ b/drivers/net/caif/caif_spi.c | |||
| @@ -240,13 +240,15 @@ static ssize_t dbgfs_frame(struct file *file, char __user *user_buf, | |||
| 240 | static const struct file_operations dbgfs_state_fops = { | 240 | static const struct file_operations dbgfs_state_fops = { |
| 241 | .open = dbgfs_open, | 241 | .open = dbgfs_open, |
| 242 | .read = dbgfs_state, | 242 | .read = dbgfs_state, |
| 243 | .owner = THIS_MODULE | 243 | .owner = THIS_MODULE, |
| 244 | .llseek = default_llseek, | ||
| 244 | }; | 245 | }; |
| 245 | 246 | ||
| 246 | static const struct file_operations dbgfs_frame_fops = { | 247 | static const struct file_operations dbgfs_frame_fops = { |
| 247 | .open = dbgfs_open, | 248 | .open = dbgfs_open, |
| 248 | .read = dbgfs_frame, | 249 | .read = dbgfs_frame, |
| 249 | .owner = THIS_MODULE | 250 | .owner = THIS_MODULE, |
| 251 | .llseek = default_llseek, | ||
| 250 | }; | 252 | }; |
| 251 | 253 | ||
| 252 | static inline void dev_debugfs_add(struct cfspi *cfspi) | 254 | static inline void dev_debugfs_add(struct cfspi *cfspi) |
diff --git a/drivers/net/cxgb4/cxgb4_main.c b/drivers/net/cxgb4/cxgb4_main.c index c327527fbbc8..e2bf10d90add 100644 --- a/drivers/net/cxgb4/cxgb4_main.c +++ b/drivers/net/cxgb4/cxgb4_main.c | |||
| @@ -2026,6 +2026,7 @@ static const struct file_operations mem_debugfs_fops = { | |||
| 2026 | .owner = THIS_MODULE, | 2026 | .owner = THIS_MODULE, |
| 2027 | .open = mem_open, | 2027 | .open = mem_open, |
| 2028 | .read = mem_read, | 2028 | .read = mem_read, |
| 2029 | .llseek = default_llseek, | ||
| 2029 | }; | 2030 | }; |
| 2030 | 2031 | ||
| 2031 | static void __devinit add_debugfs_mem(struct adapter *adap, const char *name, | 2032 | static void __devinit add_debugfs_mem(struct adapter *adap, const char *name, |
diff --git a/drivers/net/ppp_generic.c b/drivers/net/ppp_generic.c index 736b91703b3e..4bddb2afdd15 100644 --- a/drivers/net/ppp_generic.c +++ b/drivers/net/ppp_generic.c | |||
| @@ -856,7 +856,8 @@ static const struct file_operations ppp_device_fops = { | |||
| 856 | .poll = ppp_poll, | 856 | .poll = ppp_poll, |
| 857 | .unlocked_ioctl = ppp_ioctl, | 857 | .unlocked_ioctl = ppp_ioctl, |
| 858 | .open = ppp_open, | 858 | .open = ppp_open, |
| 859 | .release = ppp_release | 859 | .release = ppp_release, |
| 860 | .llseek = noop_llseek, | ||
| 860 | }; | 861 | }; |
| 861 | 862 | ||
| 862 | static __net_init int ppp_init_net(struct net *net) | 863 | static __net_init int ppp_init_net(struct net *net) |
diff --git a/drivers/net/wimax/i2400m/debugfs.c b/drivers/net/wimax/i2400m/debugfs.c index b1aec3e1892f..9c70b5fa3f51 100644 --- a/drivers/net/wimax/i2400m/debugfs.c +++ b/drivers/net/wimax/i2400m/debugfs.c | |||
| @@ -119,6 +119,7 @@ const struct file_operations i2400m_rx_stats_fops = { | |||
| 119 | .open = i2400m_stats_open, | 119 | .open = i2400m_stats_open, |
| 120 | .read = i2400m_rx_stats_read, | 120 | .read = i2400m_rx_stats_read, |
| 121 | .write = i2400m_rx_stats_write, | 121 | .write = i2400m_rx_stats_write, |
| 122 | .llseek = default_llseek, | ||
| 122 | }; | 123 | }; |
| 123 | 124 | ||
| 124 | 125 | ||
| @@ -171,6 +172,7 @@ const struct file_operations i2400m_tx_stats_fops = { | |||
| 171 | .open = i2400m_stats_open, | 172 | .open = i2400m_stats_open, |
| 172 | .read = i2400m_tx_stats_read, | 173 | .read = i2400m_tx_stats_read, |
| 173 | .write = i2400m_tx_stats_write, | 174 | .write = i2400m_tx_stats_write, |
| 175 | .llseek = default_llseek, | ||
| 174 | }; | 176 | }; |
| 175 | 177 | ||
| 176 | 178 | ||
diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c index 1d05445d4ba3..ce77575e88b3 100644 --- a/drivers/net/wireless/airo.c +++ b/drivers/net/wireless/airo.c | |||
| @@ -4430,21 +4430,24 @@ static const struct file_operations proc_statsdelta_ops = { | |||
| 4430 | .owner = THIS_MODULE, | 4430 | .owner = THIS_MODULE, |
| 4431 | .read = proc_read, | 4431 | .read = proc_read, |
| 4432 | .open = proc_statsdelta_open, | 4432 | .open = proc_statsdelta_open, |
| 4433 | .release = proc_close | 4433 | .release = proc_close, |
| 4434 | .llseek = default_llseek, | ||
| 4434 | }; | 4435 | }; |
| 4435 | 4436 | ||
| 4436 | static const struct file_operations proc_stats_ops = { | 4437 | static const struct file_operations proc_stats_ops = { |
| 4437 | .owner = THIS_MODULE, | 4438 | .owner = THIS_MODULE, |
| 4438 | .read = proc_read, | 4439 | .read = proc_read, |
| 4439 | .open = proc_stats_open, | 4440 | .open = proc_stats_open, |
| 4440 | .release = proc_close | 4441 | .release = proc_close, |
| 4442 | .llseek = default_llseek, | ||
| 4441 | }; | 4443 | }; |
| 4442 | 4444 | ||
| 4443 | static const struct file_operations proc_status_ops = { | 4445 | static const struct file_operations proc_status_ops = { |
| 4444 | .owner = THIS_MODULE, | 4446 | .owner = THIS_MODULE, |
| 4445 | .read = proc_read, | 4447 | .read = proc_read, |
| 4446 | .open = proc_status_open, | 4448 | .open = proc_status_open, |
| 4447 | .release = proc_close | 4449 | .release = proc_close, |
| 4450 | .llseek = default_llseek, | ||
| 4448 | }; | 4451 | }; |
| 4449 | 4452 | ||
| 4450 | static const struct file_operations proc_SSID_ops = { | 4453 | static const struct file_operations proc_SSID_ops = { |
| @@ -4452,7 +4455,8 @@ static const struct file_operations proc_SSID_ops = { | |||
| 4452 | .read = proc_read, | 4455 | .read = proc_read, |
| 4453 | .write = proc_write, | 4456 | .write = proc_write, |
| 4454 | .open = proc_SSID_open, | 4457 | .open = proc_SSID_open, |
| 4455 | .release = proc_close | 4458 | .release = proc_close, |
| 4459 | .llseek = default_llseek, | ||
| 4456 | }; | 4460 | }; |
| 4457 | 4461 | ||
| 4458 | static const struct file_operations proc_BSSList_ops = { | 4462 | static const struct file_operations proc_BSSList_ops = { |
| @@ -4460,7 +4464,8 @@ static const struct file_operations proc_BSSList_ops = { | |||
| 4460 | .read = proc_read, | 4464 | .read = proc_read, |
| 4461 | .write = proc_write, | 4465 | .write = proc_write, |
| 4462 | .open = proc_BSSList_open, | 4466 | .open = proc_BSSList_open, |
| 4463 | .release = proc_close | 4467 | .release = proc_close, |
| 4468 | .llseek = default_llseek, | ||
| 4464 | }; | 4469 | }; |
| 4465 | 4470 | ||
| 4466 | static const struct file_operations proc_APList_ops = { | 4471 | static const struct file_operations proc_APList_ops = { |
| @@ -4468,7 +4473,8 @@ static const struct file_operations proc_APList_ops = { | |||
| 4468 | .read = proc_read, | 4473 | .read = proc_read, |
| 4469 | .write = proc_write, | 4474 | .write = proc_write, |
| 4470 | .open = proc_APList_open, | 4475 | .open = proc_APList_open, |
| 4471 | .release = proc_close | 4476 | .release = proc_close, |
| 4477 | .llseek = default_llseek, | ||
| 4472 | }; | 4478 | }; |
| 4473 | 4479 | ||
| 4474 | static const struct file_operations proc_config_ops = { | 4480 | static const struct file_operations proc_config_ops = { |
| @@ -4476,7 +4482,8 @@ static const struct file_operations proc_config_ops = { | |||
| 4476 | .read = proc_read, | 4482 | .read = proc_read, |
| 4477 | .write = proc_write, | 4483 | .write = proc_write, |
| 4478 | .open = proc_config_open, | 4484 | .open = proc_config_open, |
| 4479 | .release = proc_close | 4485 | .release = proc_close, |
| 4486 | .llseek = default_llseek, | ||
| 4480 | }; | 4487 | }; |
| 4481 | 4488 | ||
| 4482 | static const struct file_operations proc_wepkey_ops = { | 4489 | static const struct file_operations proc_wepkey_ops = { |
| @@ -4484,7 +4491,8 @@ static const struct file_operations proc_wepkey_ops = { | |||
| 4484 | .read = proc_read, | 4491 | .read = proc_read, |
| 4485 | .write = proc_write, | 4492 | .write = proc_write, |
| 4486 | .open = proc_wepkey_open, | 4493 | .open = proc_wepkey_open, |
| 4487 | .release = proc_close | 4494 | .release = proc_close, |
| 4495 | .llseek = default_llseek, | ||
| 4488 | }; | 4496 | }; |
| 4489 | 4497 | ||
| 4490 | static struct proc_dir_entry *airo_entry; | 4498 | static struct proc_dir_entry *airo_entry; |
diff --git a/drivers/net/wireless/ath/ath5k/debug.c b/drivers/net/wireless/ath/ath5k/debug.c index 4cccc29964f6..fb339c3852ee 100644 --- a/drivers/net/wireless/ath/ath5k/debug.c +++ b/drivers/net/wireless/ath/ath5k/debug.c | |||
| @@ -271,6 +271,7 @@ static const struct file_operations fops_beacon = { | |||
| 271 | .write = write_file_beacon, | 271 | .write = write_file_beacon, |
| 272 | .open = ath5k_debugfs_open, | 272 | .open = ath5k_debugfs_open, |
| 273 | .owner = THIS_MODULE, | 273 | .owner = THIS_MODULE, |
| 274 | .llseek = default_llseek, | ||
| 274 | }; | 275 | }; |
| 275 | 276 | ||
| 276 | 277 | ||
| @@ -290,6 +291,7 @@ static const struct file_operations fops_reset = { | |||
| 290 | .write = write_file_reset, | 291 | .write = write_file_reset, |
| 291 | .open = ath5k_debugfs_open, | 292 | .open = ath5k_debugfs_open, |
| 292 | .owner = THIS_MODULE, | 293 | .owner = THIS_MODULE, |
| 294 | .llseek = noop_llseek, | ||
| 293 | }; | 295 | }; |
| 294 | 296 | ||
| 295 | 297 | ||
| @@ -369,6 +371,7 @@ static const struct file_operations fops_debug = { | |||
| 369 | .write = write_file_debug, | 371 | .write = write_file_debug, |
| 370 | .open = ath5k_debugfs_open, | 372 | .open = ath5k_debugfs_open, |
| 371 | .owner = THIS_MODULE, | 373 | .owner = THIS_MODULE, |
| 374 | .llseek = default_llseek, | ||
| 372 | }; | 375 | }; |
| 373 | 376 | ||
| 374 | 377 | ||
| @@ -480,6 +483,7 @@ static const struct file_operations fops_antenna = { | |||
| 480 | .write = write_file_antenna, | 483 | .write = write_file_antenna, |
| 481 | .open = ath5k_debugfs_open, | 484 | .open = ath5k_debugfs_open, |
| 482 | .owner = THIS_MODULE, | 485 | .owner = THIS_MODULE, |
| 486 | .llseek = default_llseek, | ||
| 483 | }; | 487 | }; |
| 484 | 488 | ||
| 485 | 489 | ||
| @@ -591,6 +595,7 @@ static const struct file_operations fops_frameerrors = { | |||
| 591 | .write = write_file_frameerrors, | 595 | .write = write_file_frameerrors, |
| 592 | .open = ath5k_debugfs_open, | 596 | .open = ath5k_debugfs_open, |
| 593 | .owner = THIS_MODULE, | 597 | .owner = THIS_MODULE, |
| 598 | .llseek = default_llseek, | ||
| 594 | }; | 599 | }; |
| 595 | 600 | ||
| 596 | 601 | ||
| @@ -748,6 +753,7 @@ static const struct file_operations fops_ani = { | |||
| 748 | .write = write_file_ani, | 753 | .write = write_file_ani, |
| 749 | .open = ath5k_debugfs_open, | 754 | .open = ath5k_debugfs_open, |
| 750 | .owner = THIS_MODULE, | 755 | .owner = THIS_MODULE, |
| 756 | .llseek = default_llseek, | ||
| 751 | }; | 757 | }; |
| 752 | 758 | ||
| 753 | 759 | ||
| @@ -811,6 +817,7 @@ static const struct file_operations fops_queue = { | |||
| 811 | .write = write_file_queue, | 817 | .write = write_file_queue, |
| 812 | .open = ath5k_debugfs_open, | 818 | .open = ath5k_debugfs_open, |
| 813 | .owner = THIS_MODULE, | 819 | .owner = THIS_MODULE, |
| 820 | .llseek = default_llseek, | ||
| 814 | }; | 821 | }; |
| 815 | 822 | ||
| 816 | 823 | ||
diff --git a/drivers/net/wireless/ath/ath9k/debug.c b/drivers/net/wireless/ath/ath9k/debug.c index 54aae931424e..cf500bf25ad5 100644 --- a/drivers/net/wireless/ath/ath9k/debug.c +++ b/drivers/net/wireless/ath/ath9k/debug.c | |||
| @@ -71,7 +71,8 @@ static const struct file_operations fops_debug = { | |||
| 71 | .read = read_file_debug, | 71 | .read = read_file_debug, |
| 72 | .write = write_file_debug, | 72 | .write = write_file_debug, |
| 73 | .open = ath9k_debugfs_open, | 73 | .open = ath9k_debugfs_open, |
| 74 | .owner = THIS_MODULE | 74 | .owner = THIS_MODULE, |
| 75 | .llseek = default_llseek, | ||
| 75 | }; | 76 | }; |
| 76 | 77 | ||
| 77 | #endif | 78 | #endif |
| @@ -116,7 +117,8 @@ static const struct file_operations fops_tx_chainmask = { | |||
| 116 | .read = read_file_tx_chainmask, | 117 | .read = read_file_tx_chainmask, |
| 117 | .write = write_file_tx_chainmask, | 118 | .write = write_file_tx_chainmask, |
| 118 | .open = ath9k_debugfs_open, | 119 | .open = ath9k_debugfs_open, |
| 119 | .owner = THIS_MODULE | 120 | .owner = THIS_MODULE, |
| 121 | .llseek = default_llseek, | ||
| 120 | }; | 122 | }; |
| 121 | 123 | ||
| 122 | 124 | ||
| @@ -158,7 +160,8 @@ static const struct file_operations fops_rx_chainmask = { | |||
| 158 | .read = read_file_rx_chainmask, | 160 | .read = read_file_rx_chainmask, |
| 159 | .write = write_file_rx_chainmask, | 161 | .write = write_file_rx_chainmask, |
| 160 | .open = ath9k_debugfs_open, | 162 | .open = ath9k_debugfs_open, |
| 161 | .owner = THIS_MODULE | 163 | .owner = THIS_MODULE, |
| 164 | .llseek = default_llseek, | ||
| 162 | }; | 165 | }; |
| 163 | 166 | ||
| 164 | 167 | ||
| @@ -259,7 +262,8 @@ static ssize_t read_file_dma(struct file *file, char __user *user_buf, | |||
| 259 | static const struct file_operations fops_dma = { | 262 | static const struct file_operations fops_dma = { |
| 260 | .read = read_file_dma, | 263 | .read = read_file_dma, |
| 261 | .open = ath9k_debugfs_open, | 264 | .open = ath9k_debugfs_open, |
| 262 | .owner = THIS_MODULE | 265 | .owner = THIS_MODULE, |
| 266 | .llseek = default_llseek, | ||
| 263 | }; | 267 | }; |
| 264 | 268 | ||
| 265 | 269 | ||
| @@ -375,7 +379,8 @@ static ssize_t read_file_interrupt(struct file *file, char __user *user_buf, | |||
| 375 | static const struct file_operations fops_interrupt = { | 379 | static const struct file_operations fops_interrupt = { |
| 376 | .read = read_file_interrupt, | 380 | .read = read_file_interrupt, |
| 377 | .open = ath9k_debugfs_open, | 381 | .open = ath9k_debugfs_open, |
| 378 | .owner = THIS_MODULE | 382 | .owner = THIS_MODULE, |
| 383 | .llseek = default_llseek, | ||
| 379 | }; | 384 | }; |
| 380 | 385 | ||
| 381 | void ath_debug_stat_rc(struct ath_softc *sc, int final_rate) | 386 | void ath_debug_stat_rc(struct ath_softc *sc, int final_rate) |
| @@ -464,7 +469,8 @@ static ssize_t read_file_rcstat(struct file *file, char __user *user_buf, | |||
| 464 | static const struct file_operations fops_rcstat = { | 469 | static const struct file_operations fops_rcstat = { |
| 465 | .read = read_file_rcstat, | 470 | .read = read_file_rcstat, |
| 466 | .open = ath9k_debugfs_open, | 471 | .open = ath9k_debugfs_open, |
| 467 | .owner = THIS_MODULE | 472 | .owner = THIS_MODULE, |
| 473 | .llseek = default_llseek, | ||
| 468 | }; | 474 | }; |
| 469 | 475 | ||
| 470 | static const char * ath_wiphy_state_str(enum ath_wiphy_state state) | 476 | static const char * ath_wiphy_state_str(enum ath_wiphy_state state) |
| @@ -623,7 +629,8 @@ static const struct file_operations fops_wiphy = { | |||
| 623 | .read = read_file_wiphy, | 629 | .read = read_file_wiphy, |
| 624 | .write = write_file_wiphy, | 630 | .write = write_file_wiphy, |
| 625 | .open = ath9k_debugfs_open, | 631 | .open = ath9k_debugfs_open, |
| 626 | .owner = THIS_MODULE | 632 | .owner = THIS_MODULE, |
| 633 | .llseek = default_llseek, | ||
| 627 | }; | 634 | }; |
| 628 | 635 | ||
| 629 | #define PR(str, elem) \ | 636 | #define PR(str, elem) \ |
| @@ -702,7 +709,8 @@ void ath_debug_stat_tx(struct ath_softc *sc, struct ath_txq *txq, | |||
| 702 | static const struct file_operations fops_xmit = { | 709 | static const struct file_operations fops_xmit = { |
| 703 | .read = read_file_xmit, | 710 | .read = read_file_xmit, |
| 704 | .open = ath9k_debugfs_open, | 711 | .open = ath9k_debugfs_open, |
| 705 | .owner = THIS_MODULE | 712 | .owner = THIS_MODULE, |
| 713 | .llseek = default_llseek, | ||
| 706 | }; | 714 | }; |
| 707 | 715 | ||
| 708 | static ssize_t read_file_recv(struct file *file, char __user *user_buf, | 716 | static ssize_t read_file_recv(struct file *file, char __user *user_buf, |
| @@ -814,7 +822,8 @@ void ath_debug_stat_rx(struct ath_softc *sc, struct ath_rx_status *rs) | |||
| 814 | static const struct file_operations fops_recv = { | 822 | static const struct file_operations fops_recv = { |
| 815 | .read = read_file_recv, | 823 | .read = read_file_recv, |
| 816 | .open = ath9k_debugfs_open, | 824 | .open = ath9k_debugfs_open, |
| 817 | .owner = THIS_MODULE | 825 | .owner = THIS_MODULE, |
| 826 | .llseek = default_llseek, | ||
| 818 | }; | 827 | }; |
| 819 | 828 | ||
| 820 | static ssize_t read_file_regidx(struct file *file, char __user *user_buf, | 829 | static ssize_t read_file_regidx(struct file *file, char __user *user_buf, |
| @@ -852,7 +861,8 @@ static const struct file_operations fops_regidx = { | |||
| 852 | .read = read_file_regidx, | 861 | .read = read_file_regidx, |
| 853 | .write = write_file_regidx, | 862 | .write = write_file_regidx, |
| 854 | .open = ath9k_debugfs_open, | 863 | .open = ath9k_debugfs_open, |
| 855 | .owner = THIS_MODULE | 864 | .owner = THIS_MODULE, |
| 865 | .llseek = default_llseek, | ||
| 856 | }; | 866 | }; |
| 857 | 867 | ||
| 858 | static ssize_t read_file_regval(struct file *file, char __user *user_buf, | 868 | static ssize_t read_file_regval(struct file *file, char __user *user_buf, |
| @@ -894,7 +904,8 @@ static const struct file_operations fops_regval = { | |||
| 894 | .read = read_file_regval, | 904 | .read = read_file_regval, |
| 895 | .write = write_file_regval, | 905 | .write = write_file_regval, |
| 896 | .open = ath9k_debugfs_open, | 906 | .open = ath9k_debugfs_open, |
| 897 | .owner = THIS_MODULE | 907 | .owner = THIS_MODULE, |
| 908 | .llseek = default_llseek, | ||
| 898 | }; | 909 | }; |
| 899 | 910 | ||
| 900 | int ath9k_init_debug(struct ath_hw *ah) | 911 | int ath9k_init_debug(struct ath_hw *ah) |
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_main.c b/drivers/net/wireless/ath/ath9k/htc_drv_main.c index 7d09b4b17bbd..bc2ca7d898e9 100644 --- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c +++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c | |||
| @@ -536,7 +536,8 @@ static ssize_t read_file_tgt_stats(struct file *file, char __user *user_buf, | |||
| 536 | static const struct file_operations fops_tgt_stats = { | 536 | static const struct file_operations fops_tgt_stats = { |
| 537 | .read = read_file_tgt_stats, | 537 | .read = read_file_tgt_stats, |
| 538 | .open = ath9k_debugfs_open, | 538 | .open = ath9k_debugfs_open, |
| 539 | .owner = THIS_MODULE | 539 | .owner = THIS_MODULE, |
| 540 | .llseek = default_llseek, | ||
| 540 | }; | 541 | }; |
| 541 | 542 | ||
| 542 | static ssize_t read_file_xmit(struct file *file, char __user *user_buf, | 543 | static ssize_t read_file_xmit(struct file *file, char __user *user_buf, |
| @@ -584,7 +585,8 @@ static ssize_t read_file_xmit(struct file *file, char __user *user_buf, | |||
| 584 | static const struct file_operations fops_xmit = { | 585 | static const struct file_operations fops_xmit = { |
| 585 | .read = read_file_xmit, | 586 | .read = read_file_xmit, |
| 586 | .open = ath9k_debugfs_open, | 587 | .open = ath9k_debugfs_open, |
| 587 | .owner = THIS_MODULE | 588 | .owner = THIS_MODULE, |
| 589 | .llseek = default_llseek, | ||
| 588 | }; | 590 | }; |
| 589 | 591 | ||
| 590 | static ssize_t read_file_recv(struct file *file, char __user *user_buf, | 592 | static ssize_t read_file_recv(struct file *file, char __user *user_buf, |
| @@ -613,7 +615,8 @@ static ssize_t read_file_recv(struct file *file, char __user *user_buf, | |||
| 613 | static const struct file_operations fops_recv = { | 615 | static const struct file_operations fops_recv = { |
| 614 | .read = read_file_recv, | 616 | .read = read_file_recv, |
| 615 | .open = ath9k_debugfs_open, | 617 | .open = ath9k_debugfs_open, |
| 616 | .owner = THIS_MODULE | 618 | .owner = THIS_MODULE, |
| 619 | .llseek = default_llseek, | ||
| 617 | }; | 620 | }; |
| 618 | 621 | ||
| 619 | int ath9k_htc_init_debug(struct ath_hw *ah) | 622 | int ath9k_htc_init_debug(struct ath_hw *ah) |
diff --git a/drivers/net/wireless/b43/debugfs.c b/drivers/net/wireless/b43/debugfs.c index 80b19a44a407..59f59fa40334 100644 --- a/drivers/net/wireless/b43/debugfs.c +++ b/drivers/net/wireless/b43/debugfs.c | |||
| @@ -627,6 +627,7 @@ out_unlock: | |||
| 627 | .open = b43_debugfs_open, \ | 627 | .open = b43_debugfs_open, \ |
| 628 | .read = b43_debugfs_read, \ | 628 | .read = b43_debugfs_read, \ |
| 629 | .write = b43_debugfs_write, \ | 629 | .write = b43_debugfs_write, \ |
| 630 | .llseek = generic_file_llseek, \ | ||
| 630 | }, \ | 631 | }, \ |
| 631 | .file_struct_offset = offsetof(struct b43_dfsentry, \ | 632 | .file_struct_offset = offsetof(struct b43_dfsentry, \ |
| 632 | file_##name), \ | 633 | file_##name), \ |
diff --git a/drivers/net/wireless/b43legacy/debugfs.c b/drivers/net/wireless/b43legacy/debugfs.c index 1f85ac569fec..f232618f2cd1 100644 --- a/drivers/net/wireless/b43legacy/debugfs.c +++ b/drivers/net/wireless/b43legacy/debugfs.c | |||
| @@ -334,6 +334,7 @@ out_unlock: | |||
| 334 | .open = b43legacy_debugfs_open, \ | 334 | .open = b43legacy_debugfs_open, \ |
| 335 | .read = b43legacy_debugfs_read, \ | 335 | .read = b43legacy_debugfs_read, \ |
| 336 | .write = b43legacy_debugfs_write, \ | 336 | .write = b43legacy_debugfs_write, \ |
| 337 | .llseek = generic_file_llseek, \ | ||
| 337 | }, \ | 338 | }, \ |
| 338 | .file_struct_offset = offsetof(struct b43legacy_dfsentry, \ | 339 | .file_struct_offset = offsetof(struct b43legacy_dfsentry, \ |
| 339 | file_##name), \ | 340 | file_##name), \ |
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945-rs.c b/drivers/net/wireless/iwlwifi/iwl-3945-rs.c index 8e84a08ff951..293e1dbc166c 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945-rs.c +++ b/drivers/net/wireless/iwlwifi/iwl-3945-rs.c | |||
| @@ -873,6 +873,7 @@ static ssize_t iwl3945_sta_dbgfs_stats_table_read(struct file *file, | |||
| 873 | static const struct file_operations rs_sta_dbgfs_stats_table_ops = { | 873 | static const struct file_operations rs_sta_dbgfs_stats_table_ops = { |
| 874 | .read = iwl3945_sta_dbgfs_stats_table_read, | 874 | .read = iwl3945_sta_dbgfs_stats_table_read, |
| 875 | .open = iwl3945_open_file_generic, | 875 | .open = iwl3945_open_file_generic, |
| 876 | .llseek = default_llseek, | ||
| 876 | }; | 877 | }; |
| 877 | 878 | ||
| 878 | static void iwl3945_add_debugfs(void *priv, void *priv_sta, | 879 | static void iwl3945_add_debugfs(void *priv, void *priv_sta, |
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c index 23e5c42e7d7e..a4378ba31ef6 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c | |||
| @@ -2873,6 +2873,7 @@ static const struct file_operations rs_sta_dbgfs_scale_table_ops = { | |||
| 2873 | .write = rs_sta_dbgfs_scale_table_write, | 2873 | .write = rs_sta_dbgfs_scale_table_write, |
| 2874 | .read = rs_sta_dbgfs_scale_table_read, | 2874 | .read = rs_sta_dbgfs_scale_table_read, |
| 2875 | .open = open_file_generic, | 2875 | .open = open_file_generic, |
| 2876 | .llseek = default_llseek, | ||
| 2876 | }; | 2877 | }; |
| 2877 | static ssize_t rs_sta_dbgfs_stats_table_read(struct file *file, | 2878 | static ssize_t rs_sta_dbgfs_stats_table_read(struct file *file, |
| 2878 | char __user *user_buf, size_t count, loff_t *ppos) | 2879 | char __user *user_buf, size_t count, loff_t *ppos) |
| @@ -2915,6 +2916,7 @@ static ssize_t rs_sta_dbgfs_stats_table_read(struct file *file, | |||
| 2915 | static const struct file_operations rs_sta_dbgfs_stats_table_ops = { | 2916 | static const struct file_operations rs_sta_dbgfs_stats_table_ops = { |
| 2916 | .read = rs_sta_dbgfs_stats_table_read, | 2917 | .read = rs_sta_dbgfs_stats_table_read, |
| 2917 | .open = open_file_generic, | 2918 | .open = open_file_generic, |
| 2919 | .llseek = default_llseek, | ||
| 2918 | }; | 2920 | }; |
| 2919 | 2921 | ||
| 2920 | static ssize_t rs_sta_dbgfs_rate_scale_data_read(struct file *file, | 2922 | static ssize_t rs_sta_dbgfs_rate_scale_data_read(struct file *file, |
| @@ -2946,6 +2948,7 @@ static ssize_t rs_sta_dbgfs_rate_scale_data_read(struct file *file, | |||
| 2946 | static const struct file_operations rs_sta_dbgfs_rate_scale_data_ops = { | 2948 | static const struct file_operations rs_sta_dbgfs_rate_scale_data_ops = { |
| 2947 | .read = rs_sta_dbgfs_rate_scale_data_read, | 2949 | .read = rs_sta_dbgfs_rate_scale_data_read, |
| 2948 | .open = open_file_generic, | 2950 | .open = open_file_generic, |
| 2951 | .llseek = default_llseek, | ||
| 2949 | }; | 2952 | }; |
| 2950 | 2953 | ||
| 2951 | static void rs_add_debugfs(void *priv, void *priv_sta, | 2954 | static void rs_add_debugfs(void *priv, void *priv_sta, |
diff --git a/drivers/net/wireless/iwlwifi/iwl-debugfs.c b/drivers/net/wireless/iwlwifi/iwl-debugfs.c index e96a1bb12783..a32d5d337649 100644 --- a/drivers/net/wireless/iwlwifi/iwl-debugfs.c +++ b/drivers/net/wireless/iwlwifi/iwl-debugfs.c | |||
| @@ -87,6 +87,7 @@ static int iwl_dbgfs_open_file_generic(struct inode *inode, struct file *file) | |||
| 87 | static const struct file_operations iwl_dbgfs_##name##_ops = { \ | 87 | static const struct file_operations iwl_dbgfs_##name##_ops = { \ |
| 88 | .read = iwl_dbgfs_##name##_read, \ | 88 | .read = iwl_dbgfs_##name##_read, \ |
| 89 | .open = iwl_dbgfs_open_file_generic, \ | 89 | .open = iwl_dbgfs_open_file_generic, \ |
| 90 | .llseek = generic_file_llseek, \ | ||
| 90 | }; | 91 | }; |
| 91 | 92 | ||
| 92 | #define DEBUGFS_WRITE_FILE_OPS(name) \ | 93 | #define DEBUGFS_WRITE_FILE_OPS(name) \ |
| @@ -94,6 +95,7 @@ static const struct file_operations iwl_dbgfs_##name##_ops = { \ | |||
| 94 | static const struct file_operations iwl_dbgfs_##name##_ops = { \ | 95 | static const struct file_operations iwl_dbgfs_##name##_ops = { \ |
| 95 | .write = iwl_dbgfs_##name##_write, \ | 96 | .write = iwl_dbgfs_##name##_write, \ |
| 96 | .open = iwl_dbgfs_open_file_generic, \ | 97 | .open = iwl_dbgfs_open_file_generic, \ |
| 98 | .llseek = generic_file_llseek, \ | ||
| 97 | }; | 99 | }; |
| 98 | 100 | ||
| 99 | 101 | ||
| @@ -104,6 +106,7 @@ static const struct file_operations iwl_dbgfs_##name##_ops = { \ | |||
| 104 | .write = iwl_dbgfs_##name##_write, \ | 106 | .write = iwl_dbgfs_##name##_write, \ |
| 105 | .read = iwl_dbgfs_##name##_read, \ | 107 | .read = iwl_dbgfs_##name##_read, \ |
| 106 | .open = iwl_dbgfs_open_file_generic, \ | 108 | .open = iwl_dbgfs_open_file_generic, \ |
| 109 | .llseek = generic_file_llseek, \ | ||
| 107 | }; | 110 | }; |
| 108 | 111 | ||
| 109 | static ssize_t iwl_dbgfs_tx_statistics_read(struct file *file, | 112 | static ssize_t iwl_dbgfs_tx_statistics_read(struct file *file, |
diff --git a/drivers/net/wireless/iwmc3200wifi/debugfs.c b/drivers/net/wireless/iwmc3200wifi/debugfs.c index 53b0b7711f02..0a0cc9667cd6 100644 --- a/drivers/net/wireless/iwmc3200wifi/debugfs.c +++ b/drivers/net/wireless/iwmc3200wifi/debugfs.c | |||
| @@ -402,24 +402,28 @@ static const struct file_operations iwm_debugfs_txq_fops = { | |||
| 402 | .owner = THIS_MODULE, | 402 | .owner = THIS_MODULE, |
| 403 | .open = iwm_generic_open, | 403 | .open = iwm_generic_open, |
| 404 | .read = iwm_debugfs_txq_read, | 404 | .read = iwm_debugfs_txq_read, |
| 405 | .llseek = default_llseek, | ||
| 405 | }; | 406 | }; |
| 406 | 407 | ||
| 407 | static const struct file_operations iwm_debugfs_tx_credit_fops = { | 408 | static const struct file_operations iwm_debugfs_tx_credit_fops = { |
| 408 | .owner = THIS_MODULE, | 409 | .owner = THIS_MODULE, |
| 409 | .open = iwm_generic_open, | 410 | .open = iwm_generic_open, |
| 410 | .read = iwm_debugfs_tx_credit_read, | 411 | .read = iwm_debugfs_tx_credit_read, |
| 412 | .llseek = default_llseek, | ||
| 411 | }; | 413 | }; |
| 412 | 414 | ||
| 413 | static const struct file_operations iwm_debugfs_rx_ticket_fops = { | 415 | static const struct file_operations iwm_debugfs_rx_ticket_fops = { |
| 414 | .owner = THIS_MODULE, | 416 | .owner = THIS_MODULE, |
| 415 | .open = iwm_generic_open, | 417 | .open = iwm_generic_open, |
| 416 | .read = iwm_debugfs_rx_ticket_read, | 418 | .read = iwm_debugfs_rx_ticket_read, |
| 419 | .llseek = default_llseek, | ||
| 417 | }; | 420 | }; |
| 418 | 421 | ||
| 419 | static const struct file_operations iwm_debugfs_fw_err_fops = { | 422 | static const struct file_operations iwm_debugfs_fw_err_fops = { |
| 420 | .owner = THIS_MODULE, | 423 | .owner = THIS_MODULE, |
| 421 | .open = iwm_generic_open, | 424 | .open = iwm_generic_open, |
| 422 | .read = iwm_debugfs_fw_err_read, | 425 | .read = iwm_debugfs_fw_err_read, |
| 426 | .llseek = default_llseek, | ||
| 423 | }; | 427 | }; |
| 424 | 428 | ||
| 425 | void iwm_debugfs_init(struct iwm_priv *iwm) | 429 | void iwm_debugfs_init(struct iwm_priv *iwm) |
diff --git a/drivers/net/wireless/iwmc3200wifi/sdio.c b/drivers/net/wireless/iwmc3200wifi/sdio.c index edcb52330cf5..56383e7be835 100644 --- a/drivers/net/wireless/iwmc3200wifi/sdio.c +++ b/drivers/net/wireless/iwmc3200wifi/sdio.c | |||
| @@ -364,6 +364,7 @@ static const struct file_operations iwm_debugfs_sdio_fops = { | |||
| 364 | .owner = THIS_MODULE, | 364 | .owner = THIS_MODULE, |
| 365 | .open = iwm_debugfs_sdio_open, | 365 | .open = iwm_debugfs_sdio_open, |
| 366 | .read = iwm_debugfs_sdio_read, | 366 | .read = iwm_debugfs_sdio_read, |
| 367 | .llseek = default_llseek, | ||
| 367 | }; | 368 | }; |
| 368 | 369 | ||
| 369 | static void if_sdio_debugfs_init(struct iwm_priv *iwm, struct dentry *parent_dir) | 370 | static void if_sdio_debugfs_init(struct iwm_priv *iwm, struct dentry *parent_dir) |
diff --git a/drivers/net/wireless/libertas/debugfs.c b/drivers/net/wireless/libertas/debugfs.c index 651a79c8de8a..fbf3b0332bb7 100644 --- a/drivers/net/wireless/libertas/debugfs.c +++ b/drivers/net/wireless/libertas/debugfs.c | |||
| @@ -696,6 +696,7 @@ out_unlock: | |||
| 696 | .open = open_file_generic, \ | 696 | .open = open_file_generic, \ |
| 697 | .read = (fread), \ | 697 | .read = (fread), \ |
| 698 | .write = (fwrite), \ | 698 | .write = (fwrite), \ |
| 699 | .llseek = generic_file_llseek, \ | ||
| 699 | } | 700 | } |
| 700 | 701 | ||
| 701 | struct lbs_debugfs_files { | 702 | struct lbs_debugfs_files { |
| @@ -961,6 +962,7 @@ static const struct file_operations lbs_debug_fops = { | |||
| 961 | .open = open_file_generic, | 962 | .open = open_file_generic, |
| 962 | .write = lbs_debugfs_write, | 963 | .write = lbs_debugfs_write, |
| 963 | .read = lbs_debugfs_read, | 964 | .read = lbs_debugfs_read, |
| 965 | .llseek = default_llseek, | ||
| 964 | }; | 966 | }; |
| 965 | 967 | ||
| 966 | /** | 968 | /** |
diff --git a/drivers/net/wireless/ray_cs.c b/drivers/net/wireless/ray_cs.c index af5b17ce5a15..46da03753fd5 100644 --- a/drivers/net/wireless/ray_cs.c +++ b/drivers/net/wireless/ray_cs.c | |||
| @@ -2765,6 +2765,7 @@ static ssize_t ray_cs_essid_proc_write(struct file *file, | |||
| 2765 | static const struct file_operations ray_cs_essid_proc_fops = { | 2765 | static const struct file_operations ray_cs_essid_proc_fops = { |
| 2766 | .owner = THIS_MODULE, | 2766 | .owner = THIS_MODULE, |
| 2767 | .write = ray_cs_essid_proc_write, | 2767 | .write = ray_cs_essid_proc_write, |
| 2768 | .llseek = noop_llseek, | ||
| 2768 | }; | 2769 | }; |
| 2769 | 2770 | ||
| 2770 | static ssize_t int_proc_write(struct file *file, const char __user *buffer, | 2771 | static ssize_t int_proc_write(struct file *file, const char __user *buffer, |
| @@ -2798,6 +2799,7 @@ static ssize_t int_proc_write(struct file *file, const char __user *buffer, | |||
| 2798 | static const struct file_operations int_proc_fops = { | 2799 | static const struct file_operations int_proc_fops = { |
| 2799 | .owner = THIS_MODULE, | 2800 | .owner = THIS_MODULE, |
| 2800 | .write = int_proc_write, | 2801 | .write = int_proc_write, |
| 2802 | .llseek = noop_llseek, | ||
| 2801 | }; | 2803 | }; |
| 2802 | #endif | 2804 | #endif |
| 2803 | 2805 | ||
diff --git a/drivers/net/wireless/rt2x00/rt2x00debug.c b/drivers/net/wireless/rt2x00/rt2x00debug.c index b0498e7e7aae..cea81e4c5c82 100644 --- a/drivers/net/wireless/rt2x00/rt2x00debug.c +++ b/drivers/net/wireless/rt2x00/rt2x00debug.c | |||
| @@ -315,6 +315,7 @@ static const struct file_operations rt2x00debug_fop_queue_dump = { | |||
| 315 | .poll = rt2x00debug_poll_queue_dump, | 315 | .poll = rt2x00debug_poll_queue_dump, |
| 316 | .open = rt2x00debug_open_queue_dump, | 316 | .open = rt2x00debug_open_queue_dump, |
| 317 | .release = rt2x00debug_release_queue_dump, | 317 | .release = rt2x00debug_release_queue_dump, |
| 318 | .llseek = default_llseek, | ||
| 318 | }; | 319 | }; |
| 319 | 320 | ||
| 320 | static ssize_t rt2x00debug_read_queue_stats(struct file *file, | 321 | static ssize_t rt2x00debug_read_queue_stats(struct file *file, |
| @@ -371,6 +372,7 @@ static const struct file_operations rt2x00debug_fop_queue_stats = { | |||
| 371 | .read = rt2x00debug_read_queue_stats, | 372 | .read = rt2x00debug_read_queue_stats, |
| 372 | .open = rt2x00debug_file_open, | 373 | .open = rt2x00debug_file_open, |
| 373 | .release = rt2x00debug_file_release, | 374 | .release = rt2x00debug_file_release, |
| 375 | .llseek = default_llseek, | ||
| 374 | }; | 376 | }; |
| 375 | 377 | ||
| 376 | #ifdef CONFIG_RT2X00_LIB_CRYPTO | 378 | #ifdef CONFIG_RT2X00_LIB_CRYPTO |
| @@ -423,6 +425,7 @@ static const struct file_operations rt2x00debug_fop_crypto_stats = { | |||
| 423 | .read = rt2x00debug_read_crypto_stats, | 425 | .read = rt2x00debug_read_crypto_stats, |
| 424 | .open = rt2x00debug_file_open, | 426 | .open = rt2x00debug_file_open, |
| 425 | .release = rt2x00debug_file_release, | 427 | .release = rt2x00debug_file_release, |
| 428 | .llseek = default_llseek, | ||
| 426 | }; | 429 | }; |
| 427 | #endif | 430 | #endif |
| 428 | 431 | ||
| @@ -509,6 +512,7 @@ static const struct file_operations rt2x00debug_fop_##__name = {\ | |||
| 509 | .write = rt2x00debug_write_##__name, \ | 512 | .write = rt2x00debug_write_##__name, \ |
| 510 | .open = rt2x00debug_file_open, \ | 513 | .open = rt2x00debug_file_open, \ |
| 511 | .release = rt2x00debug_file_release, \ | 514 | .release = rt2x00debug_file_release, \ |
| 515 | .llseek = generic_file_llseek, \ | ||
| 512 | }; | 516 | }; |
| 513 | 517 | ||
| 514 | RT2X00DEBUGFS_OPS(csr, "0x%.8x\n", u32); | 518 | RT2X00DEBUGFS_OPS(csr, "0x%.8x\n", u32); |
| @@ -542,6 +546,7 @@ static const struct file_operations rt2x00debug_fop_dev_flags = { | |||
| 542 | .read = rt2x00debug_read_dev_flags, | 546 | .read = rt2x00debug_read_dev_flags, |
| 543 | .open = rt2x00debug_file_open, | 547 | .open = rt2x00debug_file_open, |
| 544 | .release = rt2x00debug_file_release, | 548 | .release = rt2x00debug_file_release, |
| 549 | .llseek = default_llseek, | ||
| 545 | }; | 550 | }; |
| 546 | 551 | ||
| 547 | static struct dentry *rt2x00debug_create_file_driver(const char *name, | 552 | static struct dentry *rt2x00debug_create_file_driver(const char *name, |
diff --git a/drivers/net/wireless/wl12xx/wl1251_debugfs.c b/drivers/net/wireless/wl12xx/wl1251_debugfs.c index 5e4465ac08fa..fa620a5e5303 100644 --- a/drivers/net/wireless/wl12xx/wl1251_debugfs.c +++ b/drivers/net/wireless/wl12xx/wl1251_debugfs.c | |||
| @@ -50,6 +50,7 @@ static ssize_t name## _read(struct file *file, char __user *userbuf, \ | |||
| 50 | static const struct file_operations name## _ops = { \ | 50 | static const struct file_operations name## _ops = { \ |
| 51 | .read = name## _read, \ | 51 | .read = name## _read, \ |
| 52 | .open = wl1251_open_file_generic, \ | 52 | .open = wl1251_open_file_generic, \ |
| 53 | .llseek = generic_file_llseek, \ | ||
| 53 | }; | 54 | }; |
| 54 | 55 | ||
| 55 | #define DEBUGFS_ADD(name, parent) \ | 56 | #define DEBUGFS_ADD(name, parent) \ |
| @@ -86,6 +87,7 @@ static ssize_t sub## _ ##name## _read(struct file *file, \ | |||
| 86 | static const struct file_operations sub## _ ##name## _ops = { \ | 87 | static const struct file_operations sub## _ ##name## _ops = { \ |
| 87 | .read = sub## _ ##name## _read, \ | 88 | .read = sub## _ ##name## _read, \ |
| 88 | .open = wl1251_open_file_generic, \ | 89 | .open = wl1251_open_file_generic, \ |
| 90 | .llseek = generic_file_llseek, \ | ||
| 89 | }; | 91 | }; |
| 90 | 92 | ||
| 91 | #define DEBUGFS_FWSTATS_ADD(sub, name) \ | 93 | #define DEBUGFS_FWSTATS_ADD(sub, name) \ |
| @@ -236,6 +238,7 @@ static ssize_t tx_queue_len_read(struct file *file, char __user *userbuf, | |||
| 236 | static const struct file_operations tx_queue_len_ops = { | 238 | static const struct file_operations tx_queue_len_ops = { |
| 237 | .read = tx_queue_len_read, | 239 | .read = tx_queue_len_read, |
| 238 | .open = wl1251_open_file_generic, | 240 | .open = wl1251_open_file_generic, |
| 241 | .llseek = generic_file_llseek, | ||
| 239 | }; | 242 | }; |
| 240 | 243 | ||
| 241 | static ssize_t tx_queue_status_read(struct file *file, char __user *userbuf, | 244 | static ssize_t tx_queue_status_read(struct file *file, char __user *userbuf, |
| @@ -257,6 +260,7 @@ static ssize_t tx_queue_status_read(struct file *file, char __user *userbuf, | |||
| 257 | static const struct file_operations tx_queue_status_ops = { | 260 | static const struct file_operations tx_queue_status_ops = { |
| 258 | .read = tx_queue_status_read, | 261 | .read = tx_queue_status_read, |
| 259 | .open = wl1251_open_file_generic, | 262 | .open = wl1251_open_file_generic, |
| 263 | .llseek = generic_file_llseek, | ||
| 260 | }; | 264 | }; |
| 261 | 265 | ||
| 262 | static void wl1251_debugfs_delete_files(struct wl1251 *wl) | 266 | static void wl1251_debugfs_delete_files(struct wl1251 *wl) |
diff --git a/drivers/net/wireless/wl12xx/wl1271_debugfs.c b/drivers/net/wireless/wl12xx/wl1271_debugfs.c index c239ef4d0b8d..66c2b90ddfd4 100644 --- a/drivers/net/wireless/wl12xx/wl1271_debugfs.c +++ b/drivers/net/wireless/wl12xx/wl1271_debugfs.c | |||
| @@ -51,6 +51,7 @@ static ssize_t name## _read(struct file *file, char __user *userbuf, \ | |||
| 51 | static const struct file_operations name## _ops = { \ | 51 | static const struct file_operations name## _ops = { \ |
| 52 | .read = name## _read, \ | 52 | .read = name## _read, \ |
| 53 | .open = wl1271_open_file_generic, \ | 53 | .open = wl1271_open_file_generic, \ |
| 54 | .llseek = generic_file_llseek, \ | ||
| 54 | }; | 55 | }; |
| 55 | 56 | ||
| 56 | #define DEBUGFS_ADD(name, parent) \ | 57 | #define DEBUGFS_ADD(name, parent) \ |
| @@ -87,6 +88,7 @@ static ssize_t sub## _ ##name## _read(struct file *file, \ | |||
| 87 | static const struct file_operations sub## _ ##name## _ops = { \ | 88 | static const struct file_operations sub## _ ##name## _ops = { \ |
| 88 | .read = sub## _ ##name## _read, \ | 89 | .read = sub## _ ##name## _read, \ |
| 89 | .open = wl1271_open_file_generic, \ | 90 | .open = wl1271_open_file_generic, \ |
| 91 | .llseek = generic_file_llseek, \ | ||
| 90 | }; | 92 | }; |
| 91 | 93 | ||
| 92 | #define DEBUGFS_FWSTATS_ADD(sub, name) \ | 94 | #define DEBUGFS_FWSTATS_ADD(sub, name) \ |
| @@ -237,6 +239,7 @@ static ssize_t tx_queue_len_read(struct file *file, char __user *userbuf, | |||
| 237 | static const struct file_operations tx_queue_len_ops = { | 239 | static const struct file_operations tx_queue_len_ops = { |
| 238 | .read = tx_queue_len_read, | 240 | .read = tx_queue_len_read, |
| 239 | .open = wl1271_open_file_generic, | 241 | .open = wl1271_open_file_generic, |
| 242 | .llseek = default_llseek, | ||
| 240 | }; | 243 | }; |
| 241 | 244 | ||
| 242 | static ssize_t gpio_power_read(struct file *file, char __user *user_buf, | 245 | static ssize_t gpio_power_read(struct file *file, char __user *user_buf, |
| @@ -291,7 +294,8 @@ out: | |||
| 291 | static const struct file_operations gpio_power_ops = { | 294 | static const struct file_operations gpio_power_ops = { |
| 292 | .read = gpio_power_read, | 295 | .read = gpio_power_read, |
| 293 | .write = gpio_power_write, | 296 | .write = gpio_power_write, |
| 294 | .open = wl1271_open_file_generic | 297 | .open = wl1271_open_file_generic, |
| 298 | .llseek = default_llseek, | ||
| 295 | }; | 299 | }; |
| 296 | 300 | ||
| 297 | static void wl1271_debugfs_delete_files(struct wl1271 *wl) | 301 | static void wl1271_debugfs_delete_files(struct wl1271 *wl) |
diff --git a/drivers/oprofile/oprofile_files.c b/drivers/oprofile/oprofile_files.c index ccf099e684a4..89f63456646f 100644 --- a/drivers/oprofile/oprofile_files.c +++ b/drivers/oprofile/oprofile_files.c | |||
| @@ -59,6 +59,7 @@ static ssize_t timeout_write(struct file *file, char const __user *buf, | |||
| 59 | static const struct file_operations timeout_fops = { | 59 | static const struct file_operations timeout_fops = { |
| 60 | .read = timeout_read, | 60 | .read = timeout_read, |
| 61 | .write = timeout_write, | 61 | .write = timeout_write, |
| 62 | .llseek = default_llseek, | ||
| 62 | }; | 63 | }; |
| 63 | 64 | ||
| 64 | #endif | 65 | #endif |
| @@ -96,7 +97,8 @@ static ssize_t depth_write(struct file *file, char const __user *buf, size_t cou | |||
| 96 | 97 | ||
| 97 | static const struct file_operations depth_fops = { | 98 | static const struct file_operations depth_fops = { |
| 98 | .read = depth_read, | 99 | .read = depth_read, |
| 99 | .write = depth_write | 100 | .write = depth_write, |
| 101 | .llseek = default_llseek, | ||
| 100 | }; | 102 | }; |
| 101 | 103 | ||
| 102 | 104 | ||
| @@ -108,6 +110,7 @@ static ssize_t pointer_size_read(struct file *file, char __user *buf, size_t cou | |||
| 108 | 110 | ||
| 109 | static const struct file_operations pointer_size_fops = { | 111 | static const struct file_operations pointer_size_fops = { |
| 110 | .read = pointer_size_read, | 112 | .read = pointer_size_read, |
| 113 | .llseek = default_llseek, | ||
| 111 | }; | 114 | }; |
| 112 | 115 | ||
| 113 | 116 | ||
| @@ -119,6 +122,7 @@ static ssize_t cpu_type_read(struct file *file, char __user *buf, size_t count, | |||
| 119 | 122 | ||
| 120 | static const struct file_operations cpu_type_fops = { | 123 | static const struct file_operations cpu_type_fops = { |
| 121 | .read = cpu_type_read, | 124 | .read = cpu_type_read, |
| 125 | .llseek = default_llseek, | ||
| 122 | }; | 126 | }; |
| 123 | 127 | ||
| 124 | 128 | ||
| @@ -154,6 +158,7 @@ static ssize_t enable_write(struct file *file, char const __user *buf, size_t co | |||
| 154 | static const struct file_operations enable_fops = { | 158 | static const struct file_operations enable_fops = { |
| 155 | .read = enable_read, | 159 | .read = enable_read, |
| 156 | .write = enable_write, | 160 | .write = enable_write, |
| 161 | .llseek = default_llseek, | ||
| 157 | }; | 162 | }; |
| 158 | 163 | ||
| 159 | 164 | ||
| @@ -166,6 +171,7 @@ static ssize_t dump_write(struct file *file, char const __user *buf, size_t coun | |||
| 166 | 171 | ||
| 167 | static const struct file_operations dump_fops = { | 172 | static const struct file_operations dump_fops = { |
| 168 | .write = dump_write, | 173 | .write = dump_write, |
| 174 | .llseek = noop_llseek, | ||
| 169 | }; | 175 | }; |
| 170 | 176 | ||
| 171 | void oprofile_create_files(struct super_block *sb, struct dentry *root) | 177 | void oprofile_create_files(struct super_block *sb, struct dentry *root) |
diff --git a/drivers/oprofile/oprofilefs.c b/drivers/oprofile/oprofilefs.c index 1944621930d9..95f711b251ad 100644 --- a/drivers/oprofile/oprofilefs.c +++ b/drivers/oprofile/oprofilefs.c | |||
| @@ -121,12 +121,14 @@ static const struct file_operations ulong_fops = { | |||
| 121 | .read = ulong_read_file, | 121 | .read = ulong_read_file, |
| 122 | .write = ulong_write_file, | 122 | .write = ulong_write_file, |
| 123 | .open = default_open, | 123 | .open = default_open, |
| 124 | .llseek = default_llseek, | ||
| 124 | }; | 125 | }; |
| 125 | 126 | ||
| 126 | 127 | ||
| 127 | static const struct file_operations ulong_ro_fops = { | 128 | static const struct file_operations ulong_ro_fops = { |
| 128 | .read = ulong_read_file, | 129 | .read = ulong_read_file, |
| 129 | .open = default_open, | 130 | .open = default_open, |
| 131 | .llseek = default_llseek, | ||
| 130 | }; | 132 | }; |
| 131 | 133 | ||
| 132 | 134 | ||
| @@ -178,6 +180,7 @@ static ssize_t atomic_read_file(struct file *file, char __user *buf, size_t coun | |||
| 178 | static const struct file_operations atomic_ro_fops = { | 180 | static const struct file_operations atomic_ro_fops = { |
| 179 | .read = atomic_read_file, | 181 | .read = atomic_read_file, |
| 180 | .open = default_open, | 182 | .open = default_open, |
| 183 | .llseek = default_llseek, | ||
| 181 | }; | 184 | }; |
| 182 | 185 | ||
| 183 | 186 | ||
diff --git a/drivers/pci/pcie/aer/aer_inject.c b/drivers/pci/pcie/aer/aer_inject.c index 909924692b8a..b3cf6223f63a 100644 --- a/drivers/pci/pcie/aer/aer_inject.c +++ b/drivers/pci/pcie/aer/aer_inject.c | |||
| @@ -472,6 +472,7 @@ static ssize_t aer_inject_write(struct file *filp, const char __user *ubuf, | |||
| 472 | static const struct file_operations aer_inject_fops = { | 472 | static const struct file_operations aer_inject_fops = { |
| 473 | .write = aer_inject_write, | 473 | .write = aer_inject_write, |
| 474 | .owner = THIS_MODULE, | 474 | .owner = THIS_MODULE, |
| 475 | .llseek = noop_llseek, | ||
| 475 | }; | 476 | }; |
| 476 | 477 | ||
| 477 | static struct miscdevice aer_inject_device = { | 478 | static struct miscdevice aer_inject_device = { |
diff --git a/drivers/platform/x86/sony-laptop.c b/drivers/platform/x86/sony-laptop.c index e3154ff7a39f..f200677851b8 100644 --- a/drivers/platform/x86/sony-laptop.c +++ b/drivers/platform/x86/sony-laptop.c | |||
| @@ -2360,6 +2360,7 @@ static const struct file_operations sonypi_misc_fops = { | |||
| 2360 | .release = sonypi_misc_release, | 2360 | .release = sonypi_misc_release, |
| 2361 | .fasync = sonypi_misc_fasync, | 2361 | .fasync = sonypi_misc_fasync, |
| 2362 | .unlocked_ioctl = sonypi_misc_ioctl, | 2362 | .unlocked_ioctl = sonypi_misc_ioctl, |
| 2363 | .llseek = noop_llseek, | ||
| 2363 | }; | 2364 | }; |
| 2364 | 2365 | ||
| 2365 | static struct miscdevice sonypi_misc_device = { | 2366 | static struct miscdevice sonypi_misc_device = { |
diff --git a/drivers/rtc/rtc-m41t80.c b/drivers/rtc/rtc-m41t80.c index 512dca16a42c..5a8daa358066 100644 --- a/drivers/rtc/rtc-m41t80.c +++ b/drivers/rtc/rtc-m41t80.c | |||
| @@ -749,6 +749,7 @@ static const struct file_operations wdt_fops = { | |||
| 749 | .write = wdt_write, | 749 | .write = wdt_write, |
| 750 | .open = wdt_open, | 750 | .open = wdt_open, |
| 751 | .release = wdt_release, | 751 | .release = wdt_release, |
| 752 | .llseek = no_llseek, | ||
| 752 | }; | 753 | }; |
| 753 | 754 | ||
| 754 | static struct miscdevice wdt_dev = { | 755 | static struct miscdevice wdt_dev = { |
diff --git a/drivers/s390/block/dasd_eer.c b/drivers/s390/block/dasd_eer.c index 7158f9528ecc..c71d89dba302 100644 --- a/drivers/s390/block/dasd_eer.c +++ b/drivers/s390/block/dasd_eer.c | |||
| @@ -670,6 +670,7 @@ static const struct file_operations dasd_eer_fops = { | |||
| 670 | .read = &dasd_eer_read, | 670 | .read = &dasd_eer_read, |
| 671 | .poll = &dasd_eer_poll, | 671 | .poll = &dasd_eer_poll, |
| 672 | .owner = THIS_MODULE, | 672 | .owner = THIS_MODULE, |
| 673 | .llseek = noop_llseek, | ||
| 673 | }; | 674 | }; |
| 674 | 675 | ||
| 675 | static struct miscdevice *dasd_eer_dev = NULL; | 676 | static struct miscdevice *dasd_eer_dev = NULL; |
diff --git a/drivers/s390/char/fs3270.c b/drivers/s390/char/fs3270.c index 857dfcb7b359..eb28fb01a38a 100644 --- a/drivers/s390/char/fs3270.c +++ b/drivers/s390/char/fs3270.c | |||
| @@ -520,6 +520,7 @@ static const struct file_operations fs3270_fops = { | |||
| 520 | .compat_ioctl = fs3270_ioctl, /* ioctl */ | 520 | .compat_ioctl = fs3270_ioctl, /* ioctl */ |
| 521 | .open = fs3270_open, /* open */ | 521 | .open = fs3270_open, /* open */ |
| 522 | .release = fs3270_close, /* release */ | 522 | .release = fs3270_close, /* release */ |
| 523 | .llseek = no_llseek, | ||
| 523 | }; | 524 | }; |
| 524 | 525 | ||
| 525 | /* | 526 | /* |
diff --git a/drivers/s390/char/monreader.c b/drivers/s390/char/monreader.c index e021ec663ef9..5b8b8592d311 100644 --- a/drivers/s390/char/monreader.c +++ b/drivers/s390/char/monreader.c | |||
| @@ -447,6 +447,7 @@ static const struct file_operations mon_fops = { | |||
| 447 | .release = &mon_close, | 447 | .release = &mon_close, |
| 448 | .read = &mon_read, | 448 | .read = &mon_read, |
| 449 | .poll = &mon_poll, | 449 | .poll = &mon_poll, |
| 450 | .llseek = noop_llseek, | ||
| 450 | }; | 451 | }; |
| 451 | 452 | ||
| 452 | static struct miscdevice mon_dev = { | 453 | static struct miscdevice mon_dev = { |
diff --git a/drivers/s390/char/monwriter.c b/drivers/s390/char/monwriter.c index 572a1e7fd099..e0702d3ea33b 100644 --- a/drivers/s390/char/monwriter.c +++ b/drivers/s390/char/monwriter.c | |||
| @@ -274,6 +274,7 @@ static const struct file_operations monwrite_fops = { | |||
| 274 | .open = &monwrite_open, | 274 | .open = &monwrite_open, |
| 275 | .release = &monwrite_close, | 275 | .release = &monwrite_close, |
| 276 | .write = &monwrite_write, | 276 | .write = &monwrite_write, |
| 277 | .llseek = noop_llseek, | ||
| 277 | }; | 278 | }; |
| 278 | 279 | ||
| 279 | static struct miscdevice mon_dev = { | 280 | static struct miscdevice mon_dev = { |
diff --git a/drivers/s390/char/tape_char.c b/drivers/s390/char/tape_char.c index 539045acaad4..883e2db02bd3 100644 --- a/drivers/s390/char/tape_char.c +++ b/drivers/s390/char/tape_char.c | |||
| @@ -53,6 +53,7 @@ static const struct file_operations tape_fops = | |||
| 53 | #endif | 53 | #endif |
| 54 | .open = tapechar_open, | 54 | .open = tapechar_open, |
| 55 | .release = tapechar_release, | 55 | .release = tapechar_release, |
| 56 | .llseek = no_llseek, | ||
| 56 | }; | 57 | }; |
| 57 | 58 | ||
| 58 | static int tapechar_major = TAPECHAR_MAJOR; | 59 | static int tapechar_major = TAPECHAR_MAJOR; |
diff --git a/drivers/s390/char/vmcp.c b/drivers/s390/char/vmcp.c index 04e532eec032..0e7cb1a84151 100644 --- a/drivers/s390/char/vmcp.c +++ b/drivers/s390/char/vmcp.c | |||
| @@ -177,6 +177,7 @@ static const struct file_operations vmcp_fops = { | |||
| 177 | .write = vmcp_write, | 177 | .write = vmcp_write, |
| 178 | .unlocked_ioctl = vmcp_ioctl, | 178 | .unlocked_ioctl = vmcp_ioctl, |
| 179 | .compat_ioctl = vmcp_ioctl, | 179 | .compat_ioctl = vmcp_ioctl, |
| 180 | .llseek = no_llseek, | ||
| 180 | }; | 181 | }; |
| 181 | 182 | ||
| 182 | static struct miscdevice vmcp_dev = { | 183 | static struct miscdevice vmcp_dev = { |
diff --git a/drivers/s390/char/vmlogrdr.c b/drivers/s390/char/vmlogrdr.c index e40a1b892866..0d6dc4b92cc2 100644 --- a/drivers/s390/char/vmlogrdr.c +++ b/drivers/s390/char/vmlogrdr.c | |||
| @@ -97,6 +97,7 @@ static const struct file_operations vmlogrdr_fops = { | |||
| 97 | .open = vmlogrdr_open, | 97 | .open = vmlogrdr_open, |
| 98 | .release = vmlogrdr_release, | 98 | .release = vmlogrdr_release, |
| 99 | .read = vmlogrdr_read, | 99 | .read = vmlogrdr_read, |
| 100 | .llseek = no_llseek, | ||
| 100 | }; | 101 | }; |
| 101 | 102 | ||
| 102 | 103 | ||
diff --git a/drivers/s390/char/vmwatchdog.c b/drivers/s390/char/vmwatchdog.c index e13508c98b1a..12ef9121d4f0 100644 --- a/drivers/s390/char/vmwatchdog.c +++ b/drivers/s390/char/vmwatchdog.c | |||
| @@ -297,6 +297,7 @@ static const struct file_operations vmwdt_fops = { | |||
| 297 | .unlocked_ioctl = &vmwdt_ioctl, | 297 | .unlocked_ioctl = &vmwdt_ioctl, |
| 298 | .write = &vmwdt_write, | 298 | .write = &vmwdt_write, |
| 299 | .owner = THIS_MODULE, | 299 | .owner = THIS_MODULE, |
| 300 | .llseek = noop_llseek, | ||
| 300 | }; | 301 | }; |
| 301 | 302 | ||
| 302 | static struct miscdevice vmwdt_dev = { | 303 | static struct miscdevice vmwdt_dev = { |
diff --git a/drivers/s390/char/zcore.c b/drivers/s390/char/zcore.c index f5ea3384a4b9..3b94044027c2 100644 --- a/drivers/s390/char/zcore.c +++ b/drivers/s390/char/zcore.c | |||
| @@ -459,6 +459,7 @@ static const struct file_operations zcore_memmap_fops = { | |||
| 459 | .read = zcore_memmap_read, | 459 | .read = zcore_memmap_read, |
| 460 | .open = zcore_memmap_open, | 460 | .open = zcore_memmap_open, |
| 461 | .release = zcore_memmap_release, | 461 | .release = zcore_memmap_release, |
| 462 | .llseek = no_llseek, | ||
| 462 | }; | 463 | }; |
| 463 | 464 | ||
| 464 | static ssize_t zcore_reipl_write(struct file *filp, const char __user *buf, | 465 | static ssize_t zcore_reipl_write(struct file *filp, const char __user *buf, |
| @@ -486,6 +487,7 @@ static const struct file_operations zcore_reipl_fops = { | |||
| 486 | .write = zcore_reipl_write, | 487 | .write = zcore_reipl_write, |
| 487 | .open = zcore_reipl_open, | 488 | .open = zcore_reipl_open, |
| 488 | .release = zcore_reipl_release, | 489 | .release = zcore_reipl_release, |
| 490 | .llseek = no_llseek, | ||
| 489 | }; | 491 | }; |
| 490 | 492 | ||
| 491 | #ifdef CONFIG_32BIT | 493 | #ifdef CONFIG_32BIT |
diff --git a/drivers/s390/cio/chsc_sch.c b/drivers/s390/cio/chsc_sch.c index a83877c664a6..f2b77e7bfc6f 100644 --- a/drivers/s390/cio/chsc_sch.c +++ b/drivers/s390/cio/chsc_sch.c | |||
| @@ -806,6 +806,7 @@ static const struct file_operations chsc_fops = { | |||
| 806 | .open = nonseekable_open, | 806 | .open = nonseekable_open, |
| 807 | .unlocked_ioctl = chsc_ioctl, | 807 | .unlocked_ioctl = chsc_ioctl, |
| 808 | .compat_ioctl = chsc_ioctl, | 808 | .compat_ioctl = chsc_ioctl, |
| 809 | .llseek = no_llseek, | ||
| 809 | }; | 810 | }; |
| 810 | 811 | ||
| 811 | static struct miscdevice chsc_misc_device = { | 812 | static struct miscdevice chsc_misc_device = { |
diff --git a/drivers/s390/cio/css.c b/drivers/s390/cio/css.c index ac94ac751459..ca8e1c240c3c 100644 --- a/drivers/s390/cio/css.c +++ b/drivers/s390/cio/css.c | |||
| @@ -1067,6 +1067,7 @@ static ssize_t cio_settle_write(struct file *file, const char __user *buf, | |||
| 1067 | static const struct file_operations cio_settle_proc_fops = { | 1067 | static const struct file_operations cio_settle_proc_fops = { |
| 1068 | .open = nonseekable_open, | 1068 | .open = nonseekable_open, |
| 1069 | .write = cio_settle_write, | 1069 | .write = cio_settle_write, |
| 1070 | .llseek = no_llseek, | ||
| 1070 | }; | 1071 | }; |
| 1071 | 1072 | ||
| 1072 | static int __init cio_settle_init(void) | 1073 | static int __init cio_settle_init(void) |
diff --git a/drivers/s390/crypto/zcrypt_api.c b/drivers/s390/crypto/zcrypt_api.c index 41e0aaefafd5..f5221749d180 100644 --- a/drivers/s390/crypto/zcrypt_api.c +++ b/drivers/s390/crypto/zcrypt_api.c | |||
| @@ -897,7 +897,8 @@ static const struct file_operations zcrypt_fops = { | |||
| 897 | .compat_ioctl = zcrypt_compat_ioctl, | 897 | .compat_ioctl = zcrypt_compat_ioctl, |
| 898 | #endif | 898 | #endif |
| 899 | .open = zcrypt_open, | 899 | .open = zcrypt_open, |
| 900 | .release = zcrypt_release | 900 | .release = zcrypt_release, |
| 901 | .llseek = no_llseek, | ||
| 901 | }; | 902 | }; |
| 902 | 903 | ||
| 903 | /* | 904 | /* |
diff --git a/drivers/s390/scsi/zfcp_cfdc.c b/drivers/s390/scsi/zfcp_cfdc.c index fcbd2b756da4..1838cda68ba8 100644 --- a/drivers/s390/scsi/zfcp_cfdc.c +++ b/drivers/s390/scsi/zfcp_cfdc.c | |||
| @@ -251,8 +251,9 @@ static const struct file_operations zfcp_cfdc_fops = { | |||
| 251 | .open = nonseekable_open, | 251 | .open = nonseekable_open, |
| 252 | .unlocked_ioctl = zfcp_cfdc_dev_ioctl, | 252 | .unlocked_ioctl = zfcp_cfdc_dev_ioctl, |
| 253 | #ifdef CONFIG_COMPAT | 253 | #ifdef CONFIG_COMPAT |
| 254 | .compat_ioctl = zfcp_cfdc_dev_ioctl | 254 | .compat_ioctl = zfcp_cfdc_dev_ioctl, |
| 255 | #endif | 255 | #endif |
| 256 | .llseek = no_llseek, | ||
| 256 | }; | 257 | }; |
| 257 | 258 | ||
| 258 | struct miscdevice zfcp_cfdc_misc = { | 259 | struct miscdevice zfcp_cfdc_misc = { |
diff --git a/drivers/sbus/char/display7seg.c b/drivers/sbus/char/display7seg.c index 1690e53fb84a..55f71ea9c418 100644 --- a/drivers/sbus/char/display7seg.c +++ b/drivers/sbus/char/display7seg.c | |||
| @@ -162,6 +162,7 @@ static const struct file_operations d7s_fops = { | |||
| 162 | .compat_ioctl = d7s_ioctl, | 162 | .compat_ioctl = d7s_ioctl, |
| 163 | .open = d7s_open, | 163 | .open = d7s_open, |
| 164 | .release = d7s_release, | 164 | .release = d7s_release, |
| 165 | .llseek = noop_llseek, | ||
| 165 | }; | 166 | }; |
| 166 | 167 | ||
| 167 | static struct miscdevice d7s_miscdev = { | 168 | static struct miscdevice d7s_miscdev = { |
diff --git a/drivers/sbus/char/envctrl.c b/drivers/sbus/char/envctrl.c index 078e5f4520ef..8ce414e39489 100644 --- a/drivers/sbus/char/envctrl.c +++ b/drivers/sbus/char/envctrl.c | |||
| @@ -720,6 +720,7 @@ static const struct file_operations envctrl_fops = { | |||
| 720 | #endif | 720 | #endif |
| 721 | .open = envctrl_open, | 721 | .open = envctrl_open, |
| 722 | .release = envctrl_release, | 722 | .release = envctrl_release, |
| 723 | .llseek = noop_llseek, | ||
| 723 | }; | 724 | }; |
| 724 | 725 | ||
| 725 | static struct miscdevice envctrl_dev = { | 726 | static struct miscdevice envctrl_dev = { |
diff --git a/drivers/scsi/3w-9xxx.c b/drivers/scsi/3w-9xxx.c index 09a139f61ca4..fcf08b3f52c1 100644 --- a/drivers/scsi/3w-9xxx.c +++ b/drivers/scsi/3w-9xxx.c | |||
| @@ -222,7 +222,8 @@ static const struct file_operations twa_fops = { | |||
| 222 | .owner = THIS_MODULE, | 222 | .owner = THIS_MODULE, |
| 223 | .unlocked_ioctl = twa_chrdev_ioctl, | 223 | .unlocked_ioctl = twa_chrdev_ioctl, |
| 224 | .open = twa_chrdev_open, | 224 | .open = twa_chrdev_open, |
| 225 | .release = NULL | 225 | .release = NULL, |
| 226 | .llseek = noop_llseek, | ||
| 226 | }; | 227 | }; |
| 227 | 228 | ||
| 228 | /* This function will complete an aen request from the isr */ | 229 | /* This function will complete an aen request from the isr */ |
diff --git a/drivers/scsi/3w-sas.c b/drivers/scsi/3w-sas.c index 7e5f2385e3e6..6a95d111d207 100644 --- a/drivers/scsi/3w-sas.c +++ b/drivers/scsi/3w-sas.c | |||
| @@ -889,7 +889,8 @@ static const struct file_operations twl_fops = { | |||
| 889 | .owner = THIS_MODULE, | 889 | .owner = THIS_MODULE, |
| 890 | .unlocked_ioctl = twl_chrdev_ioctl, | 890 | .unlocked_ioctl = twl_chrdev_ioctl, |
| 891 | .open = twl_chrdev_open, | 891 | .open = twl_chrdev_open, |
| 892 | .release = NULL | 892 | .release = NULL, |
| 893 | .llseek = noop_llseek, | ||
| 893 | }; | 894 | }; |
| 894 | 895 | ||
| 895 | /* This function passes sense data from firmware to scsi layer */ | 896 | /* This function passes sense data from firmware to scsi layer */ |
diff --git a/drivers/scsi/3w-xxxx.c b/drivers/scsi/3w-xxxx.c index 081c864c11d2..b1125341f4c8 100644 --- a/drivers/scsi/3w-xxxx.c +++ b/drivers/scsi/3w-xxxx.c | |||
| @@ -1058,7 +1058,8 @@ static const struct file_operations tw_fops = { | |||
| 1058 | .owner = THIS_MODULE, | 1058 | .owner = THIS_MODULE, |
| 1059 | .unlocked_ioctl = tw_chrdev_ioctl, | 1059 | .unlocked_ioctl = tw_chrdev_ioctl, |
| 1060 | .open = tw_chrdev_open, | 1060 | .open = tw_chrdev_open, |
| 1061 | .release = NULL | 1061 | .release = NULL, |
| 1062 | .llseek = noop_llseek, | ||
| 1062 | }; | 1063 | }; |
| 1063 | 1064 | ||
| 1064 | /* This function will free up device extension resources */ | 1065 | /* This function will free up device extension resources */ |
diff --git a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c index 6e233362dd7b..dae46d779c7b 100644 --- a/drivers/scsi/aacraid/linit.c +++ b/drivers/scsi/aacraid/linit.c | |||
| @@ -1040,6 +1040,7 @@ static const struct file_operations aac_cfg_fops = { | |||
| 1040 | .compat_ioctl = aac_compat_cfg_ioctl, | 1040 | .compat_ioctl = aac_compat_cfg_ioctl, |
| 1041 | #endif | 1041 | #endif |
| 1042 | .open = aac_cfg_open, | 1042 | .open = aac_cfg_open, |
| 1043 | .llseek = noop_llseek, | ||
| 1043 | }; | 1044 | }; |
| 1044 | 1045 | ||
| 1045 | static struct scsi_host_template aac_driver_template = { | 1046 | static struct scsi_host_template aac_driver_template = { |
diff --git a/drivers/scsi/ch.c b/drivers/scsi/ch.c index e805c8fda239..a15474eef5f7 100644 --- a/drivers/scsi/ch.c +++ b/drivers/scsi/ch.c | |||
| @@ -981,6 +981,7 @@ static const struct file_operations changer_fops = { | |||
| 981 | #ifdef CONFIG_COMPAT | 981 | #ifdef CONFIG_COMPAT |
| 982 | .compat_ioctl = ch_ioctl_compat, | 982 | .compat_ioctl = ch_ioctl_compat, |
| 983 | #endif | 983 | #endif |
| 984 | .llseek = noop_llseek, | ||
| 984 | }; | 985 | }; |
| 985 | 986 | ||
| 986 | static int __init init_ch_module(void) | 987 | static int __init init_ch_module(void) |
diff --git a/drivers/scsi/dpt_i2o.c b/drivers/scsi/dpt_i2o.c index 410ac1def8a6..23dec0063385 100644 --- a/drivers/scsi/dpt_i2o.c +++ b/drivers/scsi/dpt_i2o.c | |||
| @@ -126,6 +126,7 @@ static const struct file_operations adpt_fops = { | |||
| 126 | #ifdef CONFIG_COMPAT | 126 | #ifdef CONFIG_COMPAT |
| 127 | .compat_ioctl = compat_adpt_ioctl, | 127 | .compat_ioctl = compat_adpt_ioctl, |
| 128 | #endif | 128 | #endif |
| 129 | .llseek = noop_llseek, | ||
| 129 | }; | 130 | }; |
| 130 | 131 | ||
| 131 | /* Structures and definitions for synchronous message posting. | 132 | /* Structures and definitions for synchronous message posting. |
diff --git a/drivers/scsi/gdth.c b/drivers/scsi/gdth.c index e927607bbf89..5a3f93101017 100644 --- a/drivers/scsi/gdth.c +++ b/drivers/scsi/gdth.c | |||
| @@ -373,6 +373,7 @@ static const struct file_operations gdth_fops = { | |||
| 373 | .unlocked_ioctl = gdth_unlocked_ioctl, | 373 | .unlocked_ioctl = gdth_unlocked_ioctl, |
| 374 | .open = gdth_open, | 374 | .open = gdth_open, |
| 375 | .release = gdth_close, | 375 | .release = gdth_close, |
| 376 | .llseek = noop_llseek, | ||
| 376 | }; | 377 | }; |
| 377 | 378 | ||
| 378 | #include "gdth_proc.h" | 379 | #include "gdth_proc.h" |
diff --git a/drivers/scsi/megaraid.c b/drivers/scsi/megaraid.c index 4d0cf5cd82cc..7ceb5cf12c6b 100644 --- a/drivers/scsi/megaraid.c +++ b/drivers/scsi/megaraid.c | |||
| @@ -102,6 +102,7 @@ static const struct file_operations megadev_fops = { | |||
| 102 | .owner = THIS_MODULE, | 102 | .owner = THIS_MODULE, |
| 103 | .unlocked_ioctl = megadev_unlocked_ioctl, | 103 | .unlocked_ioctl = megadev_unlocked_ioctl, |
| 104 | .open = megadev_open, | 104 | .open = megadev_open, |
| 105 | .llseek = noop_llseek, | ||
| 105 | }; | 106 | }; |
| 106 | 107 | ||
| 107 | /* | 108 | /* |
diff --git a/drivers/scsi/megaraid/megaraid_mm.c b/drivers/scsi/megaraid/megaraid_mm.c index 42770a1e7b8a..a7008c0c24f9 100644 --- a/drivers/scsi/megaraid/megaraid_mm.c +++ b/drivers/scsi/megaraid/megaraid_mm.c | |||
| @@ -76,6 +76,7 @@ static const struct file_operations lsi_fops = { | |||
| 76 | .compat_ioctl = mraid_mm_compat_ioctl, | 76 | .compat_ioctl = mraid_mm_compat_ioctl, |
| 77 | #endif | 77 | #endif |
| 78 | .owner = THIS_MODULE, | 78 | .owner = THIS_MODULE, |
| 79 | .llseek = noop_llseek, | ||
| 79 | }; | 80 | }; |
| 80 | 81 | ||
| 81 | static struct miscdevice megaraid_mm_dev = { | 82 | static struct miscdevice megaraid_mm_dev = { |
diff --git a/drivers/scsi/megaraid/megaraid_sas.c b/drivers/scsi/megaraid/megaraid_sas.c index c4a595d8d23a..51e2579a743a 100644 --- a/drivers/scsi/megaraid/megaraid_sas.c +++ b/drivers/scsi/megaraid/megaraid_sas.c | |||
| @@ -3955,6 +3955,7 @@ static const struct file_operations megasas_mgmt_fops = { | |||
| 3955 | #ifdef CONFIG_COMPAT | 3955 | #ifdef CONFIG_COMPAT |
| 3956 | .compat_ioctl = megasas_mgmt_compat_ioctl, | 3956 | .compat_ioctl = megasas_mgmt_compat_ioctl, |
| 3957 | #endif | 3957 | #endif |
| 3958 | .llseek = noop_llseek, | ||
| 3958 | }; | 3959 | }; |
| 3959 | 3960 | ||
| 3960 | /* | 3961 | /* |
diff --git a/drivers/scsi/mpt2sas/mpt2sas_ctl.c b/drivers/scsi/mpt2sas/mpt2sas_ctl.c index 31cf126ed440..40cb8aeb21b1 100644 --- a/drivers/scsi/mpt2sas/mpt2sas_ctl.c +++ b/drivers/scsi/mpt2sas/mpt2sas_ctl.c | |||
| @@ -2953,6 +2953,7 @@ static const struct file_operations ctl_fops = { | |||
| 2953 | #ifdef CONFIG_COMPAT | 2953 | #ifdef CONFIG_COMPAT |
| 2954 | .compat_ioctl = _ctl_ioctl_compat, | 2954 | .compat_ioctl = _ctl_ioctl_compat, |
| 2955 | #endif | 2955 | #endif |
| 2956 | .llseek = noop_llseek, | ||
| 2956 | }; | 2957 | }; |
| 2957 | 2958 | ||
| 2958 | static struct miscdevice ctl_dev = { | 2959 | static struct miscdevice ctl_dev = { |
diff --git a/drivers/scsi/osd/osd_uld.c b/drivers/scsi/osd/osd_uld.c index ffdd9fdb9995..b31a8e3841d7 100644 --- a/drivers/scsi/osd/osd_uld.c +++ b/drivers/scsi/osd/osd_uld.c | |||
| @@ -182,6 +182,7 @@ static const struct file_operations osd_fops = { | |||
| 182 | .open = osd_uld_open, | 182 | .open = osd_uld_open, |
| 183 | .release = osd_uld_release, | 183 | .release = osd_uld_release, |
| 184 | .unlocked_ioctl = osd_uld_ioctl, | 184 | .unlocked_ioctl = osd_uld_ioctl, |
| 185 | .llseek = noop_llseek, | ||
| 185 | }; | 186 | }; |
| 186 | 187 | ||
| 187 | struct osd_dev *osduld_path_lookup(const char *name) | 188 | struct osd_dev *osduld_path_lookup(const char *name) |
diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c index ecc45c8b4e6b..4b8765785aeb 100644 --- a/drivers/scsi/pmcraid.c +++ b/drivers/scsi/pmcraid.c | |||
| @@ -4165,6 +4165,7 @@ static const struct file_operations pmcraid_fops = { | |||
| 4165 | #ifdef CONFIG_COMPAT | 4165 | #ifdef CONFIG_COMPAT |
| 4166 | .compat_ioctl = pmcraid_chr_ioctl, | 4166 | .compat_ioctl = pmcraid_chr_ioctl, |
| 4167 | #endif | 4167 | #endif |
| 4168 | .llseek = noop_llseek, | ||
| 4168 | }; | 4169 | }; |
| 4169 | 4170 | ||
| 4170 | 4171 | ||
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index 1e4bff695254..9946fac54255 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c | |||
| @@ -3948,6 +3948,7 @@ static struct pci_driver qla2xxx_pci_driver = { | |||
| 3948 | 3948 | ||
| 3949 | static struct file_operations apidev_fops = { | 3949 | static struct file_operations apidev_fops = { |
| 3950 | .owner = THIS_MODULE, | 3950 | .owner = THIS_MODULE, |
| 3951 | .llseek = noop_llseek, | ||
| 3951 | }; | 3952 | }; |
| 3952 | 3953 | ||
| 3953 | /** | 3954 | /** |
diff --git a/drivers/scsi/scsi_tgt_if.c b/drivers/scsi/scsi_tgt_if.c index 02034460babb..0172de197008 100644 --- a/drivers/scsi/scsi_tgt_if.c +++ b/drivers/scsi/scsi_tgt_if.c | |||
| @@ -331,6 +331,7 @@ static const struct file_operations tgt_fops = { | |||
| 331 | .poll = tgt_poll, | 331 | .poll = tgt_poll, |
| 332 | .write = tgt_write, | 332 | .write = tgt_write, |
| 333 | .mmap = tgt_mmap, | 333 | .mmap = tgt_mmap, |
| 334 | .llseek = noop_llseek, | ||
| 334 | }; | 335 | }; |
| 335 | 336 | ||
| 336 | static struct miscdevice tgt_miscdev = { | 337 | static struct miscdevice tgt_miscdev = { |
diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c index b5507d59b5a6..58ec8f4efcc2 100644 --- a/drivers/scsi/sg.c +++ b/drivers/scsi/sg.c | |||
| @@ -1353,6 +1353,7 @@ static const struct file_operations sg_fops = { | |||
| 1353 | .mmap = sg_mmap, | 1353 | .mmap = sg_mmap, |
| 1354 | .release = sg_release, | 1354 | .release = sg_release, |
| 1355 | .fasync = sg_fasync, | 1355 | .fasync = sg_fasync, |
| 1356 | .llseek = no_llseek, | ||
| 1356 | }; | 1357 | }; |
| 1357 | 1358 | ||
| 1358 | static struct class *sg_sysfs_class; | 1359 | static struct class *sg_sysfs_class; |
diff --git a/drivers/serial/mfd.c b/drivers/serial/mfd.c index 5dff45c76d32..dc0967fb9ea6 100644 --- a/drivers/serial/mfd.c +++ b/drivers/serial/mfd.c | |||
| @@ -228,12 +228,14 @@ static const struct file_operations port_regs_ops = { | |||
| 228 | .owner = THIS_MODULE, | 228 | .owner = THIS_MODULE, |
| 229 | .open = hsu_show_regs_open, | 229 | .open = hsu_show_regs_open, |
| 230 | .read = port_show_regs, | 230 | .read = port_show_regs, |
| 231 | .llseek = default_llseek, | ||
| 231 | }; | 232 | }; |
| 232 | 233 | ||
| 233 | static const struct file_operations dma_regs_ops = { | 234 | static const struct file_operations dma_regs_ops = { |
| 234 | .owner = THIS_MODULE, | 235 | .owner = THIS_MODULE, |
| 235 | .open = hsu_show_regs_open, | 236 | .open = hsu_show_regs_open, |
| 236 | .read = dma_show_regs, | 237 | .read = dma_show_regs, |
| 238 | .llseek = default_llseek, | ||
| 237 | }; | 239 | }; |
| 238 | 240 | ||
| 239 | static int hsu_debugfs_init(struct hsu_port *hsu) | 241 | static int hsu_debugfs_init(struct hsu_port *hsu) |
diff --git a/drivers/spi/dw_spi.c b/drivers/spi/dw_spi.c index 56247853c298..90439314cf67 100644 --- a/drivers/spi/dw_spi.c +++ b/drivers/spi/dw_spi.c | |||
| @@ -131,6 +131,7 @@ static const struct file_operations mrst_spi_regs_ops = { | |||
| 131 | .owner = THIS_MODULE, | 131 | .owner = THIS_MODULE, |
| 132 | .open = spi_show_regs_open, | 132 | .open = spi_show_regs_open, |
| 133 | .read = spi_show_regs, | 133 | .read = spi_show_regs, |
| 134 | .llseek = default_llseek, | ||
| 134 | }; | 135 | }; |
| 135 | 136 | ||
| 136 | static int mrst_spi_debugfs_init(struct dw_spi *dws) | 137 | static int mrst_spi_debugfs_init(struct dw_spi *dws) |
diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index ea1bec3c9a13..4e6245e67995 100644 --- a/drivers/spi/spidev.c +++ b/drivers/spi/spidev.c | |||
| @@ -545,6 +545,7 @@ static const struct file_operations spidev_fops = { | |||
| 545 | .unlocked_ioctl = spidev_ioctl, | 545 | .unlocked_ioctl = spidev_ioctl, |
| 546 | .open = spidev_open, | 546 | .open = spidev_open, |
| 547 | .release = spidev_release, | 547 | .release = spidev_release, |
| 548 | .llseek = no_llseek, | ||
| 548 | }; | 549 | }; |
| 549 | 550 | ||
| 550 | /*-------------------------------------------------------------------------*/ | 551 | /*-------------------------------------------------------------------------*/ |
diff --git a/drivers/staging/comedi/comedi_fops.c b/drivers/staging/comedi/comedi_fops.c index 14091313cebb..fecb89e8c663 100644 --- a/drivers/staging/comedi/comedi_fops.c +++ b/drivers/staging/comedi/comedi_fops.c | |||
| @@ -1922,6 +1922,7 @@ const struct file_operations comedi_fops = { | |||
| 1922 | .mmap = comedi_mmap, | 1922 | .mmap = comedi_mmap, |
| 1923 | .poll = comedi_poll, | 1923 | .poll = comedi_poll, |
| 1924 | .fasync = comedi_fasync, | 1924 | .fasync = comedi_fasync, |
| 1925 | .llseek = noop_llseek, | ||
| 1925 | }; | 1926 | }; |
| 1926 | 1927 | ||
| 1927 | struct class *comedi_class; | 1928 | struct class *comedi_class; |
diff --git a/drivers/staging/crystalhd/crystalhd_lnx.c b/drivers/staging/crystalhd/crystalhd_lnx.c index fbb80f09a3d9..af258991fe7f 100644 --- a/drivers/staging/crystalhd/crystalhd_lnx.c +++ b/drivers/staging/crystalhd/crystalhd_lnx.c | |||
| @@ -351,6 +351,7 @@ static const struct file_operations chd_dec_fops = { | |||
| 351 | .unlocked_ioctl = chd_dec_ioctl, | 351 | .unlocked_ioctl = chd_dec_ioctl, |
| 352 | .open = chd_dec_open, | 352 | .open = chd_dec_open, |
| 353 | .release = chd_dec_close, | 353 | .release = chd_dec_close, |
| 354 | .llseek = noop_llseek, | ||
| 354 | }; | 355 | }; |
| 355 | 356 | ||
| 356 | static int __devinit chd_dec_init_chdev(struct crystalhd_adp *adp) | 357 | static int __devinit chd_dec_init_chdev(struct crystalhd_adp *adp) |
diff --git a/drivers/staging/dream/camera/msm_camera.c b/drivers/staging/dream/camera/msm_camera.c index 81bd71fd816e..de4ab61efd4b 100644 --- a/drivers/staging/dream/camera/msm_camera.c +++ b/drivers/staging/dream/camera/msm_camera.c | |||
| @@ -1941,6 +1941,7 @@ static const struct file_operations msm_fops_config = { | |||
| 1941 | .open = msm_open, | 1941 | .open = msm_open, |
| 1942 | .unlocked_ioctl = msm_ioctl_config, | 1942 | .unlocked_ioctl = msm_ioctl_config, |
| 1943 | .release = msm_release_config, | 1943 | .release = msm_release_config, |
| 1944 | .llseek = no_llseek, | ||
| 1944 | }; | 1945 | }; |
| 1945 | 1946 | ||
| 1946 | static const struct file_operations msm_fops_control = { | 1947 | static const struct file_operations msm_fops_control = { |
| @@ -1948,6 +1949,7 @@ static const struct file_operations msm_fops_control = { | |||
| 1948 | .open = msm_open_control, | 1949 | .open = msm_open_control, |
| 1949 | .unlocked_ioctl = msm_ioctl_control, | 1950 | .unlocked_ioctl = msm_ioctl_control, |
| 1950 | .release = msm_release_control, | 1951 | .release = msm_release_control, |
| 1952 | .llseek = no_llseek, | ||
| 1951 | }; | 1953 | }; |
| 1952 | 1954 | ||
| 1953 | static const struct file_operations msm_fops_frame = { | 1955 | static const struct file_operations msm_fops_frame = { |
| @@ -1956,6 +1958,7 @@ static const struct file_operations msm_fops_frame = { | |||
| 1956 | .unlocked_ioctl = msm_ioctl_frame, | 1958 | .unlocked_ioctl = msm_ioctl_frame, |
| 1957 | .release = msm_release_frame, | 1959 | .release = msm_release_frame, |
| 1958 | .poll = msm_poll_frame, | 1960 | .poll = msm_poll_frame, |
| 1961 | .llseek = no_llseek, | ||
| 1959 | }; | 1962 | }; |
| 1960 | 1963 | ||
| 1961 | static int msm_setup_cdev(struct msm_device *msm, | 1964 | static int msm_setup_cdev(struct msm_device *msm, |
diff --git a/drivers/staging/dream/pmem.c b/drivers/staging/dream/pmem.c index 7d6bbadd7fc7..3640d1f2376d 100644 --- a/drivers/staging/dream/pmem.c +++ b/drivers/staging/dream/pmem.c | |||
| @@ -180,6 +180,7 @@ const struct file_operations pmem_fops = { | |||
| 180 | .mmap = pmem_mmap, | 180 | .mmap = pmem_mmap, |
| 181 | .open = pmem_open, | 181 | .open = pmem_open, |
| 182 | .unlocked_ioctl = pmem_ioctl, | 182 | .unlocked_ioctl = pmem_ioctl, |
| 183 | .llseek = noop_llseek, | ||
| 183 | }; | 184 | }; |
| 184 | 185 | ||
| 185 | static int get_id(struct file *file) | 186 | static int get_id(struct file *file) |
| @@ -1204,6 +1205,7 @@ static ssize_t debug_read(struct file *file, char __user *buf, size_t count, | |||
| 1204 | static struct file_operations debug_fops = { | 1205 | static struct file_operations debug_fops = { |
| 1205 | .read = debug_read, | 1206 | .read = debug_read, |
| 1206 | .open = debug_open, | 1207 | .open = debug_open, |
| 1208 | .llseek = default_llseek, | ||
| 1207 | }; | 1209 | }; |
| 1208 | #endif | 1210 | #endif |
| 1209 | 1211 | ||
diff --git a/drivers/staging/dream/qdsp5/adsp_driver.c b/drivers/staging/dream/qdsp5/adsp_driver.c index 8197765aae1e..28a6f8da9477 100644 --- a/drivers/staging/dream/qdsp5/adsp_driver.c +++ b/drivers/staging/dream/qdsp5/adsp_driver.c | |||
| @@ -582,6 +582,7 @@ static struct file_operations adsp_fops = { | |||
| 582 | .open = adsp_open, | 582 | .open = adsp_open, |
| 583 | .unlocked_ioctl = adsp_ioctl, | 583 | .unlocked_ioctl = adsp_ioctl, |
| 584 | .release = adsp_release, | 584 | .release = adsp_release, |
| 585 | .llseek = no_llseek, | ||
| 585 | }; | 586 | }; |
| 586 | 587 | ||
| 587 | static void adsp_create(struct adsp_device *adev, const char *name, | 588 | static void adsp_create(struct adsp_device *adev, const char *name, |
diff --git a/drivers/staging/dream/qdsp5/audio_aac.c b/drivers/staging/dream/qdsp5/audio_aac.c index a373f3522384..45f4c78ab6e7 100644 --- a/drivers/staging/dream/qdsp5/audio_aac.c +++ b/drivers/staging/dream/qdsp5/audio_aac.c | |||
| @@ -1030,6 +1030,7 @@ static struct file_operations audio_aac_fops = { | |||
| 1030 | .read = audio_read, | 1030 | .read = audio_read, |
| 1031 | .write = audio_write, | 1031 | .write = audio_write, |
| 1032 | .unlocked_ioctl = audio_ioctl, | 1032 | .unlocked_ioctl = audio_ioctl, |
| 1033 | .llseek = noop_llseek, | ||
| 1033 | }; | 1034 | }; |
| 1034 | 1035 | ||
| 1035 | struct miscdevice audio_aac_misc = { | 1036 | struct miscdevice audio_aac_misc = { |
diff --git a/drivers/staging/dream/qdsp5/audio_amrnb.c b/drivers/staging/dream/qdsp5/audio_amrnb.c index 07b79d5836e5..402bbc13281a 100644 --- a/drivers/staging/dream/qdsp5/audio_amrnb.c +++ b/drivers/staging/dream/qdsp5/audio_amrnb.c | |||
| @@ -841,6 +841,7 @@ static struct file_operations audio_amrnb_fops = { | |||
| 841 | .read = audamrnb_read, | 841 | .read = audamrnb_read, |
| 842 | .write = audamrnb_write, | 842 | .write = audamrnb_write, |
| 843 | .unlocked_ioctl = audamrnb_ioctl, | 843 | .unlocked_ioctl = audamrnb_ioctl, |
| 844 | .llseek = noop_llseek, | ||
| 844 | }; | 845 | }; |
| 845 | 846 | ||
| 846 | struct miscdevice audio_amrnb_misc = { | 847 | struct miscdevice audio_amrnb_misc = { |
diff --git a/drivers/staging/dream/qdsp5/audio_evrc.c b/drivers/staging/dream/qdsp5/audio_evrc.c index ad989ee87690..24a892647370 100644 --- a/drivers/staging/dream/qdsp5/audio_evrc.c +++ b/drivers/staging/dream/qdsp5/audio_evrc.c | |||
| @@ -813,6 +813,7 @@ static struct file_operations audio_evrc_fops = { | |||
| 813 | .read = audevrc_read, | 813 | .read = audevrc_read, |
| 814 | .write = audevrc_write, | 814 | .write = audevrc_write, |
| 815 | .unlocked_ioctl = audevrc_ioctl, | 815 | .unlocked_ioctl = audevrc_ioctl, |
| 816 | .llseek = noop_llseek, | ||
| 816 | }; | 817 | }; |
| 817 | 818 | ||
| 818 | struct miscdevice audio_evrc_misc = { | 819 | struct miscdevice audio_evrc_misc = { |
diff --git a/drivers/staging/dream/qdsp5/audio_in.c b/drivers/staging/dream/qdsp5/audio_in.c index 6ae48e72d145..b51fa096074e 100644 --- a/drivers/staging/dream/qdsp5/audio_in.c +++ b/drivers/staging/dream/qdsp5/audio_in.c | |||
| @@ -921,12 +921,14 @@ static struct file_operations audio_fops = { | |||
| 921 | .read = audio_in_read, | 921 | .read = audio_in_read, |
| 922 | .write = audio_in_write, | 922 | .write = audio_in_write, |
| 923 | .unlocked_ioctl = audio_in_ioctl, | 923 | .unlocked_ioctl = audio_in_ioctl, |
| 924 | .llseek = noop_llseek, | ||
| 924 | }; | 925 | }; |
| 925 | 926 | ||
| 926 | static struct file_operations audpre_fops = { | 927 | static struct file_operations audpre_fops = { |
| 927 | .owner = THIS_MODULE, | 928 | .owner = THIS_MODULE, |
| 928 | .open = audpre_open, | 929 | .open = audpre_open, |
| 929 | .unlocked_ioctl = audpre_ioctl, | 930 | .unlocked_ioctl = audpre_ioctl, |
| 931 | .llseek = noop_llseek, | ||
| 930 | }; | 932 | }; |
| 931 | 933 | ||
| 932 | struct miscdevice audio_in_misc = { | 934 | struct miscdevice audio_in_misc = { |
diff --git a/drivers/staging/dream/qdsp5/audio_mp3.c b/drivers/staging/dream/qdsp5/audio_mp3.c index 530e1f35eed3..409a19ce6039 100644 --- a/drivers/staging/dream/qdsp5/audio_mp3.c +++ b/drivers/staging/dream/qdsp5/audio_mp3.c | |||
| @@ -948,6 +948,7 @@ static struct file_operations audio_mp3_fops = { | |||
| 948 | .read = audio_read, | 948 | .read = audio_read, |
| 949 | .write = audio_write, | 949 | .write = audio_write, |
| 950 | .unlocked_ioctl = audio_ioctl, | 950 | .unlocked_ioctl = audio_ioctl, |
| 951 | .llseek = noop_llseek, | ||
| 951 | }; | 952 | }; |
| 952 | 953 | ||
| 953 | struct miscdevice audio_mp3_misc = { | 954 | struct miscdevice audio_mp3_misc = { |
diff --git a/drivers/staging/dream/qdsp5/audio_out.c b/drivers/staging/dream/qdsp5/audio_out.c index 76d7fa5667d5..d20e89541567 100644 --- a/drivers/staging/dream/qdsp5/audio_out.c +++ b/drivers/staging/dream/qdsp5/audio_out.c | |||
| @@ -807,12 +807,14 @@ static struct file_operations audio_fops = { | |||
| 807 | .read = audio_read, | 807 | .read = audio_read, |
| 808 | .write = audio_write, | 808 | .write = audio_write, |
| 809 | .unlocked_ioctl = audio_ioctl, | 809 | .unlocked_ioctl = audio_ioctl, |
| 810 | .llseek = noop_llseek, | ||
| 810 | }; | 811 | }; |
| 811 | 812 | ||
| 812 | static struct file_operations audpp_fops = { | 813 | static struct file_operations audpp_fops = { |
| 813 | .owner = THIS_MODULE, | 814 | .owner = THIS_MODULE, |
| 814 | .open = audpp_open, | 815 | .open = audpp_open, |
| 815 | .unlocked_ioctl = audpp_ioctl, | 816 | .unlocked_ioctl = audpp_ioctl, |
| 817 | .llseek = noop_llseek, | ||
| 816 | }; | 818 | }; |
| 817 | 819 | ||
| 818 | struct miscdevice audio_misc = { | 820 | struct miscdevice audio_misc = { |
diff --git a/drivers/staging/dream/qdsp5/audio_qcelp.c b/drivers/staging/dream/qdsp5/audio_qcelp.c index effa96f34fdc..911bab416b85 100644 --- a/drivers/staging/dream/qdsp5/audio_qcelp.c +++ b/drivers/staging/dream/qdsp5/audio_qcelp.c | |||
| @@ -824,6 +824,7 @@ static struct file_operations audio_qcelp_fops = { | |||
| 824 | .read = audqcelp_read, | 824 | .read = audqcelp_read, |
| 825 | .write = audqcelp_write, | 825 | .write = audqcelp_write, |
| 826 | .unlocked_ioctl = audqcelp_ioctl, | 826 | .unlocked_ioctl = audqcelp_ioctl, |
| 827 | .llseek = noop_llseek, | ||
| 827 | }; | 828 | }; |
| 828 | 829 | ||
| 829 | struct miscdevice audio_qcelp_misc = { | 830 | struct miscdevice audio_qcelp_misc = { |
diff --git a/drivers/staging/dream/qdsp5/evlog.h b/drivers/staging/dream/qdsp5/evlog.h index 922ce670a32a..e5ab86b9dd7c 100644 --- a/drivers/staging/dream/qdsp5/evlog.h +++ b/drivers/staging/dream/qdsp5/evlog.h | |||
| @@ -123,6 +123,7 @@ static int ev_log_open(struct inode *inode, struct file *file) | |||
| 123 | static const struct file_operations ev_log_ops = { | 123 | static const struct file_operations ev_log_ops = { |
| 124 | .read = ev_log_read, | 124 | .read = ev_log_read, |
| 125 | .open = ev_log_open, | 125 | .open = ev_log_open, |
| 126 | .llseek = default_llseek, | ||
| 126 | }; | 127 | }; |
| 127 | 128 | ||
| 128 | static int ev_log_init(struct ev_log *log) | 129 | static int ev_log_init(struct ev_log *log) |
diff --git a/drivers/staging/dream/qdsp5/snd.c b/drivers/staging/dream/qdsp5/snd.c index 037d7ffb7e67..e0f2f7bca29e 100644 --- a/drivers/staging/dream/qdsp5/snd.c +++ b/drivers/staging/dream/qdsp5/snd.c | |||
| @@ -247,6 +247,7 @@ static struct file_operations snd_fops = { | |||
| 247 | .open = snd_open, | 247 | .open = snd_open, |
| 248 | .release = snd_release, | 248 | .release = snd_release, |
| 249 | .unlocked_ioctl = snd_ioctl, | 249 | .unlocked_ioctl = snd_ioctl, |
| 250 | .llseek = noop_llseek, | ||
| 250 | }; | 251 | }; |
| 251 | 252 | ||
| 252 | struct miscdevice snd_misc = { | 253 | struct miscdevice snd_misc = { |
diff --git a/drivers/staging/frontier/alphatrack.c b/drivers/staging/frontier/alphatrack.c index 4e52105e6070..689099b57fd2 100644 --- a/drivers/staging/frontier/alphatrack.c +++ b/drivers/staging/frontier/alphatrack.c | |||
| @@ -641,6 +641,7 @@ static const struct file_operations usb_alphatrack_fops = { | |||
| 641 | .open = usb_alphatrack_open, | 641 | .open = usb_alphatrack_open, |
| 642 | .release = usb_alphatrack_release, | 642 | .release = usb_alphatrack_release, |
| 643 | .poll = usb_alphatrack_poll, | 643 | .poll = usb_alphatrack_poll, |
| 644 | .llseek = no_llseek, | ||
| 644 | }; | 645 | }; |
| 645 | 646 | ||
| 646 | /* | 647 | /* |
diff --git a/drivers/staging/frontier/tranzport.c b/drivers/staging/frontier/tranzport.c index eed74f0fe0b6..3d12c1737edc 100644 --- a/drivers/staging/frontier/tranzport.c +++ b/drivers/staging/frontier/tranzport.c | |||
| @@ -767,6 +767,7 @@ static const struct file_operations usb_tranzport_fops = { | |||
| 767 | .open = usb_tranzport_open, | 767 | .open = usb_tranzport_open, |
| 768 | .release = usb_tranzport_release, | 768 | .release = usb_tranzport_release, |
| 769 | .poll = usb_tranzport_poll, | 769 | .poll = usb_tranzport_poll, |
| 770 | .llseek = no_llseek, | ||
| 770 | }; | 771 | }; |
| 771 | 772 | ||
| 772 | /* | 773 | /* |
diff --git a/drivers/staging/iio/industrialio-core.c b/drivers/staging/iio/industrialio-core.c index dd4d87a8bcaf..92a212f064bd 100644 --- a/drivers/staging/iio/industrialio-core.c +++ b/drivers/staging/iio/industrialio-core.c | |||
| @@ -349,6 +349,7 @@ static const struct file_operations iio_event_chrdev_fileops = { | |||
| 349 | .release = iio_event_chrdev_release, | 349 | .release = iio_event_chrdev_release, |
| 350 | .open = iio_event_chrdev_open, | 350 | .open = iio_event_chrdev_open, |
| 351 | .owner = THIS_MODULE, | 351 | .owner = THIS_MODULE, |
| 352 | .llseek = noop_llseek, | ||
| 352 | }; | 353 | }; |
| 353 | 354 | ||
| 354 | static void iio_event_dev_release(struct device *dev) | 355 | static void iio_event_dev_release(struct device *dev) |
diff --git a/drivers/staging/iio/industrialio-ring.c b/drivers/staging/iio/industrialio-ring.c index 6ab578e4f5f3..1c5f67253b82 100644 --- a/drivers/staging/iio/industrialio-ring.c +++ b/drivers/staging/iio/industrialio-ring.c | |||
| @@ -133,6 +133,7 @@ static const struct file_operations iio_ring_fileops = { | |||
| 133 | .release = iio_ring_release, | 133 | .release = iio_ring_release, |
| 134 | .open = iio_ring_open, | 134 | .open = iio_ring_open, |
| 135 | .owner = THIS_MODULE, | 135 | .owner = THIS_MODULE, |
| 136 | .llseek = noop_llseek, | ||
| 136 | }; | 137 | }; |
| 137 | 138 | ||
| 138 | /** | 139 | /** |
diff --git a/drivers/staging/lirc/lirc_imon.c b/drivers/staging/lirc/lirc_imon.c index 66493253042e..ed5c5fe022c9 100644 --- a/drivers/staging/lirc/lirc_imon.c +++ b/drivers/staging/lirc/lirc_imon.c | |||
| @@ -115,7 +115,8 @@ static const struct file_operations display_fops = { | |||
| 115 | .owner = THIS_MODULE, | 115 | .owner = THIS_MODULE, |
| 116 | .open = &display_open, | 116 | .open = &display_open, |
| 117 | .write = &vfd_write, | 117 | .write = &vfd_write, |
| 118 | .release = &display_close | 118 | .release = &display_close, |
| 119 | .llseek = noop_llseek, | ||
| 119 | }; | 120 | }; |
| 120 | 121 | ||
| 121 | /* | 122 | /* |
diff --git a/drivers/staging/lirc/lirc_it87.c b/drivers/staging/lirc/lirc_it87.c index ec11c0e949a0..543c5c3bf907 100644 --- a/drivers/staging/lirc/lirc_it87.c +++ b/drivers/staging/lirc/lirc_it87.c | |||
| @@ -342,6 +342,7 @@ static const struct file_operations lirc_fops = { | |||
| 342 | .unlocked_ioctl = lirc_ioctl, | 342 | .unlocked_ioctl = lirc_ioctl, |
| 343 | .open = lirc_open, | 343 | .open = lirc_open, |
| 344 | .release = lirc_close, | 344 | .release = lirc_close, |
| 345 | .llseek = noop_llseek, | ||
| 345 | }; | 346 | }; |
| 346 | 347 | ||
| 347 | static int set_use_inc(void *data) | 348 | static int set_use_inc(void *data) |
diff --git a/drivers/staging/lirc/lirc_sasem.c b/drivers/staging/lirc/lirc_sasem.c index 73166c3f581f..8f72a84f34ec 100644 --- a/drivers/staging/lirc/lirc_sasem.c +++ b/drivers/staging/lirc/lirc_sasem.c | |||
| @@ -125,6 +125,7 @@ static const struct file_operations vfd_fops = { | |||
| 125 | .write = &vfd_write, | 125 | .write = &vfd_write, |
| 126 | .unlocked_ioctl = &vfd_ioctl, | 126 | .unlocked_ioctl = &vfd_ioctl, |
| 127 | .release = &vfd_close, | 127 | .release = &vfd_close, |
| 128 | .llseek = noop_llseek, | ||
| 128 | }; | 129 | }; |
| 129 | 130 | ||
| 130 | /* USB Device ID for Sasem USB Control Board */ | 131 | /* USB Device ID for Sasem USB Control Board */ |
diff --git a/drivers/staging/lirc/lirc_serial.c b/drivers/staging/lirc/lirc_serial.c index 9456f8e3f9ef..8da382492612 100644 --- a/drivers/staging/lirc/lirc_serial.c +++ b/drivers/staging/lirc/lirc_serial.c | |||
| @@ -1058,6 +1058,7 @@ static const struct file_operations lirc_fops = { | |||
| 1058 | .poll = lirc_dev_fop_poll, | 1058 | .poll = lirc_dev_fop_poll, |
| 1059 | .open = lirc_dev_fop_open, | 1059 | .open = lirc_dev_fop_open, |
| 1060 | .release = lirc_dev_fop_close, | 1060 | .release = lirc_dev_fop_close, |
| 1061 | .llseek = no_llseek, | ||
| 1061 | }; | 1062 | }; |
| 1062 | 1063 | ||
| 1063 | static struct lirc_driver driver = { | 1064 | static struct lirc_driver driver = { |
diff --git a/drivers/staging/lirc/lirc_sir.c b/drivers/staging/lirc/lirc_sir.c index eb08fa7138ba..2478871bd95e 100644 --- a/drivers/staging/lirc/lirc_sir.c +++ b/drivers/staging/lirc/lirc_sir.c | |||
| @@ -459,6 +459,7 @@ static const struct file_operations lirc_fops = { | |||
| 459 | .unlocked_ioctl = lirc_ioctl, | 459 | .unlocked_ioctl = lirc_ioctl, |
| 460 | .open = lirc_dev_fop_open, | 460 | .open = lirc_dev_fop_open, |
| 461 | .release = lirc_dev_fop_close, | 461 | .release = lirc_dev_fop_close, |
| 462 | .llseek = no_llseek, | ||
| 462 | }; | 463 | }; |
| 463 | 464 | ||
| 464 | static int set_use_inc(void *data) | 465 | static int set_use_inc(void *data) |
diff --git a/drivers/staging/memrar/memrar_handler.c b/drivers/staging/memrar/memrar_handler.c index a98b3f1f11e0..cfcaa8e5b8e6 100644 --- a/drivers/staging/memrar/memrar_handler.c +++ b/drivers/staging/memrar/memrar_handler.c | |||
| @@ -890,6 +890,7 @@ static const struct file_operations memrar_fops = { | |||
| 890 | .mmap = memrar_mmap, | 890 | .mmap = memrar_mmap, |
| 891 | .open = memrar_open, | 891 | .open = memrar_open, |
| 892 | .release = memrar_release, | 892 | .release = memrar_release, |
| 893 | .llseek = no_llseek, | ||
| 893 | }; | 894 | }; |
| 894 | 895 | ||
| 895 | static struct miscdevice memrar_miscdev = { | 896 | static struct miscdevice memrar_miscdev = { |
diff --git a/drivers/staging/panel/panel.c b/drivers/staging/panel/panel.c index 3221814a856e..6885f9a46609 100644 --- a/drivers/staging/panel/panel.c +++ b/drivers/staging/panel/panel.c | |||
| @@ -1631,6 +1631,7 @@ static const struct file_operations keypad_fops = { | |||
| 1631 | .read = keypad_read, /* read */ | 1631 | .read = keypad_read, /* read */ |
| 1632 | .open = keypad_open, /* open */ | 1632 | .open = keypad_open, /* open */ |
| 1633 | .release = keypad_release, /* close */ | 1633 | .release = keypad_release, /* close */ |
| 1634 | .llseek = default_llseek, | ||
| 1634 | }; | 1635 | }; |
| 1635 | 1636 | ||
| 1636 | static struct miscdevice keypad_dev = { | 1637 | static struct miscdevice keypad_dev = { |
diff --git a/drivers/staging/tidspbridge/rmgr/drv_interface.c b/drivers/staging/tidspbridge/rmgr/drv_interface.c index 7ee89492a755..7b3a7d04a109 100644 --- a/drivers/staging/tidspbridge/rmgr/drv_interface.c +++ b/drivers/staging/tidspbridge/rmgr/drv_interface.c | |||
| @@ -144,6 +144,7 @@ static const struct file_operations bridge_fops = { | |||
| 144 | .release = bridge_release, | 144 | .release = bridge_release, |
| 145 | .unlocked_ioctl = bridge_ioctl, | 145 | .unlocked_ioctl = bridge_ioctl, |
| 146 | .mmap = bridge_mmap, | 146 | .mmap = bridge_mmap, |
| 147 | .llseek = noop_llseek, | ||
| 147 | }; | 148 | }; |
| 148 | 149 | ||
| 149 | #ifdef CONFIG_PM | 150 | #ifdef CONFIG_PM |
diff --git a/drivers/telephony/ixj.c b/drivers/telephony/ixj.c index b1e469983b1d..0d236f4bb8c2 100644 --- a/drivers/telephony/ixj.c +++ b/drivers/telephony/ixj.c | |||
| @@ -6677,7 +6677,8 @@ static const struct file_operations ixj_fops = | |||
| 6677 | .poll = ixj_poll, | 6677 | .poll = ixj_poll, |
| 6678 | .unlocked_ioctl = ixj_ioctl, | 6678 | .unlocked_ioctl = ixj_ioctl, |
| 6679 | .release = ixj_release, | 6679 | .release = ixj_release, |
| 6680 | .fasync = ixj_fasync | 6680 | .fasync = ixj_fasync, |
| 6681 | .llseek = default_llseek, | ||
| 6681 | }; | 6682 | }; |
| 6682 | 6683 | ||
| 6683 | static int ixj_linetest(IXJ *j) | 6684 | static int ixj_linetest(IXJ *j) |
diff --git a/drivers/telephony/phonedev.c b/drivers/telephony/phonedev.c index f3873f650bb4..1915af201175 100644 --- a/drivers/telephony/phonedev.c +++ b/drivers/telephony/phonedev.c | |||
| @@ -130,6 +130,7 @@ static const struct file_operations phone_fops = | |||
| 130 | { | 130 | { |
| 131 | .owner = THIS_MODULE, | 131 | .owner = THIS_MODULE, |
| 132 | .open = phone_open, | 132 | .open = phone_open, |
| 133 | .llseek = noop_llseek, | ||
| 133 | }; | 134 | }; |
| 134 | 135 | ||
| 135 | /* | 136 | /* |
diff --git a/drivers/uio/uio.c b/drivers/uio/uio.c index bff1afbde5a4..4d3a6fd1a152 100644 --- a/drivers/uio/uio.c +++ b/drivers/uio/uio.c | |||
| @@ -740,6 +740,7 @@ static const struct file_operations uio_fops = { | |||
| 740 | .mmap = uio_mmap, | 740 | .mmap = uio_mmap, |
| 741 | .poll = uio_poll, | 741 | .poll = uio_poll, |
| 742 | .fasync = uio_fasync, | 742 | .fasync = uio_fasync, |
| 743 | .llseek = noop_llseek, | ||
| 743 | }; | 744 | }; |
| 744 | 745 | ||
| 745 | static int uio_major_init(void) | 746 | static int uio_major_init(void) |
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 | /* |
diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index 17927b1f9334..861af4a8b79c 100644 --- a/drivers/vhost/net.c +++ b/drivers/vhost/net.c | |||
| @@ -877,6 +877,7 @@ static const struct file_operations vhost_net_fops = { | |||
| 877 | .compat_ioctl = vhost_net_compat_ioctl, | 877 | .compat_ioctl = vhost_net_compat_ioctl, |
| 878 | #endif | 878 | #endif |
| 879 | .open = vhost_net_open, | 879 | .open = vhost_net_open, |
| 880 | .llseek = noop_llseek, | ||
| 880 | }; | 881 | }; |
| 881 | 882 | ||
| 882 | static struct miscdevice vhost_net_misc = { | 883 | static struct miscdevice vhost_net_misc = { |
diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c index b06647517c0e..42e303ff862a 100644 --- a/drivers/video/fbmem.c +++ b/drivers/video/fbmem.c | |||
| @@ -1439,6 +1439,7 @@ static const struct file_operations fb_fops = { | |||
| 1439 | #ifdef CONFIG_FB_DEFERRED_IO | 1439 | #ifdef CONFIG_FB_DEFERRED_IO |
| 1440 | .fsync = fb_deferred_io_fsync, | 1440 | .fsync = fb_deferred_io_fsync, |
| 1441 | #endif | 1441 | #endif |
| 1442 | .llseek = default_llseek, | ||
| 1442 | }; | 1443 | }; |
| 1443 | 1444 | ||
| 1444 | struct class *fb_class; | 1445 | struct class *fb_class; |
diff --git a/drivers/video/mbx/mbxdebugfs.c b/drivers/video/mbx/mbxdebugfs.c index ecad96524570..12dec7634c55 100644 --- a/drivers/video/mbx/mbxdebugfs.c +++ b/drivers/video/mbx/mbxdebugfs.c | |||
| @@ -175,36 +175,42 @@ static const struct file_operations sysconf_fops = { | |||
| 175 | .read = sysconf_read_file, | 175 | .read = sysconf_read_file, |
| 176 | .write = write_file_dummy, | 176 | .write = write_file_dummy, |
| 177 | .open = open_file_generic, | 177 | .open = open_file_generic, |
| 178 | .llseek = default_llseek, | ||
| 178 | }; | 179 | }; |
| 179 | 180 | ||
| 180 | static const struct file_operations clock_fops = { | 181 | static const struct file_operations clock_fops = { |
| 181 | .read = clock_read_file, | 182 | .read = clock_read_file, |
| 182 | .write = write_file_dummy, | 183 | .write = write_file_dummy, |
| 183 | .open = open_file_generic, | 184 | .open = open_file_generic, |
| 185 | .llseek = default_llseek, | ||
| 184 | }; | 186 | }; |
| 185 | 187 | ||
| 186 | static const struct file_operations display_fops = { | 188 | static const struct file_operations display_fops = { |
| 187 | .read = display_read_file, | 189 | .read = display_read_file, |
| 188 | .write = write_file_dummy, | 190 | .write = write_file_dummy, |
| 189 | .open = open_file_generic, | 191 | .open = open_file_generic, |
| 192 | .llseek = default_llseek, | ||
| 190 | }; | 193 | }; |
| 191 | 194 | ||
| 192 | static const struct file_operations gsctl_fops = { | 195 | static const struct file_operations gsctl_fops = { |
| 193 | .read = gsctl_read_file, | 196 | .read = gsctl_read_file, |
| 194 | .write = write_file_dummy, | 197 | .write = write_file_dummy, |
| 195 | .open = open_file_generic, | 198 | .open = open_file_generic, |
| 199 | .llseek = default_llseek, | ||
| 196 | }; | 200 | }; |
| 197 | 201 | ||
| 198 | static const struct file_operations sdram_fops = { | 202 | static const struct file_operations sdram_fops = { |
| 199 | .read = sdram_read_file, | 203 | .read = sdram_read_file, |
| 200 | .write = write_file_dummy, | 204 | .write = write_file_dummy, |
| 201 | .open = open_file_generic, | 205 | .open = open_file_generic, |
| 206 | .llseek = default_llseek, | ||
| 202 | }; | 207 | }; |
| 203 | 208 | ||
| 204 | static const struct file_operations misc_fops = { | 209 | static const struct file_operations misc_fops = { |
| 205 | .read = misc_read_file, | 210 | .read = misc_read_file, |
| 206 | .write = write_file_dummy, | 211 | .write = write_file_dummy, |
| 207 | .open = open_file_generic, | 212 | .open = open_file_generic, |
| 213 | .llseek = default_llseek, | ||
| 208 | }; | 214 | }; |
| 209 | 215 | ||
| 210 | static void __devinit mbxfb_debugfs_init(struct fb_info *fbi) | 216 | static void __devinit mbxfb_debugfs_init(struct fb_info *fbi) |
diff --git a/drivers/watchdog/ar7_wdt.c b/drivers/watchdog/ar7_wdt.c index c764c52412e4..b29221783598 100644 --- a/drivers/watchdog/ar7_wdt.c +++ b/drivers/watchdog/ar7_wdt.c | |||
| @@ -267,6 +267,7 @@ static const struct file_operations ar7_wdt_fops = { | |||
| 267 | .unlocked_ioctl = ar7_wdt_ioctl, | 267 | .unlocked_ioctl = ar7_wdt_ioctl, |
| 268 | .open = ar7_wdt_open, | 268 | .open = ar7_wdt_open, |
| 269 | .release = ar7_wdt_release, | 269 | .release = ar7_wdt_release, |
| 270 | .llseek = no_llseek, | ||
| 270 | }; | 271 | }; |
| 271 | 272 | ||
| 272 | static struct miscdevice ar7_wdt_miscdev = { | 273 | static struct miscdevice ar7_wdt_miscdev = { |
diff --git a/drivers/watchdog/cpwd.c b/drivers/watchdog/cpwd.c index b7d96e6236a1..eca855a55c0d 100644 --- a/drivers/watchdog/cpwd.c +++ b/drivers/watchdog/cpwd.c | |||
| @@ -525,6 +525,7 @@ static const struct file_operations cpwd_fops = { | |||
| 525 | .write = cpwd_write, | 525 | .write = cpwd_write, |
| 526 | .read = cpwd_read, | 526 | .read = cpwd_read, |
| 527 | .release = cpwd_release, | 527 | .release = cpwd_release, |
| 528 | .llseek = no_llseek, | ||
| 528 | }; | 529 | }; |
| 529 | 530 | ||
| 530 | static int __devinit cpwd_probe(struct platform_device *op, | 531 | static int __devinit cpwd_probe(struct platform_device *op, |
diff --git a/drivers/watchdog/ep93xx_wdt.c b/drivers/watchdog/ep93xx_wdt.c index 59359c9a5e01..726b7df61fd0 100644 --- a/drivers/watchdog/ep93xx_wdt.c +++ b/drivers/watchdog/ep93xx_wdt.c | |||
| @@ -188,6 +188,7 @@ static const struct file_operations ep93xx_wdt_fops = { | |||
| 188 | .unlocked_ioctl = ep93xx_wdt_ioctl, | 188 | .unlocked_ioctl = ep93xx_wdt_ioctl, |
| 189 | .open = ep93xx_wdt_open, | 189 | .open = ep93xx_wdt_open, |
| 190 | .release = ep93xx_wdt_release, | 190 | .release = ep93xx_wdt_release, |
| 191 | .llseek = no_llseek, | ||
| 191 | }; | 192 | }; |
| 192 | 193 | ||
| 193 | static struct miscdevice ep93xx_wdt_miscdev = { | 194 | static struct miscdevice ep93xx_wdt_miscdev = { |
diff --git a/drivers/watchdog/omap_wdt.c b/drivers/watchdog/omap_wdt.c index 76b58abf4451..81e3d6100894 100644 --- a/drivers/watchdog/omap_wdt.c +++ b/drivers/watchdog/omap_wdt.c | |||
| @@ -258,6 +258,7 @@ static const struct file_operations omap_wdt_fops = { | |||
| 258 | .unlocked_ioctl = omap_wdt_ioctl, | 258 | .unlocked_ioctl = omap_wdt_ioctl, |
| 259 | .open = omap_wdt_open, | 259 | .open = omap_wdt_open, |
| 260 | .release = omap_wdt_release, | 260 | .release = omap_wdt_release, |
| 261 | .llseek = no_llseek, | ||
| 261 | }; | 262 | }; |
| 262 | 263 | ||
| 263 | static int __devinit omap_wdt_probe(struct platform_device *pdev) | 264 | static int __devinit omap_wdt_probe(struct platform_device *pdev) |
diff --git a/drivers/xen/evtchn.c b/drivers/xen/evtchn.c index 66e185cfe92f..fec6ba3c08a8 100644 --- a/drivers/xen/evtchn.c +++ b/drivers/xen/evtchn.c | |||
| @@ -467,6 +467,7 @@ static const struct file_operations evtchn_fops = { | |||
| 467 | .fasync = evtchn_fasync, | 467 | .fasync = evtchn_fasync, |
| 468 | .open = evtchn_open, | 468 | .open = evtchn_open, |
| 469 | .release = evtchn_release, | 469 | .release = evtchn_release, |
| 470 | .llseek = noop_llseek, | ||
| 470 | }; | 471 | }; |
| 471 | 472 | ||
| 472 | static struct miscdevice evtchn_miscdev = { | 473 | static struct miscdevice evtchn_miscdev = { |
diff --git a/drivers/xen/xenfs/super.c b/drivers/xen/xenfs/super.c index 78bfab0700ba..bd96340063c1 100644 --- a/drivers/xen/xenfs/super.c +++ b/drivers/xen/xenfs/super.c | |||
| @@ -35,6 +35,7 @@ static ssize_t capabilities_read(struct file *file, char __user *buf, | |||
| 35 | 35 | ||
| 36 | static const struct file_operations capabilities_file_ops = { | 36 | static const struct file_operations capabilities_file_ops = { |
| 37 | .read = capabilities_read, | 37 | .read = capabilities_read, |
| 38 | .llseek = default_llseek, | ||
| 38 | }; | 39 | }; |
| 39 | 40 | ||
| 40 | static int xenfs_fill_super(struct super_block *sb, void *data, int silent) | 41 | static int xenfs_fill_super(struct super_block *sb, void *data, int silent) |
diff --git a/drivers/xen/xenfs/xenbus.c b/drivers/xen/xenfs/xenbus.c index 3b39c3752e21..1c1236087f78 100644 --- a/drivers/xen/xenfs/xenbus.c +++ b/drivers/xen/xenfs/xenbus.c | |||
| @@ -594,4 +594,5 @@ const struct file_operations xenbus_file_ops = { | |||
| 594 | .open = xenbus_file_open, | 594 | .open = xenbus_file_open, |
| 595 | .release = xenbus_file_release, | 595 | .release = xenbus_file_release, |
| 596 | .poll = xenbus_file_poll, | 596 | .poll = xenbus_file_poll, |
| 597 | .llseek = no_llseek, | ||
| 597 | }; | 598 | }; |
diff --git a/fs/afs/mntpt.c b/fs/afs/mntpt.c index 6d552686c498..6153417caf57 100644 --- a/fs/afs/mntpt.c +++ b/fs/afs/mntpt.c | |||
| @@ -29,6 +29,7 @@ static void afs_mntpt_expiry_timed_out(struct work_struct *work); | |||
| 29 | 29 | ||
| 30 | const struct file_operations afs_mntpt_file_operations = { | 30 | const struct file_operations afs_mntpt_file_operations = { |
| 31 | .open = afs_mntpt_open, | 31 | .open = afs_mntpt_open, |
| 32 | .llseek = noop_llseek, | ||
| 32 | }; | 33 | }; |
| 33 | 34 | ||
| 34 | const struct inode_operations afs_mntpt_inode_operations = { | 35 | const struct inode_operations afs_mntpt_inode_operations = { |
diff --git a/fs/autofs4/dev-ioctl.c b/fs/autofs4/dev-ioctl.c index ba4a38b9c22f..eff9a419469a 100644 --- a/fs/autofs4/dev-ioctl.c +++ b/fs/autofs4/dev-ioctl.c | |||
| @@ -724,6 +724,7 @@ static const struct file_operations _dev_ioctl_fops = { | |||
| 724 | .unlocked_ioctl = autofs_dev_ioctl, | 724 | .unlocked_ioctl = autofs_dev_ioctl, |
| 725 | .compat_ioctl = autofs_dev_ioctl_compat, | 725 | .compat_ioctl = autofs_dev_ioctl_compat, |
| 726 | .owner = THIS_MODULE, | 726 | .owner = THIS_MODULE, |
| 727 | .llseek = noop_llseek, | ||
| 727 | }; | 728 | }; |
| 728 | 729 | ||
| 729 | static struct miscdevice _autofs_dev_ioctl_misc = { | 730 | static struct miscdevice _autofs_dev_ioctl_misc = { |
diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c index fd0cc0bf9a40..139fc8083f53 100644 --- a/fs/binfmt_misc.c +++ b/fs/binfmt_misc.c | |||
| @@ -576,6 +576,7 @@ static ssize_t bm_entry_write(struct file *file, const char __user *buffer, | |||
| 576 | static const struct file_operations bm_entry_operations = { | 576 | static const struct file_operations bm_entry_operations = { |
| 577 | .read = bm_entry_read, | 577 | .read = bm_entry_read, |
| 578 | .write = bm_entry_write, | 578 | .write = bm_entry_write, |
| 579 | .llseek = default_llseek, | ||
| 579 | }; | 580 | }; |
| 580 | 581 | ||
| 581 | /* /register */ | 582 | /* /register */ |
| @@ -643,6 +644,7 @@ out: | |||
| 643 | 644 | ||
| 644 | static const struct file_operations bm_register_operations = { | 645 | static const struct file_operations bm_register_operations = { |
| 645 | .write = bm_register_write, | 646 | .write = bm_register_write, |
| 647 | .llseek = noop_llseek, | ||
| 646 | }; | 648 | }; |
| 647 | 649 | ||
| 648 | /* /status */ | 650 | /* /status */ |
| @@ -680,6 +682,7 @@ static ssize_t bm_status_write(struct file * file, const char __user * buffer, | |||
| 680 | static const struct file_operations bm_status_operations = { | 682 | static const struct file_operations bm_status_operations = { |
| 681 | .read = bm_status_read, | 683 | .read = bm_status_read, |
| 682 | .write = bm_status_write, | 684 | .write = bm_status_write, |
| 685 | .llseek = default_llseek, | ||
| 683 | }; | 686 | }; |
| 684 | 687 | ||
| 685 | /* Superblock handling */ | 688 | /* Superblock handling */ |
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 1776dbd8dc98..144f8a5730f5 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c | |||
| @@ -815,6 +815,7 @@ static const struct file_operations btrfs_ctl_fops = { | |||
| 815 | .unlocked_ioctl = btrfs_control_ioctl, | 815 | .unlocked_ioctl = btrfs_control_ioctl, |
| 816 | .compat_ioctl = btrfs_control_ioctl, | 816 | .compat_ioctl = btrfs_control_ioctl, |
| 817 | .owner = THIS_MODULE, | 817 | .owner = THIS_MODULE, |
| 818 | .llseek = noop_llseek, | ||
| 818 | }; | 819 | }; |
| 819 | 820 | ||
| 820 | static struct miscdevice btrfs_misc = { | 821 | static struct miscdevice btrfs_misc = { |
diff --git a/fs/cachefiles/daemon.c b/fs/cachefiles/daemon.c index 727caedcdd92..0a1467b15516 100644 --- a/fs/cachefiles/daemon.c +++ b/fs/cachefiles/daemon.c | |||
| @@ -55,6 +55,7 @@ const struct file_operations cachefiles_daemon_fops = { | |||
| 55 | .read = cachefiles_daemon_read, | 55 | .read = cachefiles_daemon_read, |
| 56 | .write = cachefiles_daemon_write, | 56 | .write = cachefiles_daemon_write, |
| 57 | .poll = cachefiles_daemon_poll, | 57 | .poll = cachefiles_daemon_poll, |
| 58 | .llseek = noop_llseek, | ||
| 58 | }; | 59 | }; |
| 59 | 60 | ||
| 60 | struct cachefiles_daemon_cmd { | 61 | struct cachefiles_daemon_cmd { |
diff --git a/fs/char_dev.c b/fs/char_dev.c index 143d393881cb..e5b9df993b93 100644 --- a/fs/char_dev.c +++ b/fs/char_dev.c | |||
| @@ -456,6 +456,7 @@ static void cdev_purge(struct cdev *cdev) | |||
| 456 | */ | 456 | */ |
| 457 | const struct file_operations def_chr_fops = { | 457 | const struct file_operations def_chr_fops = { |
| 458 | .open = chrdev_open, | 458 | .open = chrdev_open, |
| 459 | .llseek = noop_llseek, | ||
| 459 | }; | 460 | }; |
| 460 | 461 | ||
| 461 | static struct kobject *exact_match(dev_t dev, int *part, void *data) | 462 | static struct kobject *exact_match(dev_t dev, int *part, void *data) |
diff --git a/fs/coda/pioctl.c b/fs/coda/pioctl.c index ca25d96d45c9..028a9a0f588b 100644 --- a/fs/coda/pioctl.c +++ b/fs/coda/pioctl.c | |||
| @@ -39,6 +39,7 @@ const struct inode_operations coda_ioctl_inode_operations = { | |||
| 39 | const struct file_operations coda_ioctl_operations = { | 39 | const struct file_operations coda_ioctl_operations = { |
| 40 | .owner = THIS_MODULE, | 40 | .owner = THIS_MODULE, |
| 41 | .unlocked_ioctl = coda_pioctl, | 41 | .unlocked_ioctl = coda_pioctl, |
| 42 | .llseek = noop_llseek, | ||
| 42 | }; | 43 | }; |
| 43 | 44 | ||
| 44 | /* the coda pioctl inode ops */ | 45 | /* the coda pioctl inode ops */ |
diff --git a/fs/coda/psdev.c b/fs/coda/psdev.c index 116af7546cf0..fdc2f3ef7ecd 100644 --- a/fs/coda/psdev.c +++ b/fs/coda/psdev.c | |||
| @@ -346,6 +346,7 @@ static const struct file_operations coda_psdev_fops = { | |||
| 346 | .unlocked_ioctl = coda_psdev_ioctl, | 346 | .unlocked_ioctl = coda_psdev_ioctl, |
| 347 | .open = coda_psdev_open, | 347 | .open = coda_psdev_open, |
| 348 | .release = coda_psdev_release, | 348 | .release = coda_psdev_release, |
| 349 | .llseek = noop_llseek, | ||
| 349 | }; | 350 | }; |
| 350 | 351 | ||
| 351 | static int init_coda_psdev(void) | 352 | static int init_coda_psdev(void) |
diff --git a/fs/debugfs/file.c b/fs/debugfs/file.c index 0210898458b2..89d394d8fe24 100644 --- a/fs/debugfs/file.c +++ b/fs/debugfs/file.c | |||
| @@ -43,6 +43,7 @@ const struct file_operations debugfs_file_operations = { | |||
| 43 | .read = default_read_file, | 43 | .read = default_read_file, |
| 44 | .write = default_write_file, | 44 | .write = default_write_file, |
| 45 | .open = default_open, | 45 | .open = default_open, |
| 46 | .llseek = noop_llseek, | ||
| 46 | }; | 47 | }; |
| 47 | 48 | ||
| 48 | static void *debugfs_follow_link(struct dentry *dentry, struct nameidata *nd) | 49 | static void *debugfs_follow_link(struct dentry *dentry, struct nameidata *nd) |
| @@ -454,6 +455,7 @@ static const struct file_operations fops_bool = { | |||
| 454 | .read = read_file_bool, | 455 | .read = read_file_bool, |
| 455 | .write = write_file_bool, | 456 | .write = write_file_bool, |
| 456 | .open = default_open, | 457 | .open = default_open, |
| 458 | .llseek = default_llseek, | ||
| 457 | }; | 459 | }; |
| 458 | 460 | ||
| 459 | /** | 461 | /** |
| @@ -498,6 +500,7 @@ static ssize_t read_file_blob(struct file *file, char __user *user_buf, | |||
| 498 | static const struct file_operations fops_blob = { | 500 | static const struct file_operations fops_blob = { |
| 499 | .read = read_file_blob, | 501 | .read = read_file_blob, |
| 500 | .open = default_open, | 502 | .open = default_open, |
| 503 | .llseek = default_llseek, | ||
| 501 | }; | 504 | }; |
| 502 | 505 | ||
| 503 | /** | 506 | /** |
diff --git a/fs/dlm/debug_fs.c b/fs/dlm/debug_fs.c index c6cf25158746..6b42ba807dfd 100644 --- a/fs/dlm/debug_fs.c +++ b/fs/dlm/debug_fs.c | |||
| @@ -643,7 +643,8 @@ static ssize_t waiters_read(struct file *file, char __user *userbuf, | |||
| 643 | static const struct file_operations waiters_fops = { | 643 | static const struct file_operations waiters_fops = { |
| 644 | .owner = THIS_MODULE, | 644 | .owner = THIS_MODULE, |
| 645 | .open = waiters_open, | 645 | .open = waiters_open, |
| 646 | .read = waiters_read | 646 | .read = waiters_read, |
| 647 | .llseek = default_llseek, | ||
| 647 | }; | 648 | }; |
| 648 | 649 | ||
| 649 | void dlm_delete_debug_file(struct dlm_ls *ls) | 650 | void dlm_delete_debug_file(struct dlm_ls *ls) |
diff --git a/fs/dlm/plock.c b/fs/dlm/plock.c index d45c02db6943..30d8b85febbf 100644 --- a/fs/dlm/plock.c +++ b/fs/dlm/plock.c | |||
| @@ -412,7 +412,8 @@ static const struct file_operations dev_fops = { | |||
| 412 | .read = dev_read, | 412 | .read = dev_read, |
| 413 | .write = dev_write, | 413 | .write = dev_write, |
| 414 | .poll = dev_poll, | 414 | .poll = dev_poll, |
| 415 | .owner = THIS_MODULE | 415 | .owner = THIS_MODULE, |
| 416 | .llseek = noop_llseek, | ||
| 416 | }; | 417 | }; |
| 417 | 418 | ||
| 418 | static struct miscdevice plock_dev_misc = { | 419 | static struct miscdevice plock_dev_misc = { |
diff --git a/fs/dlm/user.c b/fs/dlm/user.c index b6272853130c..66d6c16bf440 100644 --- a/fs/dlm/user.c +++ b/fs/dlm/user.c | |||
| @@ -1009,6 +1009,7 @@ static const struct file_operations device_fops = { | |||
| 1009 | .write = device_write, | 1009 | .write = device_write, |
| 1010 | .poll = device_poll, | 1010 | .poll = device_poll, |
| 1011 | .owner = THIS_MODULE, | 1011 | .owner = THIS_MODULE, |
| 1012 | .llseek = noop_llseek, | ||
| 1012 | }; | 1013 | }; |
| 1013 | 1014 | ||
| 1014 | static const struct file_operations ctl_device_fops = { | 1015 | static const struct file_operations ctl_device_fops = { |
| @@ -1017,6 +1018,7 @@ static const struct file_operations ctl_device_fops = { | |||
| 1017 | .read = device_read, | 1018 | .read = device_read, |
| 1018 | .write = device_write, | 1019 | .write = device_write, |
| 1019 | .owner = THIS_MODULE, | 1020 | .owner = THIS_MODULE, |
| 1021 | .llseek = noop_llseek, | ||
| 1020 | }; | 1022 | }; |
| 1021 | 1023 | ||
| 1022 | static struct miscdevice ctl_device = { | 1024 | static struct miscdevice ctl_device = { |
| @@ -1029,6 +1031,7 @@ static const struct file_operations monitor_device_fops = { | |||
| 1029 | .open = monitor_device_open, | 1031 | .open = monitor_device_open, |
| 1030 | .release = monitor_device_close, | 1032 | .release = monitor_device_close, |
| 1031 | .owner = THIS_MODULE, | 1033 | .owner = THIS_MODULE, |
| 1034 | .llseek = noop_llseek, | ||
| 1032 | }; | 1035 | }; |
| 1033 | 1036 | ||
| 1034 | static struct miscdevice monitor_device = { | 1037 | static struct miscdevice monitor_device = { |
diff --git a/fs/ecryptfs/file.c b/fs/ecryptfs/file.c index 2b9a644b7583..91da02987bff 100644 --- a/fs/ecryptfs/file.c +++ b/fs/ecryptfs/file.c | |||
| @@ -329,6 +329,7 @@ const struct file_operations ecryptfs_dir_fops = { | |||
| 329 | .fsync = ecryptfs_fsync, | 329 | .fsync = ecryptfs_fsync, |
| 330 | .fasync = ecryptfs_fasync, | 330 | .fasync = ecryptfs_fasync, |
| 331 | .splice_read = generic_file_splice_read, | 331 | .splice_read = generic_file_splice_read, |
| 332 | .llseek = default_llseek, | ||
| 332 | }; | 333 | }; |
| 333 | 334 | ||
| 334 | const struct file_operations ecryptfs_main_fops = { | 335 | const struct file_operations ecryptfs_main_fops = { |
diff --git a/fs/ecryptfs/miscdev.c b/fs/ecryptfs/miscdev.c index 00208c3d7e92..940a82e63dc3 100644 --- a/fs/ecryptfs/miscdev.c +++ b/fs/ecryptfs/miscdev.c | |||
| @@ -482,6 +482,7 @@ static const struct file_operations ecryptfs_miscdev_fops = { | |||
| 482 | .read = ecryptfs_miscdev_read, | 482 | .read = ecryptfs_miscdev_read, |
| 483 | .write = ecryptfs_miscdev_write, | 483 | .write = ecryptfs_miscdev_write, |
| 484 | .release = ecryptfs_miscdev_release, | 484 | .release = ecryptfs_miscdev_release, |
| 485 | .llseek = noop_llseek, | ||
| 485 | }; | 486 | }; |
| 486 | 487 | ||
| 487 | static struct miscdevice ecryptfs_miscdev = { | 488 | static struct miscdevice ecryptfs_miscdev = { |
diff --git a/fs/eventfd.c b/fs/eventfd.c index 6bd3f76fdf88..e0194b3e14d6 100644 --- a/fs/eventfd.c +++ b/fs/eventfd.c | |||
| @@ -293,6 +293,7 @@ static const struct file_operations eventfd_fops = { | |||
| 293 | .poll = eventfd_poll, | 293 | .poll = eventfd_poll, |
| 294 | .read = eventfd_read, | 294 | .read = eventfd_read, |
| 295 | .write = eventfd_write, | 295 | .write = eventfd_write, |
| 296 | .llseek = noop_llseek, | ||
| 296 | }; | 297 | }; |
| 297 | 298 | ||
| 298 | /** | 299 | /** |
diff --git a/fs/eventpoll.c b/fs/eventpoll.c index 3817149919cb..256bb7bb102a 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c | |||
| @@ -674,7 +674,8 @@ static unsigned int ep_eventpoll_poll(struct file *file, poll_table *wait) | |||
| 674 | /* File callbacks that implement the eventpoll file behaviour */ | 674 | /* File callbacks that implement the eventpoll file behaviour */ |
| 675 | static const struct file_operations eventpoll_fops = { | 675 | static const struct file_operations eventpoll_fops = { |
| 676 | .release = ep_eventpoll_release, | 676 | .release = ep_eventpoll_release, |
| 677 | .poll = ep_eventpoll_poll | 677 | .poll = ep_eventpoll_poll, |
| 678 | .llseek = noop_llseek, | ||
| 678 | }; | 679 | }; |
| 679 | 680 | ||
| 680 | /* Fast test to see if the file is an evenpoll file */ | 681 | /* Fast test to see if the file is an evenpoll file */ |
| @@ -151,4 +151,5 @@ err_nocleanup: | |||
| 151 | */ | 151 | */ |
| 152 | const struct file_operations def_fifo_fops = { | 152 | const struct file_operations def_fifo_fops = { |
| 153 | .open = fifo_open, /* will set read_ or write_pipefifo_fops */ | 153 | .open = fifo_open, /* will set read_ or write_pipefifo_fops */ |
| 154 | .llseek = noop_llseek, | ||
| 154 | }; | 155 | }; |
diff --git a/fs/fuse/control.c b/fs/fuse/control.c index 3773fd63d2f9..7367e177186f 100644 --- a/fs/fuse/control.c +++ b/fs/fuse/control.c | |||
| @@ -179,23 +179,27 @@ static ssize_t fuse_conn_congestion_threshold_write(struct file *file, | |||
| 179 | static const struct file_operations fuse_ctl_abort_ops = { | 179 | static const struct file_operations fuse_ctl_abort_ops = { |
| 180 | .open = nonseekable_open, | 180 | .open = nonseekable_open, |
| 181 | .write = fuse_conn_abort_write, | 181 | .write = fuse_conn_abort_write, |
| 182 | .llseek = no_llseek, | ||
| 182 | }; | 183 | }; |
| 183 | 184 | ||
| 184 | static const struct file_operations fuse_ctl_waiting_ops = { | 185 | static const struct file_operations fuse_ctl_waiting_ops = { |
| 185 | .open = nonseekable_open, | 186 | .open = nonseekable_open, |
| 186 | .read = fuse_conn_waiting_read, | 187 | .read = fuse_conn_waiting_read, |
| 188 | .llseek = no_llseek, | ||
| 187 | }; | 189 | }; |
| 188 | 190 | ||
| 189 | static const struct file_operations fuse_conn_max_background_ops = { | 191 | static const struct file_operations fuse_conn_max_background_ops = { |
| 190 | .open = nonseekable_open, | 192 | .open = nonseekable_open, |
| 191 | .read = fuse_conn_max_background_read, | 193 | .read = fuse_conn_max_background_read, |
| 192 | .write = fuse_conn_max_background_write, | 194 | .write = fuse_conn_max_background_write, |
| 195 | .llseek = no_llseek, | ||
| 193 | }; | 196 | }; |
| 194 | 197 | ||
| 195 | static const struct file_operations fuse_conn_congestion_threshold_ops = { | 198 | static const struct file_operations fuse_conn_congestion_threshold_ops = { |
| 196 | .open = nonseekable_open, | 199 | .open = nonseekable_open, |
| 197 | .read = fuse_conn_congestion_threshold_read, | 200 | .read = fuse_conn_congestion_threshold_read, |
| 198 | .write = fuse_conn_congestion_threshold_write, | 201 | .write = fuse_conn_congestion_threshold_write, |
| 202 | .llseek = no_llseek, | ||
| 199 | }; | 203 | }; |
| 200 | 204 | ||
| 201 | static struct dentry *fuse_ctl_add_dentry(struct dentry *parent, | 205 | static struct dentry *fuse_ctl_add_dentry(struct dentry *parent, |
diff --git a/fs/fuse/cuse.c b/fs/fuse/cuse.c index e1f8171278bd..3e87cce5837d 100644 --- a/fs/fuse/cuse.c +++ b/fs/fuse/cuse.c | |||
| @@ -182,6 +182,7 @@ static const struct file_operations cuse_frontend_fops = { | |||
| 182 | .unlocked_ioctl = cuse_file_ioctl, | 182 | .unlocked_ioctl = cuse_file_ioctl, |
| 183 | .compat_ioctl = cuse_file_compat_ioctl, | 183 | .compat_ioctl = cuse_file_compat_ioctl, |
| 184 | .poll = fuse_file_poll, | 184 | .poll = fuse_file_poll, |
| 185 | .llseek = noop_llseek, | ||
| 185 | }; | 186 | }; |
| 186 | 187 | ||
| 187 | 188 | ||
diff --git a/fs/gfs2/file.c b/fs/gfs2/file.c index a51079bd4af1..aa996471ec5c 100644 --- a/fs/gfs2/file.c +++ b/fs/gfs2/file.c | |||
| @@ -775,6 +775,7 @@ const struct file_operations gfs2_dir_fops = { | |||
| 775 | .fsync = gfs2_fsync, | 775 | .fsync = gfs2_fsync, |
| 776 | .lock = gfs2_lock, | 776 | .lock = gfs2_lock, |
| 777 | .flock = gfs2_flock, | 777 | .flock = gfs2_flock, |
| 778 | .llseek = default_llseek, | ||
| 778 | }; | 779 | }; |
| 779 | 780 | ||
| 780 | #endif /* CONFIG_GFS2_FS_LOCKING_DLM */ | 781 | #endif /* CONFIG_GFS2_FS_LOCKING_DLM */ |
| @@ -801,5 +802,6 @@ const struct file_operations gfs2_dir_fops_nolock = { | |||
| 801 | .open = gfs2_open, | 802 | .open = gfs2_open, |
| 802 | .release = gfs2_close, | 803 | .release = gfs2_close, |
| 803 | .fsync = gfs2_fsync, | 804 | .fsync = gfs2_fsync, |
| 805 | .llseek = default_llseek, | ||
| 804 | }; | 806 | }; |
| 805 | 807 | ||
diff --git a/fs/hppfs/hppfs.c b/fs/hppfs/hppfs.c index 7b027720d820..4e2a45ea6140 100644 --- a/fs/hppfs/hppfs.c +++ b/fs/hppfs/hppfs.c | |||
| @@ -598,6 +598,7 @@ static const struct file_operations hppfs_dir_fops = { | |||
| 598 | .readdir = hppfs_readdir, | 598 | .readdir = hppfs_readdir, |
| 599 | .open = hppfs_dir_open, | 599 | .open = hppfs_dir_open, |
| 600 | .fsync = hppfs_fsync, | 600 | .fsync = hppfs_fsync, |
| 601 | .llseek = default_llseek, | ||
| 601 | }; | 602 | }; |
| 602 | 603 | ||
| 603 | static int hppfs_statfs(struct dentry *dentry, struct kstatfs *sf) | 604 | static int hppfs_statfs(struct dentry *dentry, struct kstatfs *sf) |
diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c index 6e5bd42f3860..113eba3d3c38 100644 --- a/fs/hugetlbfs/inode.c +++ b/fs/hugetlbfs/inode.c | |||
| @@ -674,6 +674,7 @@ const struct file_operations hugetlbfs_file_operations = { | |||
| 674 | .mmap = hugetlbfs_file_mmap, | 674 | .mmap = hugetlbfs_file_mmap, |
| 675 | .fsync = noop_fsync, | 675 | .fsync = noop_fsync, |
| 676 | .get_unmapped_area = hugetlb_get_unmapped_area, | 676 | .get_unmapped_area = hugetlb_get_unmapped_area, |
| 677 | .llseek = default_llseek, | ||
| 677 | }; | 678 | }; |
| 678 | 679 | ||
| 679 | static const struct inode_operations hugetlbfs_dir_inode_operations = { | 680 | static const struct inode_operations hugetlbfs_dir_inode_operations = { |
diff --git a/fs/logfs/dir.c b/fs/logfs/dir.c index 9777eb5b5522..1eb4e89e045b 100644 --- a/fs/logfs/dir.c +++ b/fs/logfs/dir.c | |||
| @@ -827,4 +827,5 @@ const struct file_operations logfs_dir_fops = { | |||
| 827 | .unlocked_ioctl = logfs_ioctl, | 827 | .unlocked_ioctl = logfs_ioctl, |
| 828 | .readdir = logfs_readdir, | 828 | .readdir = logfs_readdir, |
| 829 | .read = generic_read_dir, | 829 | .read = generic_read_dir, |
| 830 | .llseek = default_llseek, | ||
| 830 | }; | 831 | }; |
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index b53b1d042f1f..06fa87e52e82 100644 --- a/fs/nfsd/nfsctl.c +++ b/fs/nfsd/nfsctl.c | |||
| @@ -137,6 +137,7 @@ static const struct file_operations transaction_ops = { | |||
| 137 | .write = nfsctl_transaction_write, | 137 | .write = nfsctl_transaction_write, |
| 138 | .read = nfsctl_transaction_read, | 138 | .read = nfsctl_transaction_read, |
| 139 | .release = simple_transaction_release, | 139 | .release = simple_transaction_release, |
| 140 | .llseek = default_llseek, | ||
| 140 | }; | 141 | }; |
| 141 | 142 | ||
| 142 | static int exports_open(struct inode *inode, struct file *file) | 143 | static int exports_open(struct inode *inode, struct file *file) |
diff --git a/fs/no-block.c b/fs/no-block.c index d269a93d3467..6e40e42a43de 100644 --- a/fs/no-block.c +++ b/fs/no-block.c | |||
| @@ -19,4 +19,5 @@ static int no_blkdev_open(struct inode * inode, struct file * filp) | |||
| 19 | 19 | ||
| 20 | const struct file_operations def_blk_fops = { | 20 | const struct file_operations def_blk_fops = { |
| 21 | .open = no_blkdev_open, | 21 | .open = no_blkdev_open, |
| 22 | .llseek = noop_llseek, | ||
| 22 | }; | 23 | }; |
diff --git a/fs/notify/fanotify/fanotify_user.c b/fs/notify/fanotify/fanotify_user.c index 5ed8e58d7bfc..bbcb98e7fcc6 100644 --- a/fs/notify/fanotify/fanotify_user.c +++ b/fs/notify/fanotify/fanotify_user.c | |||
| @@ -433,6 +433,7 @@ static const struct file_operations fanotify_fops = { | |||
| 433 | .release = fanotify_release, | 433 | .release = fanotify_release, |
| 434 | .unlocked_ioctl = fanotify_ioctl, | 434 | .unlocked_ioctl = fanotify_ioctl, |
| 435 | .compat_ioctl = fanotify_ioctl, | 435 | .compat_ioctl = fanotify_ioctl, |
| 436 | .llseek = noop_llseek, | ||
| 436 | }; | 437 | }; |
| 437 | 438 | ||
| 438 | static void fanotify_free_mark(struct fsnotify_mark *fsn_mark) | 439 | static void fanotify_free_mark(struct fsnotify_mark *fsn_mark) |
diff --git a/fs/notify/inotify/inotify_user.c b/fs/notify/inotify/inotify_user.c index bf7f6d776c31..24edc1185d53 100644 --- a/fs/notify/inotify/inotify_user.c +++ b/fs/notify/inotify/inotify_user.c | |||
| @@ -344,6 +344,7 @@ static const struct file_operations inotify_fops = { | |||
| 344 | .release = inotify_release, | 344 | .release = inotify_release, |
| 345 | .unlocked_ioctl = inotify_ioctl, | 345 | .unlocked_ioctl = inotify_ioctl, |
| 346 | .compat_ioctl = inotify_ioctl, | 346 | .compat_ioctl = inotify_ioctl, |
| 347 | .llseek = noop_llseek, | ||
| 347 | }; | 348 | }; |
| 348 | 349 | ||
| 349 | 350 | ||
diff --git a/fs/ocfs2/dlmfs/dlmfs.c b/fs/ocfs2/dlmfs/dlmfs.c index c2903b84bb7a..a7ebd9d42dc8 100644 --- a/fs/ocfs2/dlmfs/dlmfs.c +++ b/fs/ocfs2/dlmfs/dlmfs.c | |||
| @@ -612,6 +612,7 @@ static const struct file_operations dlmfs_file_operations = { | |||
| 612 | .poll = dlmfs_file_poll, | 612 | .poll = dlmfs_file_poll, |
| 613 | .read = dlmfs_file_read, | 613 | .read = dlmfs_file_read, |
| 614 | .write = dlmfs_file_write, | 614 | .write = dlmfs_file_write, |
| 615 | .llseek = default_llseek, | ||
| 615 | }; | 616 | }; |
| 616 | 617 | ||
| 617 | static const struct inode_operations dlmfs_dir_inode_operations = { | 618 | static const struct inode_operations dlmfs_dir_inode_operations = { |
diff --git a/fs/ocfs2/stack_user.c b/fs/ocfs2/stack_user.c index 0e68f542ef2e..252e7c82f929 100644 --- a/fs/ocfs2/stack_user.c +++ b/fs/ocfs2/stack_user.c | |||
| @@ -625,6 +625,7 @@ static const struct file_operations ocfs2_control_fops = { | |||
| 625 | .read = ocfs2_control_read, | 625 | .read = ocfs2_control_read, |
| 626 | .write = ocfs2_control_write, | 626 | .write = ocfs2_control_write, |
| 627 | .owner = THIS_MODULE, | 627 | .owner = THIS_MODULE, |
| 628 | .llseek = default_llseek, | ||
| 628 | }; | 629 | }; |
| 629 | 630 | ||
| 630 | static struct miscdevice ocfs2_control_device = { | 631 | static struct miscdevice ocfs2_control_device = { |
diff --git a/fs/proc/base.c b/fs/proc/base.c index 8e4addaa5424..dc5d5f51f3fe 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c | |||
| @@ -1151,6 +1151,7 @@ static ssize_t oom_score_adj_write(struct file *file, const char __user *buf, | |||
| 1151 | static const struct file_operations proc_oom_score_adj_operations = { | 1151 | static const struct file_operations proc_oom_score_adj_operations = { |
| 1152 | .read = oom_score_adj_read, | 1152 | .read = oom_score_adj_read, |
| 1153 | .write = oom_score_adj_write, | 1153 | .write = oom_score_adj_write, |
| 1154 | .llseek = default_llseek, | ||
| 1154 | }; | 1155 | }; |
| 1155 | 1156 | ||
| 1156 | #ifdef CONFIG_AUDITSYSCALL | 1157 | #ifdef CONFIG_AUDITSYSCALL |
| @@ -2039,11 +2040,13 @@ static ssize_t proc_fdinfo_read(struct file *file, char __user *buf, | |||
| 2039 | static const struct file_operations proc_fdinfo_file_operations = { | 2040 | static const struct file_operations proc_fdinfo_file_operations = { |
| 2040 | .open = nonseekable_open, | 2041 | .open = nonseekable_open, |
| 2041 | .read = proc_fdinfo_read, | 2042 | .read = proc_fdinfo_read, |
| 2043 | .llseek = no_llseek, | ||
| 2042 | }; | 2044 | }; |
| 2043 | 2045 | ||
| 2044 | static const struct file_operations proc_fd_operations = { | 2046 | static const struct file_operations proc_fd_operations = { |
| 2045 | .read = generic_read_dir, | 2047 | .read = generic_read_dir, |
| 2046 | .readdir = proc_readfd, | 2048 | .readdir = proc_readfd, |
| 2049 | .llseek = default_llseek, | ||
| 2047 | }; | 2050 | }; |
| 2048 | 2051 | ||
| 2049 | /* | 2052 | /* |
| @@ -2112,6 +2115,7 @@ static int proc_readfdinfo(struct file *filp, void *dirent, filldir_t filldir) | |||
| 2112 | static const struct file_operations proc_fdinfo_operations = { | 2115 | static const struct file_operations proc_fdinfo_operations = { |
| 2113 | .read = generic_read_dir, | 2116 | .read = generic_read_dir, |
| 2114 | .readdir = proc_readfdinfo, | 2117 | .readdir = proc_readfdinfo, |
| 2118 | .llseek = default_llseek, | ||
| 2115 | }; | 2119 | }; |
| 2116 | 2120 | ||
| 2117 | /* | 2121 | /* |
| @@ -2343,6 +2347,7 @@ static int proc_attr_dir_readdir(struct file * filp, | |||
| 2343 | static const struct file_operations proc_attr_dir_operations = { | 2347 | static const struct file_operations proc_attr_dir_operations = { |
| 2344 | .read = generic_read_dir, | 2348 | .read = generic_read_dir, |
| 2345 | .readdir = proc_attr_dir_readdir, | 2349 | .readdir = proc_attr_dir_readdir, |
| 2350 | .llseek = default_llseek, | ||
| 2346 | }; | 2351 | }; |
| 2347 | 2352 | ||
| 2348 | static struct dentry *proc_attr_dir_lookup(struct inode *dir, | 2353 | static struct dentry *proc_attr_dir_lookup(struct inode *dir, |
| @@ -2751,6 +2756,7 @@ static int proc_tgid_base_readdir(struct file * filp, | |||
| 2751 | static const struct file_operations proc_tgid_base_operations = { | 2756 | static const struct file_operations proc_tgid_base_operations = { |
| 2752 | .read = generic_read_dir, | 2757 | .read = generic_read_dir, |
| 2753 | .readdir = proc_tgid_base_readdir, | 2758 | .readdir = proc_tgid_base_readdir, |
| 2759 | .llseek = default_llseek, | ||
| 2754 | }; | 2760 | }; |
| 2755 | 2761 | ||
| 2756 | static struct dentry *proc_tgid_base_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd){ | 2762 | static struct dentry *proc_tgid_base_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd){ |
| @@ -3088,6 +3094,7 @@ static struct dentry *proc_tid_base_lookup(struct inode *dir, struct dentry *den | |||
| 3088 | static const struct file_operations proc_tid_base_operations = { | 3094 | static const struct file_operations proc_tid_base_operations = { |
| 3089 | .read = generic_read_dir, | 3095 | .read = generic_read_dir, |
| 3090 | .readdir = proc_tid_base_readdir, | 3096 | .readdir = proc_tid_base_readdir, |
| 3097 | .llseek = default_llseek, | ||
| 3091 | }; | 3098 | }; |
| 3092 | 3099 | ||
| 3093 | static const struct inode_operations proc_tid_base_inode_operations = { | 3100 | static const struct inode_operations proc_tid_base_inode_operations = { |
| @@ -3324,4 +3331,5 @@ static const struct inode_operations proc_task_inode_operations = { | |||
| 3324 | static const struct file_operations proc_task_operations = { | 3331 | static const struct file_operations proc_task_operations = { |
| 3325 | .read = generic_read_dir, | 3332 | .read = generic_read_dir, |
| 3326 | .readdir = proc_task_readdir, | 3333 | .readdir = proc_task_readdir, |
| 3334 | .llseek = default_llseek, | ||
| 3327 | }; | 3335 | }; |
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c index 5be436ea088e..2fc52552271d 100644 --- a/fs/proc/proc_sysctl.c +++ b/fs/proc/proc_sysctl.c | |||
| @@ -364,6 +364,7 @@ static int proc_sys_getattr(struct vfsmount *mnt, struct dentry *dentry, struct | |||
| 364 | static const struct file_operations proc_sys_file_operations = { | 364 | static const struct file_operations proc_sys_file_operations = { |
| 365 | .read = proc_sys_read, | 365 | .read = proc_sys_read, |
| 366 | .write = proc_sys_write, | 366 | .write = proc_sys_write, |
| 367 | .llseek = default_llseek, | ||
| 367 | }; | 368 | }; |
| 368 | 369 | ||
| 369 | static const struct file_operations proc_sys_dir_file_operations = { | 370 | static const struct file_operations proc_sys_dir_file_operations = { |
diff --git a/fs/proc/root.c b/fs/proc/root.c index 4258384ed22d..93d99b316325 100644 --- a/fs/proc/root.c +++ b/fs/proc/root.c | |||
| @@ -179,6 +179,7 @@ static int proc_root_readdir(struct file * filp, | |||
| 179 | static const struct file_operations proc_root_operations = { | 179 | static const struct file_operations proc_root_operations = { |
| 180 | .read = generic_read_dir, | 180 | .read = generic_read_dir, |
| 181 | .readdir = proc_root_readdir, | 181 | .readdir = proc_root_readdir, |
| 182 | .llseek = default_llseek, | ||
| 182 | }; | 183 | }; |
| 183 | 184 | ||
| 184 | /* | 185 | /* |
diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c index 1dbca4e8cc16..871e25ed0069 100644 --- a/fs/proc/task_mmu.c +++ b/fs/proc/task_mmu.c | |||
| @@ -539,6 +539,7 @@ static ssize_t clear_refs_write(struct file *file, const char __user *buf, | |||
| 539 | 539 | ||
| 540 | const struct file_operations proc_clear_refs_operations = { | 540 | const struct file_operations proc_clear_refs_operations = { |
| 541 | .write = clear_refs_write, | 541 | .write = clear_refs_write, |
| 542 | .llseek = noop_llseek, | ||
| 542 | }; | 543 | }; |
| 543 | 544 | ||
| 544 | struct pagemapread { | 545 | struct pagemapread { |
diff --git a/fs/read_write.c b/fs/read_write.c index 74e36586e4d3..e757ef26e4ce 100644 --- a/fs/read_write.c +++ b/fs/read_write.c | |||
| @@ -124,7 +124,7 @@ loff_t default_llseek(struct file *file, loff_t offset, int origin) | |||
| 124 | { | 124 | { |
| 125 | loff_t retval; | 125 | loff_t retval; |
| 126 | 126 | ||
| 127 | lock_kernel(); | 127 | mutex_lock(&file->f_dentry->d_inode->i_mutex); |
| 128 | switch (origin) { | 128 | switch (origin) { |
| 129 | case SEEK_END: | 129 | case SEEK_END: |
| 130 | offset += i_size_read(file->f_path.dentry->d_inode); | 130 | offset += i_size_read(file->f_path.dentry->d_inode); |
| @@ -145,7 +145,7 @@ loff_t default_llseek(struct file *file, loff_t offset, int origin) | |||
| 145 | retval = offset; | 145 | retval = offset; |
| 146 | } | 146 | } |
| 147 | out: | 147 | out: |
| 148 | unlock_kernel(); | 148 | mutex_unlock(&file->f_dentry->d_inode->i_mutex); |
| 149 | return retval; | 149 | return retval; |
| 150 | } | 150 | } |
| 151 | EXPORT_SYMBOL(default_llseek); | 151 | EXPORT_SYMBOL(default_llseek); |
| @@ -156,7 +156,6 @@ loff_t vfs_llseek(struct file *file, loff_t offset, int origin) | |||
| 156 | 156 | ||
| 157 | fn = no_llseek; | 157 | fn = no_llseek; |
| 158 | if (file->f_mode & FMODE_LSEEK) { | 158 | if (file->f_mode & FMODE_LSEEK) { |
| 159 | fn = default_llseek; | ||
| 160 | if (file->f_op && file->f_op->llseek) | 159 | if (file->f_op && file->f_op->llseek) |
| 161 | fn = file->f_op->llseek; | 160 | fn = file->f_op->llseek; |
| 162 | } | 161 | } |
diff --git a/fs/romfs/super.c b/fs/romfs/super.c index 42d213546894..268580535c92 100644 --- a/fs/romfs/super.c +++ b/fs/romfs/super.c | |||
| @@ -282,6 +282,7 @@ error: | |||
| 282 | static const struct file_operations romfs_dir_operations = { | 282 | static const struct file_operations romfs_dir_operations = { |
| 283 | .read = generic_read_dir, | 283 | .read = generic_read_dir, |
| 284 | .readdir = romfs_readdir, | 284 | .readdir = romfs_readdir, |
| 285 | .llseek = default_llseek, | ||
| 285 | }; | 286 | }; |
| 286 | 287 | ||
| 287 | static const struct inode_operations romfs_dir_inode_operations = { | 288 | static const struct inode_operations romfs_dir_inode_operations = { |
diff --git a/fs/signalfd.c b/fs/signalfd.c index 1c5a6add779d..74047304b01a 100644 --- a/fs/signalfd.c +++ b/fs/signalfd.c | |||
| @@ -206,6 +206,7 @@ static const struct file_operations signalfd_fops = { | |||
| 206 | .release = signalfd_release, | 206 | .release = signalfd_release, |
| 207 | .poll = signalfd_poll, | 207 | .poll = signalfd_poll, |
| 208 | .read = signalfd_read, | 208 | .read = signalfd_read, |
| 209 | .llseek = noop_llseek, | ||
| 209 | }; | 210 | }; |
| 210 | 211 | ||
| 211 | SYSCALL_DEFINE4(signalfd4, int, ufd, sigset_t __user *, user_mask, | 212 | SYSCALL_DEFINE4(signalfd4, int, ufd, sigset_t __user *, user_mask, |
diff --git a/fs/squashfs/dir.c b/fs/squashfs/dir.c index 12b933ac6585..0dc340aa2be9 100644 --- a/fs/squashfs/dir.c +++ b/fs/squashfs/dir.c | |||
| @@ -230,5 +230,6 @@ failed_read: | |||
| 230 | 230 | ||
| 231 | const struct file_operations squashfs_dir_ops = { | 231 | const struct file_operations squashfs_dir_ops = { |
| 232 | .read = generic_read_dir, | 232 | .read = generic_read_dir, |
| 233 | .readdir = squashfs_readdir | 233 | .readdir = squashfs_readdir, |
| 234 | .llseek = default_llseek, | ||
| 234 | }; | 235 | }; |
diff --git a/fs/timerfd.c b/fs/timerfd.c index b86ab8eff79a..8c4fc1425b3e 100644 --- a/fs/timerfd.c +++ b/fs/timerfd.c | |||
| @@ -144,6 +144,7 @@ static const struct file_operations timerfd_fops = { | |||
| 144 | .release = timerfd_release, | 144 | .release = timerfd_release, |
| 145 | .poll = timerfd_poll, | 145 | .poll = timerfd_poll, |
| 146 | .read = timerfd_read, | 146 | .read = timerfd_read, |
| 147 | .llseek = noop_llseek, | ||
| 147 | }; | 148 | }; |
| 148 | 149 | ||
| 149 | static struct file *timerfd_fget(int fd) | 150 | static struct file *timerfd_fget(int fd) |
diff --git a/fs/ubifs/debug.c b/fs/ubifs/debug.c index c2a68baa782f..c6c553fd0b3d 100644 --- a/fs/ubifs/debug.c +++ b/fs/ubifs/debug.c | |||
| @@ -2625,6 +2625,7 @@ static const struct file_operations dfs_fops = { | |||
| 2625 | .open = open_debugfs_file, | 2625 | .open = open_debugfs_file, |
| 2626 | .write = write_debugfs_file, | 2626 | .write = write_debugfs_file, |
| 2627 | .owner = THIS_MODULE, | 2627 | .owner = THIS_MODULE, |
| 2628 | .llseek = default_llseek, | ||
| 2628 | }; | 2629 | }; |
| 2629 | 2630 | ||
| 2630 | /** | 2631 | /** |
diff --git a/include/linux/fs.h b/include/linux/fs.h index 75e27a25c6e3..0a81b87ea158 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
| @@ -2462,6 +2462,7 @@ static const struct file_operations __fops = { \ | |||
| 2462 | .release = simple_attr_release, \ | 2462 | .release = simple_attr_release, \ |
| 2463 | .read = simple_attr_read, \ | 2463 | .read = simple_attr_read, \ |
| 2464 | .write = simple_attr_write, \ | 2464 | .write = simple_attr_write, \ |
| 2465 | .llseek = generic_file_llseek, \ | ||
| 2465 | }; | 2466 | }; |
| 2466 | 2467 | ||
| 2467 | static inline void __attribute__((format(printf, 1, 2))) | 2468 | static inline void __attribute__((format(printf, 1, 2))) |
diff --git a/ipc/mqueue.c b/ipc/mqueue.c index c60e519e2917..e1e7b9635f5d 100644 --- a/ipc/mqueue.c +++ b/ipc/mqueue.c | |||
| @@ -1219,6 +1219,7 @@ static const struct file_operations mqueue_file_operations = { | |||
| 1219 | .flush = mqueue_flush_file, | 1219 | .flush = mqueue_flush_file, |
| 1220 | .poll = mqueue_poll_file, | 1220 | .poll = mqueue_poll_file, |
| 1221 | .read = mqueue_read_file, | 1221 | .read = mqueue_read_file, |
| 1222 | .llseek = default_llseek, | ||
| 1222 | }; | 1223 | }; |
| 1223 | 1224 | ||
| 1224 | static const struct super_operations mqueue_super_ops = { | 1225 | static const struct super_operations mqueue_super_ops = { |
| @@ -298,6 +298,7 @@ static const struct file_operations shm_file_operations = { | |||
| 298 | #ifndef CONFIG_MMU | 298 | #ifndef CONFIG_MMU |
| 299 | .get_unmapped_area = shm_get_unmapped_area, | 299 | .get_unmapped_area = shm_get_unmapped_area, |
| 300 | #endif | 300 | #endif |
| 301 | .llseek = noop_llseek, | ||
| 301 | }; | 302 | }; |
| 302 | 303 | ||
| 303 | static const struct file_operations shm_file_operations_huge = { | 304 | static const struct file_operations shm_file_operations_huge = { |
| @@ -305,6 +306,7 @@ static const struct file_operations shm_file_operations_huge = { | |||
| 305 | .fsync = shm_fsync, | 306 | .fsync = shm_fsync, |
| 306 | .release = shm_release, | 307 | .release = shm_release, |
| 307 | .get_unmapped_area = shm_get_unmapped_area, | 308 | .get_unmapped_area = shm_get_unmapped_area, |
| 309 | .llseek = noop_llseek, | ||
| 308 | }; | 310 | }; |
| 309 | 311 | ||
| 310 | int is_file_shm_hugepages(struct file *file) | 312 | int is_file_shm_hugepages(struct file *file) |
diff --git a/kernel/configs.c b/kernel/configs.c index abaee684ecbf..b4066b44a99d 100644 --- a/kernel/configs.c +++ b/kernel/configs.c | |||
| @@ -66,6 +66,7 @@ ikconfig_read_current(struct file *file, char __user *buf, | |||
| 66 | static const struct file_operations ikconfig_file_ops = { | 66 | static const struct file_operations ikconfig_file_ops = { |
| 67 | .owner = THIS_MODULE, | 67 | .owner = THIS_MODULE, |
| 68 | .read = ikconfig_read_current, | 68 | .read = ikconfig_read_current, |
| 69 | .llseek = default_llseek, | ||
| 69 | }; | 70 | }; |
| 70 | 71 | ||
| 71 | static int __init ikconfig_init(void) | 72 | static int __init ikconfig_init(void) |
diff --git a/kernel/gcov/fs.c b/kernel/gcov/fs.c index f83972b16564..9bd0934f6c33 100644 --- a/kernel/gcov/fs.c +++ b/kernel/gcov/fs.c | |||
| @@ -561,6 +561,7 @@ static ssize_t reset_read(struct file *file, char __user *addr, size_t len, | |||
| 561 | static const struct file_operations gcov_reset_fops = { | 561 | static const struct file_operations gcov_reset_fops = { |
| 562 | .write = reset_write, | 562 | .write = reset_write, |
| 563 | .read = reset_read, | 563 | .read = reset_read, |
| 564 | .llseek = noop_llseek, | ||
| 564 | }; | 565 | }; |
| 565 | 566 | ||
| 566 | /* | 567 | /* |
diff --git a/kernel/kprobes.c b/kernel/kprobes.c index ec4210c6501e..56a891914273 100644 --- a/kernel/kprobes.c +++ b/kernel/kprobes.c | |||
| @@ -2000,6 +2000,7 @@ static ssize_t write_enabled_file_bool(struct file *file, | |||
| 2000 | static const struct file_operations fops_kp = { | 2000 | static const struct file_operations fops_kp = { |
| 2001 | .read = read_enabled_file_bool, | 2001 | .read = read_enabled_file_bool, |
| 2002 | .write = write_enabled_file_bool, | 2002 | .write = write_enabled_file_bool, |
| 2003 | .llseek = default_llseek, | ||
| 2003 | }; | 2004 | }; |
| 2004 | 2005 | ||
| 2005 | static int __kprobes debugfs_kprobe_init(void) | 2006 | static int __kprobes debugfs_kprobe_init(void) |
diff --git a/kernel/pm_qos_params.c b/kernel/pm_qos_params.c index 645e541a45f6..a96b850ba08a 100644 --- a/kernel/pm_qos_params.c +++ b/kernel/pm_qos_params.c | |||
| @@ -110,6 +110,7 @@ static const struct file_operations pm_qos_power_fops = { | |||
| 110 | .write = pm_qos_power_write, | 110 | .write = pm_qos_power_write, |
| 111 | .open = pm_qos_power_open, | 111 | .open = pm_qos_power_open, |
| 112 | .release = pm_qos_power_release, | 112 | .release = pm_qos_power_release, |
| 113 | .llseek = noop_llseek, | ||
| 113 | }; | 114 | }; |
| 114 | 115 | ||
| 115 | /* unlocked internal variant */ | 116 | /* unlocked internal variant */ |
diff --git a/kernel/profile.c b/kernel/profile.c index b22a899934cc..66f841b7fbd3 100644 --- a/kernel/profile.c +++ b/kernel/profile.c | |||
| @@ -555,6 +555,7 @@ static ssize_t write_profile(struct file *file, const char __user *buf, | |||
| 555 | static const struct file_operations proc_profile_operations = { | 555 | static const struct file_operations proc_profile_operations = { |
| 556 | .read = read_profile, | 556 | .read = read_profile, |
| 557 | .write = write_profile, | 557 | .write = write_profile, |
| 558 | .llseek = default_llseek, | ||
| 558 | }; | 559 | }; |
| 559 | 560 | ||
| 560 | #ifdef CONFIG_SMP | 561 | #ifdef CONFIG_SMP |
diff --git a/kernel/trace/blktrace.c b/kernel/trace/blktrace.c index 5328e8779d4d..bc251ed66724 100644 --- a/kernel/trace/blktrace.c +++ b/kernel/trace/blktrace.c | |||
| @@ -325,6 +325,7 @@ static const struct file_operations blk_dropped_fops = { | |||
| 325 | .owner = THIS_MODULE, | 325 | .owner = THIS_MODULE, |
| 326 | .open = blk_dropped_open, | 326 | .open = blk_dropped_open, |
| 327 | .read = blk_dropped_read, | 327 | .read = blk_dropped_read, |
| 328 | .llseek = default_llseek, | ||
| 328 | }; | 329 | }; |
| 329 | 330 | ||
| 330 | static int blk_msg_open(struct inode *inode, struct file *filp) | 331 | static int blk_msg_open(struct inode *inode, struct file *filp) |
| @@ -364,6 +365,7 @@ static const struct file_operations blk_msg_fops = { | |||
| 364 | .owner = THIS_MODULE, | 365 | .owner = THIS_MODULE, |
| 365 | .open = blk_msg_open, | 366 | .open = blk_msg_open, |
| 366 | .write = blk_msg_write, | 367 | .write = blk_msg_write, |
| 368 | .llseek = noop_llseek, | ||
| 367 | }; | 369 | }; |
| 368 | 370 | ||
| 369 | /* | 371 | /* |
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index ebd80d50c474..f3dadae83883 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c | |||
| @@ -800,6 +800,7 @@ static const struct file_operations ftrace_profile_fops = { | |||
| 800 | .open = tracing_open_generic, | 800 | .open = tracing_open_generic, |
| 801 | .read = ftrace_profile_read, | 801 | .read = ftrace_profile_read, |
| 802 | .write = ftrace_profile_write, | 802 | .write = ftrace_profile_write, |
| 803 | .llseek = default_llseek, | ||
| 803 | }; | 804 | }; |
| 804 | 805 | ||
| 805 | /* used to initialize the real stat files */ | 806 | /* used to initialize the real stat files */ |
| @@ -2669,6 +2670,7 @@ static const struct file_operations ftrace_graph_fops = { | |||
| 2669 | .read = seq_read, | 2670 | .read = seq_read, |
| 2670 | .write = ftrace_graph_write, | 2671 | .write = ftrace_graph_write, |
| 2671 | .release = ftrace_graph_release, | 2672 | .release = ftrace_graph_release, |
| 2673 | .llseek = seq_lseek, | ||
| 2672 | }; | 2674 | }; |
| 2673 | #endif /* CONFIG_FUNCTION_GRAPH_TRACER */ | 2675 | #endif /* CONFIG_FUNCTION_GRAPH_TRACER */ |
| 2674 | 2676 | ||
diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c index c5a632a669e1..c3dab054d18e 100644 --- a/kernel/trace/ring_buffer.c +++ b/kernel/trace/ring_buffer.c | |||
| @@ -3974,6 +3974,7 @@ static const struct file_operations rb_simple_fops = { | |||
| 3974 | .open = tracing_open_generic, | 3974 | .open = tracing_open_generic, |
| 3975 | .read = rb_simple_read, | 3975 | .read = rb_simple_read, |
| 3976 | .write = rb_simple_write, | 3976 | .write = rb_simple_write, |
| 3977 | .llseek = default_llseek, | ||
| 3977 | }; | 3978 | }; |
| 3978 | 3979 | ||
| 3979 | 3980 | ||
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c index 398c0e8b332c..0725eeab1937 100644 --- a/kernel/trace/trace_events.c +++ b/kernel/trace/trace_events.c | |||
| @@ -932,6 +932,7 @@ static const struct file_operations ftrace_enable_fops = { | |||
| 932 | .open = tracing_open_generic, | 932 | .open = tracing_open_generic, |
| 933 | .read = event_enable_read, | 933 | .read = event_enable_read, |
| 934 | .write = event_enable_write, | 934 | .write = event_enable_write, |
| 935 | .llseek = default_llseek, | ||
| 935 | }; | 936 | }; |
| 936 | 937 | ||
| 937 | static const struct file_operations ftrace_event_format_fops = { | 938 | static const struct file_operations ftrace_event_format_fops = { |
| @@ -944,29 +945,34 @@ static const struct file_operations ftrace_event_format_fops = { | |||
| 944 | static const struct file_operations ftrace_event_id_fops = { | 945 | static const struct file_operations ftrace_event_id_fops = { |
| 945 | .open = tracing_open_generic, | 946 | .open = tracing_open_generic, |
| 946 | .read = event_id_read, | 947 | .read = event_id_read, |
| 948 | .llseek = default_llseek, | ||
| 947 | }; | 949 | }; |
| 948 | 950 | ||
| 949 | static const struct file_operations ftrace_event_filter_fops = { | 951 | static const struct file_operations ftrace_event_filter_fops = { |
| 950 | .open = tracing_open_generic, | 952 | .open = tracing_open_generic, |
| 951 | .read = event_filter_read, | 953 | .read = event_filter_read, |
| 952 | .write = event_filter_write, | 954 | .write = event_filter_write, |
| 955 | .llseek = default_llseek, | ||
| 953 | }; | 956 | }; |
| 954 | 957 | ||
| 955 | static const struct file_operations ftrace_subsystem_filter_fops = { | 958 | static const struct file_operations ftrace_subsystem_filter_fops = { |
| 956 | .open = tracing_open_generic, | 959 | .open = tracing_open_generic, |
| 957 | .read = subsystem_filter_read, | 960 | .read = subsystem_filter_read, |
| 958 | .write = subsystem_filter_write, | 961 | .write = subsystem_filter_write, |
| 962 | .llseek = default_llseek, | ||
| 959 | }; | 963 | }; |
| 960 | 964 | ||
| 961 | static const struct file_operations ftrace_system_enable_fops = { | 965 | static const struct file_operations ftrace_system_enable_fops = { |
| 962 | .open = tracing_open_generic, | 966 | .open = tracing_open_generic, |
| 963 | .read = system_enable_read, | 967 | .read = system_enable_read, |
| 964 | .write = system_enable_write, | 968 | .write = system_enable_write, |
| 969 | .llseek = default_llseek, | ||
| 965 | }; | 970 | }; |
| 966 | 971 | ||
| 967 | static const struct file_operations ftrace_show_header_fops = { | 972 | static const struct file_operations ftrace_show_header_fops = { |
| 968 | .open = tracing_open_generic, | 973 | .open = tracing_open_generic, |
| 969 | .read = show_header, | 974 | .read = show_header, |
| 975 | .llseek = default_llseek, | ||
| 970 | }; | 976 | }; |
| 971 | 977 | ||
| 972 | static struct dentry *event_trace_events_dir(void) | 978 | static struct dentry *event_trace_events_dir(void) |
diff --git a/kernel/trace/trace_stack.c b/kernel/trace/trace_stack.c index a6b7e0e0f3eb..4c5dead0c239 100644 --- a/kernel/trace/trace_stack.c +++ b/kernel/trace/trace_stack.c | |||
| @@ -195,6 +195,7 @@ static const struct file_operations stack_max_size_fops = { | |||
| 195 | .open = tracing_open_generic, | 195 | .open = tracing_open_generic, |
| 196 | .read = stack_max_size_read, | 196 | .read = stack_max_size_read, |
| 197 | .write = stack_max_size_write, | 197 | .write = stack_max_size_write, |
| 198 | .llseek = default_llseek, | ||
| 198 | }; | 199 | }; |
| 199 | 200 | ||
| 200 | static void * | 201 | static void * |
diff --git a/lib/dma-debug.c b/lib/dma-debug.c index 01e64270e246..4bfb0471f106 100644 --- a/lib/dma-debug.c +++ b/lib/dma-debug.c | |||
| @@ -590,6 +590,7 @@ out_unlock: | |||
| 590 | static const struct file_operations filter_fops = { | 590 | static const struct file_operations filter_fops = { |
| 591 | .read = filter_read, | 591 | .read = filter_read, |
| 592 | .write = filter_write, | 592 | .write = filter_write, |
| 593 | .llseek = default_llseek, | ||
| 593 | }; | 594 | }; |
| 594 | 595 | ||
| 595 | static int dma_debug_fs_init(void) | 596 | static int dma_debug_fs_init(void) |
diff --git a/net/atm/proc.c b/net/atm/proc.c index 6262aeae398e..f85da0779e5e 100644 --- a/net/atm/proc.c +++ b/net/atm/proc.c | |||
| @@ -38,6 +38,7 @@ static ssize_t proc_dev_atm_read(struct file *file, char __user *buf, | |||
| 38 | static const struct file_operations proc_atm_dev_ops = { | 38 | static const struct file_operations proc_atm_dev_ops = { |
| 39 | .owner = THIS_MODULE, | 39 | .owner = THIS_MODULE, |
| 40 | .read = proc_dev_atm_read, | 40 | .read = proc_dev_atm_read, |
| 41 | .llseek = noop_llseek, | ||
| 41 | }; | 42 | }; |
| 42 | 43 | ||
| 43 | static void add_stats(struct seq_file *seq, const char *aal, | 44 | static void add_stats(struct seq_file *seq, const char *aal, |
diff --git a/net/dccp/probe.c b/net/dccp/probe.c index 078e48d442fd..33d0e6297c21 100644 --- a/net/dccp/probe.c +++ b/net/dccp/probe.c | |||
| @@ -149,6 +149,7 @@ static const struct file_operations dccpprobe_fops = { | |||
| 149 | .owner = THIS_MODULE, | 149 | .owner = THIS_MODULE, |
| 150 | .open = dccpprobe_open, | 150 | .open = dccpprobe_open, |
| 151 | .read = dccpprobe_read, | 151 | .read = dccpprobe_read, |
| 152 | .llseek = noop_llseek, | ||
| 152 | }; | 153 | }; |
| 153 | 154 | ||
| 154 | static __init int dccpprobe_init(void) | 155 | static __init int dccpprobe_init(void) |
diff --git a/net/ipv4/tcp_probe.c b/net/ipv4/tcp_probe.c index f8efada580e8..6211e2114173 100644 --- a/net/ipv4/tcp_probe.c +++ b/net/ipv4/tcp_probe.c | |||
| @@ -214,6 +214,7 @@ static const struct file_operations tcpprobe_fops = { | |||
| 214 | .owner = THIS_MODULE, | 214 | .owner = THIS_MODULE, |
| 215 | .open = tcpprobe_open, | 215 | .open = tcpprobe_open, |
| 216 | .read = tcpprobe_read, | 216 | .read = tcpprobe_read, |
| 217 | .llseek = noop_llseek, | ||
| 217 | }; | 218 | }; |
| 218 | 219 | ||
| 219 | static __init int tcpprobe_init(void) | 220 | static __init int tcpprobe_init(void) |
diff --git a/net/mac80211/debugfs.c b/net/mac80211/debugfs.c index a694c593ff6a..b8b0ae79a743 100644 --- a/net/mac80211/debugfs.c +++ b/net/mac80211/debugfs.c | |||
| @@ -36,6 +36,7 @@ static ssize_t name## _read(struct file *file, char __user *userbuf, \ | |||
| 36 | static const struct file_operations name## _ops = { \ | 36 | static const struct file_operations name## _ops = { \ |
| 37 | .read = name## _read, \ | 37 | .read = name## _read, \ |
| 38 | .open = mac80211_open_file_generic, \ | 38 | .open = mac80211_open_file_generic, \ |
| 39 | .llseek = generic_file_llseek, \ | ||
| 39 | }; | 40 | }; |
| 40 | 41 | ||
| 41 | #define DEBUGFS_ADD(name) \ | 42 | #define DEBUGFS_ADD(name) \ |
| @@ -101,7 +102,8 @@ static ssize_t tsf_write(struct file *file, | |||
| 101 | static const struct file_operations tsf_ops = { | 102 | static const struct file_operations tsf_ops = { |
| 102 | .read = tsf_read, | 103 | .read = tsf_read, |
| 103 | .write = tsf_write, | 104 | .write = tsf_write, |
| 104 | .open = mac80211_open_file_generic | 105 | .open = mac80211_open_file_generic, |
| 106 | .llseek = default_llseek, | ||
| 105 | }; | 107 | }; |
| 106 | 108 | ||
| 107 | static ssize_t reset_write(struct file *file, const char __user *user_buf, | 109 | static ssize_t reset_write(struct file *file, const char __user *user_buf, |
| @@ -120,6 +122,7 @@ static ssize_t reset_write(struct file *file, const char __user *user_buf, | |||
| 120 | static const struct file_operations reset_ops = { | 122 | static const struct file_operations reset_ops = { |
| 121 | .write = reset_write, | 123 | .write = reset_write, |
| 122 | .open = mac80211_open_file_generic, | 124 | .open = mac80211_open_file_generic, |
| 125 | .llseek = noop_llseek, | ||
| 123 | }; | 126 | }; |
| 124 | 127 | ||
| 125 | static ssize_t noack_read(struct file *file, char __user *user_buf, | 128 | static ssize_t noack_read(struct file *file, char __user *user_buf, |
| @@ -155,7 +158,8 @@ static ssize_t noack_write(struct file *file, | |||
| 155 | static const struct file_operations noack_ops = { | 158 | static const struct file_operations noack_ops = { |
| 156 | .read = noack_read, | 159 | .read = noack_read, |
| 157 | .write = noack_write, | 160 | .write = noack_write, |
| 158 | .open = mac80211_open_file_generic | 161 | .open = mac80211_open_file_generic, |
| 162 | .llseek = default_llseek, | ||
| 159 | }; | 163 | }; |
| 160 | 164 | ||
| 161 | static ssize_t uapsd_queues_read(struct file *file, char __user *user_buf, | 165 | static ssize_t uapsd_queues_read(struct file *file, char __user *user_buf, |
| @@ -201,7 +205,8 @@ static ssize_t uapsd_queues_write(struct file *file, | |||
| 201 | static const struct file_operations uapsd_queues_ops = { | 205 | static const struct file_operations uapsd_queues_ops = { |
| 202 | .read = uapsd_queues_read, | 206 | .read = uapsd_queues_read, |
| 203 | .write = uapsd_queues_write, | 207 | .write = uapsd_queues_write, |
| 204 | .open = mac80211_open_file_generic | 208 | .open = mac80211_open_file_generic, |
| 209 | .llseek = default_llseek, | ||
| 205 | }; | 210 | }; |
| 206 | 211 | ||
| 207 | static ssize_t uapsd_max_sp_len_read(struct file *file, char __user *user_buf, | 212 | static ssize_t uapsd_max_sp_len_read(struct file *file, char __user *user_buf, |
| @@ -247,7 +252,8 @@ static ssize_t uapsd_max_sp_len_write(struct file *file, | |||
| 247 | static const struct file_operations uapsd_max_sp_len_ops = { | 252 | static const struct file_operations uapsd_max_sp_len_ops = { |
| 248 | .read = uapsd_max_sp_len_read, | 253 | .read = uapsd_max_sp_len_read, |
| 249 | .write = uapsd_max_sp_len_write, | 254 | .write = uapsd_max_sp_len_write, |
| 250 | .open = mac80211_open_file_generic | 255 | .open = mac80211_open_file_generic, |
| 256 | .llseek = default_llseek, | ||
| 251 | }; | 257 | }; |
| 252 | 258 | ||
| 253 | static ssize_t channel_type_read(struct file *file, char __user *user_buf, | 259 | static ssize_t channel_type_read(struct file *file, char __user *user_buf, |
| @@ -279,7 +285,8 @@ static ssize_t channel_type_read(struct file *file, char __user *user_buf, | |||
| 279 | 285 | ||
| 280 | static const struct file_operations channel_type_ops = { | 286 | static const struct file_operations channel_type_ops = { |
| 281 | .read = channel_type_read, | 287 | .read = channel_type_read, |
| 282 | .open = mac80211_open_file_generic | 288 | .open = mac80211_open_file_generic, |
| 289 | .llseek = default_llseek, | ||
| 283 | }; | 290 | }; |
| 284 | 291 | ||
| 285 | static ssize_t queues_read(struct file *file, char __user *user_buf, | 292 | static ssize_t queues_read(struct file *file, char __user *user_buf, |
| @@ -302,7 +309,8 @@ static ssize_t queues_read(struct file *file, char __user *user_buf, | |||
| 302 | 309 | ||
| 303 | static const struct file_operations queues_ops = { | 310 | static const struct file_operations queues_ops = { |
| 304 | .read = queues_read, | 311 | .read = queues_read, |
| 305 | .open = mac80211_open_file_generic | 312 | .open = mac80211_open_file_generic, |
| 313 | .llseek = default_llseek, | ||
| 306 | }; | 314 | }; |
| 307 | 315 | ||
| 308 | /* statistics stuff */ | 316 | /* statistics stuff */ |
| @@ -346,6 +354,7 @@ static ssize_t stats_ ##name## _read(struct file *file, \ | |||
| 346 | static const struct file_operations stats_ ##name## _ops = { \ | 354 | static const struct file_operations stats_ ##name## _ops = { \ |
| 347 | .read = stats_ ##name## _read, \ | 355 | .read = stats_ ##name## _read, \ |
| 348 | .open = mac80211_open_file_generic, \ | 356 | .open = mac80211_open_file_generic, \ |
| 357 | .llseek = generic_file_llseek, \ | ||
| 349 | }; | 358 | }; |
| 350 | 359 | ||
| 351 | #define DEBUGFS_STATS_ADD(name, field) \ | 360 | #define DEBUGFS_STATS_ADD(name, field) \ |
diff --git a/net/mac80211/debugfs_key.c b/net/mac80211/debugfs_key.c index fa5e76e658ef..7cd8dd9fc240 100644 --- a/net/mac80211/debugfs_key.c +++ b/net/mac80211/debugfs_key.c | |||
| @@ -32,6 +32,7 @@ static ssize_t key_##name##_read(struct file *file, \ | |||
| 32 | static const struct file_operations key_ ##name## _ops = { \ | 32 | static const struct file_operations key_ ##name## _ops = { \ |
| 33 | .read = key_##name##_read, \ | 33 | .read = key_##name##_read, \ |
| 34 | .open = mac80211_open_file_generic, \ | 34 | .open = mac80211_open_file_generic, \ |
| 35 | .llseek = generic_file_llseek, \ | ||
| 35 | } | 36 | } |
| 36 | 37 | ||
| 37 | #define KEY_FILE(name, format) \ | 38 | #define KEY_FILE(name, format) \ |
| @@ -46,6 +47,7 @@ static const struct file_operations key_ ##name## _ops = { \ | |||
| 46 | static const struct file_operations key_ ##name## _ops = { \ | 47 | static const struct file_operations key_ ##name## _ops = { \ |
| 47 | .read = key_conf_##name##_read, \ | 48 | .read = key_conf_##name##_read, \ |
| 48 | .open = mac80211_open_file_generic, \ | 49 | .open = mac80211_open_file_generic, \ |
| 50 | .llseek = generic_file_llseek, \ | ||
| 49 | } | 51 | } |
| 50 | 52 | ||
| 51 | #define KEY_CONF_FILE(name, format) \ | 53 | #define KEY_CONF_FILE(name, format) \ |
diff --git a/net/mac80211/debugfs_netdev.c b/net/mac80211/debugfs_netdev.c index 20b2998fa0ed..8ad33eef7dda 100644 --- a/net/mac80211/debugfs_netdev.c +++ b/net/mac80211/debugfs_netdev.c | |||
| @@ -121,6 +121,7 @@ static const struct file_operations name##_ops = { \ | |||
| 121 | .read = ieee80211_if_read_##name, \ | 121 | .read = ieee80211_if_read_##name, \ |
| 122 | .write = (_write), \ | 122 | .write = (_write), \ |
| 123 | .open = mac80211_open_file_generic, \ | 123 | .open = mac80211_open_file_generic, \ |
| 124 | .llseek = generic_file_llseek, \ | ||
| 124 | } | 125 | } |
| 125 | 126 | ||
| 126 | #define __IEEE80211_IF_FILE_W(name) \ | 127 | #define __IEEE80211_IF_FILE_W(name) \ |
diff --git a/net/mac80211/debugfs_sta.c b/net/mac80211/debugfs_sta.c index 76839d4dfaac..6a8fdc372c43 100644 --- a/net/mac80211/debugfs_sta.c +++ b/net/mac80211/debugfs_sta.c | |||
| @@ -36,6 +36,7 @@ static ssize_t sta_ ##name## _read(struct file *file, \ | |||
| 36 | static const struct file_operations sta_ ##name## _ops = { \ | 36 | static const struct file_operations sta_ ##name## _ops = { \ |
| 37 | .read = sta_##name##_read, \ | 37 | .read = sta_##name##_read, \ |
| 38 | .open = mac80211_open_file_generic, \ | 38 | .open = mac80211_open_file_generic, \ |
| 39 | .llseek = generic_file_llseek, \ | ||
| 39 | } | 40 | } |
| 40 | 41 | ||
| 41 | #define STA_OPS_RW(name) \ | 42 | #define STA_OPS_RW(name) \ |
| @@ -43,6 +44,7 @@ static const struct file_operations sta_ ##name## _ops = { \ | |||
| 43 | .read = sta_##name##_read, \ | 44 | .read = sta_##name##_read, \ |
| 44 | .write = sta_##name##_write, \ | 45 | .write = sta_##name##_write, \ |
| 45 | .open = mac80211_open_file_generic, \ | 46 | .open = mac80211_open_file_generic, \ |
| 47 | .llseek = generic_file_llseek, \ | ||
| 46 | } | 48 | } |
| 47 | 49 | ||
| 48 | #define STA_FILE(name, field, format) \ | 50 | #define STA_FILE(name, field, format) \ |
diff --git a/net/mac80211/rate.c b/net/mac80211/rate.c index be04d46110fe..334cbd3d2aae 100644 --- a/net/mac80211/rate.c +++ b/net/mac80211/rate.c | |||
| @@ -145,6 +145,7 @@ static ssize_t rcname_read(struct file *file, char __user *userbuf, | |||
| 145 | static const struct file_operations rcname_ops = { | 145 | static const struct file_operations rcname_ops = { |
| 146 | .read = rcname_read, | 146 | .read = rcname_read, |
| 147 | .open = mac80211_open_file_generic, | 147 | .open = mac80211_open_file_generic, |
| 148 | .llseek = default_llseek, | ||
| 148 | }; | 149 | }; |
| 149 | #endif | 150 | #endif |
| 150 | 151 | ||
diff --git a/net/mac80211/rc80211_minstrel_debugfs.c b/net/mac80211/rc80211_minstrel_debugfs.c index 241e76f3fdf2..a290ad231d77 100644 --- a/net/mac80211/rc80211_minstrel_debugfs.c +++ b/net/mac80211/rc80211_minstrel_debugfs.c | |||
| @@ -122,6 +122,7 @@ static const struct file_operations minstrel_stat_fops = { | |||
| 122 | .open = minstrel_stats_open, | 122 | .open = minstrel_stats_open, |
| 123 | .read = minstrel_stats_read, | 123 | .read = minstrel_stats_read, |
| 124 | .release = minstrel_stats_release, | 124 | .release = minstrel_stats_release, |
| 125 | .llseek = default_llseek, | ||
| 125 | }; | 126 | }; |
| 126 | 127 | ||
| 127 | void | 128 | void |
diff --git a/net/mac80211/rc80211_minstrel_ht_debugfs.c b/net/mac80211/rc80211_minstrel_ht_debugfs.c index 4a5a4b3e7799..cefcb5d2dae6 100644 --- a/net/mac80211/rc80211_minstrel_ht_debugfs.c +++ b/net/mac80211/rc80211_minstrel_ht_debugfs.c | |||
| @@ -90,7 +90,7 @@ minstrel_ht_stats_open(struct inode *inode, struct file *file) | |||
| 90 | MINSTREL_TRUNC(mi->avg_ampdu_len * 10) % 10); | 90 | MINSTREL_TRUNC(mi->avg_ampdu_len * 10) % 10); |
| 91 | ms->len = p - ms->buf; | 91 | ms->len = p - ms->buf; |
| 92 | 92 | ||
| 93 | return 0; | 93 | return nonseekable_open(inode, file); |
| 94 | } | 94 | } |
| 95 | 95 | ||
| 96 | static const struct file_operations minstrel_ht_stat_fops = { | 96 | static const struct file_operations minstrel_ht_stat_fops = { |
| @@ -98,6 +98,7 @@ static const struct file_operations minstrel_ht_stat_fops = { | |||
| 98 | .open = minstrel_ht_stats_open, | 98 | .open = minstrel_ht_stats_open, |
| 99 | .read = minstrel_stats_read, | 99 | .read = minstrel_stats_read, |
| 100 | .release = minstrel_stats_release, | 100 | .release = minstrel_stats_release, |
| 101 | .llseek = no_llseek, | ||
| 101 | }; | 102 | }; |
| 102 | 103 | ||
| 103 | void | 104 | void |
diff --git a/net/mac80211/rc80211_pid_debugfs.c b/net/mac80211/rc80211_pid_debugfs.c index 47438b4a9af5..7905f79cc2e4 100644 --- a/net/mac80211/rc80211_pid_debugfs.c +++ b/net/mac80211/rc80211_pid_debugfs.c | |||
| @@ -206,6 +206,7 @@ static const struct file_operations rc_pid_fop_events = { | |||
| 206 | .poll = rate_control_pid_events_poll, | 206 | .poll = rate_control_pid_events_poll, |
| 207 | .open = rate_control_pid_events_open, | 207 | .open = rate_control_pid_events_open, |
| 208 | .release = rate_control_pid_events_release, | 208 | .release = rate_control_pid_events_release, |
| 209 | .llseek = noop_llseek, | ||
| 209 | }; | 210 | }; |
| 210 | 211 | ||
| 211 | void rate_control_pid_add_sta_debugfs(void *priv, void *priv_sta, | 212 | void rate_control_pid_add_sta_debugfs(void *priv, void *priv_sta, |
diff --git a/net/netfilter/xt_recent.c b/net/netfilter/xt_recent.c index 76aec6a44762..d2ff15a2412b 100644 --- a/net/netfilter/xt_recent.c +++ b/net/netfilter/xt_recent.c | |||
| @@ -567,6 +567,7 @@ static const struct file_operations recent_mt_fops = { | |||
| 567 | .write = recent_mt_proc_write, | 567 | .write = recent_mt_proc_write, |
| 568 | .release = seq_release_private, | 568 | .release = seq_release_private, |
| 569 | .owner = THIS_MODULE, | 569 | .owner = THIS_MODULE, |
| 570 | .llseek = seq_lseek, | ||
| 570 | }; | 571 | }; |
| 571 | 572 | ||
| 572 | static int __net_init recent_proc_net_init(struct net *net) | 573 | static int __net_init recent_proc_net_init(struct net *net) |
diff --git a/net/nonet.c b/net/nonet.c index 92e76640c7cd..b1a73fda9c12 100644 --- a/net/nonet.c +++ b/net/nonet.c | |||
| @@ -22,4 +22,5 @@ static int sock_no_open(struct inode *irrelevant, struct file *dontcare) | |||
| 22 | const struct file_operations bad_sock_fops = { | 22 | const struct file_operations bad_sock_fops = { |
| 23 | .owner = THIS_MODULE, | 23 | .owner = THIS_MODULE, |
| 24 | .open = sock_no_open, | 24 | .open = sock_no_open, |
| 25 | .llseek = noop_llseek, | ||
| 25 | }; | 26 | }; |
diff --git a/net/rfkill/core.c b/net/rfkill/core.c index 51875a0c5d48..04f599089e6d 100644 --- a/net/rfkill/core.c +++ b/net/rfkill/core.c | |||
| @@ -1241,6 +1241,7 @@ static const struct file_operations rfkill_fops = { | |||
| 1241 | .unlocked_ioctl = rfkill_fop_ioctl, | 1241 | .unlocked_ioctl = rfkill_fop_ioctl, |
| 1242 | .compat_ioctl = rfkill_fop_ioctl, | 1242 | .compat_ioctl = rfkill_fop_ioctl, |
| 1243 | #endif | 1243 | #endif |
| 1244 | .llseek = no_llseek, | ||
| 1244 | }; | 1245 | }; |
| 1245 | 1246 | ||
| 1246 | static struct miscdevice rfkill_miscdev = { | 1247 | static struct miscdevice rfkill_miscdev = { |
diff --git a/net/sctp/probe.c b/net/sctp/probe.c index db3a42b8b349..289b1ba62cac 100644 --- a/net/sctp/probe.c +++ b/net/sctp/probe.c | |||
| @@ -117,6 +117,7 @@ static const struct file_operations sctpprobe_fops = { | |||
| 117 | .owner = THIS_MODULE, | 117 | .owner = THIS_MODULE, |
| 118 | .open = sctpprobe_open, | 118 | .open = sctpprobe_open, |
| 119 | .read = sctpprobe_read, | 119 | .read = sctpprobe_read, |
| 120 | .llseek = noop_llseek, | ||
| 120 | }; | 121 | }; |
| 121 | 122 | ||
| 122 | sctp_disposition_t jsctp_sf_eat_sack(const struct sctp_endpoint *ep, | 123 | sctp_disposition_t jsctp_sf_eat_sack(const struct sctp_endpoint *ep, |
diff --git a/net/socket.c b/net/socket.c index 2270b941bcc7..9eac5c394134 100644 --- a/net/socket.c +++ b/net/socket.c | |||
| @@ -502,6 +502,7 @@ static int sock_no_open(struct inode *irrelevant, struct file *dontcare) | |||
| 502 | const struct file_operations bad_sock_fops = { | 502 | const struct file_operations bad_sock_fops = { |
| 503 | .owner = THIS_MODULE, | 503 | .owner = THIS_MODULE, |
| 504 | .open = sock_no_open, | 504 | .open = sock_no_open, |
| 505 | .llseek = noop_llseek, | ||
| 505 | }; | 506 | }; |
| 506 | 507 | ||
| 507 | /** | 508 | /** |
diff --git a/net/sunrpc/cache.c b/net/sunrpc/cache.c index 29b11e065015..7dce81a926c5 100644 --- a/net/sunrpc/cache.c +++ b/net/sunrpc/cache.c | |||
| @@ -1435,6 +1435,7 @@ static const struct file_operations cache_flush_operations_procfs = { | |||
| 1435 | .read = read_flush_procfs, | 1435 | .read = read_flush_procfs, |
| 1436 | .write = write_flush_procfs, | 1436 | .write = write_flush_procfs, |
| 1437 | .release = release_flush_procfs, | 1437 | .release = release_flush_procfs, |
| 1438 | .llseek = no_llseek, | ||
| 1438 | }; | 1439 | }; |
| 1439 | 1440 | ||
| 1440 | static void remove_cache_proc_entries(struct cache_detail *cd) | 1441 | static void remove_cache_proc_entries(struct cache_detail *cd) |
| @@ -1635,6 +1636,7 @@ const struct file_operations cache_flush_operations_pipefs = { | |||
| 1635 | .read = read_flush_pipefs, | 1636 | .read = read_flush_pipefs, |
| 1636 | .write = write_flush_pipefs, | 1637 | .write = write_flush_pipefs, |
| 1637 | .release = release_flush_pipefs, | 1638 | .release = release_flush_pipefs, |
| 1639 | .llseek = no_llseek, | ||
| 1638 | }; | 1640 | }; |
| 1639 | 1641 | ||
| 1640 | int sunrpc_cache_register_pipefs(struct dentry *parent, | 1642 | int sunrpc_cache_register_pipefs(struct dentry *parent, |
diff --git a/net/wireless/debugfs.c b/net/wireless/debugfs.c index a4991a3efec0..39765bcfb472 100644 --- a/net/wireless/debugfs.c +++ b/net/wireless/debugfs.c | |||
| @@ -34,6 +34,7 @@ static ssize_t name## _read(struct file *file, char __user *userbuf, \ | |||
| 34 | static const struct file_operations name## _ops = { \ | 34 | static const struct file_operations name## _ops = { \ |
| 35 | .read = name## _read, \ | 35 | .read = name## _read, \ |
| 36 | .open = cfg80211_open_file_generic, \ | 36 | .open = cfg80211_open_file_generic, \ |
| 37 | .llseek = generic_file_llseek, \ | ||
| 37 | }; | 38 | }; |
| 38 | 39 | ||
| 39 | DEBUGFS_READONLY_FILE(rts_threshold, 20, "%d", | 40 | DEBUGFS_READONLY_FILE(rts_threshold, 20, "%d", |
| @@ -102,6 +103,7 @@ static ssize_t ht40allow_map_read(struct file *file, | |||
| 102 | static const struct file_operations ht40allow_map_ops = { | 103 | static const struct file_operations ht40allow_map_ops = { |
| 103 | .read = ht40allow_map_read, | 104 | .read = ht40allow_map_read, |
| 104 | .open = cfg80211_open_file_generic, | 105 | .open = cfg80211_open_file_generic, |
| 106 | .llseek = default_llseek, | ||
| 105 | }; | 107 | }; |
| 106 | 108 | ||
| 107 | #define DEBUGFS_ADD(name) \ | 109 | #define DEBUGFS_ADD(name) \ |
diff --git a/samples/kfifo/bytestream-example.c b/samples/kfifo/bytestream-example.c index 178061e87ffe..cfe40addda76 100644 --- a/samples/kfifo/bytestream-example.c +++ b/samples/kfifo/bytestream-example.c | |||
| @@ -148,6 +148,7 @@ static const struct file_operations fifo_fops = { | |||
| 148 | .owner = THIS_MODULE, | 148 | .owner = THIS_MODULE, |
| 149 | .read = fifo_read, | 149 | .read = fifo_read, |
| 150 | .write = fifo_write, | 150 | .write = fifo_write, |
| 151 | .llseek = noop_llseek, | ||
| 151 | }; | 152 | }; |
| 152 | 153 | ||
| 153 | static int __init example_init(void) | 154 | static int __init example_init(void) |
diff --git a/samples/kfifo/inttype-example.c b/samples/kfifo/inttype-example.c index 71b2aabca96a..6f8e79e76c9e 100644 --- a/samples/kfifo/inttype-example.c +++ b/samples/kfifo/inttype-example.c | |||
| @@ -141,6 +141,7 @@ static const struct file_operations fifo_fops = { | |||
| 141 | .owner = THIS_MODULE, | 141 | .owner = THIS_MODULE, |
| 142 | .read = fifo_read, | 142 | .read = fifo_read, |
| 143 | .write = fifo_write, | 143 | .write = fifo_write, |
| 144 | .llseek = noop_llseek, | ||
| 144 | }; | 145 | }; |
| 145 | 146 | ||
| 146 | static int __init example_init(void) | 147 | static int __init example_init(void) |
diff --git a/samples/kfifo/record-example.c b/samples/kfifo/record-example.c index e68bd16a5da4..2d7529eeb294 100644 --- a/samples/kfifo/record-example.c +++ b/samples/kfifo/record-example.c | |||
| @@ -155,6 +155,7 @@ static const struct file_operations fifo_fops = { | |||
| 155 | .owner = THIS_MODULE, | 155 | .owner = THIS_MODULE, |
| 156 | .read = fifo_read, | 156 | .read = fifo_read, |
| 157 | .write = fifo_write, | 157 | .write = fifo_write, |
| 158 | .llseek = noop_llseek, | ||
| 158 | }; | 159 | }; |
| 159 | 160 | ||
| 160 | static int __init example_init(void) | 161 | static int __init example_init(void) |
diff --git a/samples/tracepoints/tracepoint-sample.c b/samples/tracepoints/tracepoint-sample.c index 26fab33ffa8c..f4d89e008c32 100644 --- a/samples/tracepoints/tracepoint-sample.c +++ b/samples/tracepoints/tracepoint-sample.c | |||
| @@ -30,6 +30,7 @@ static int my_open(struct inode *inode, struct file *file) | |||
| 30 | 30 | ||
| 31 | static const struct file_operations mark_ops = { | 31 | static const struct file_operations mark_ops = { |
| 32 | .open = my_open, | 32 | .open = my_open, |
| 33 | .llseek = noop_llseek, | ||
| 33 | }; | 34 | }; |
| 34 | 35 | ||
| 35 | static int __init sample_init(void) | 36 | static int __init sample_init(void) |
diff --git a/security/apparmor/apparmorfs.c b/security/apparmor/apparmorfs.c index 544ff5837cb6..0848292982a2 100644 --- a/security/apparmor/apparmorfs.c +++ b/security/apparmor/apparmorfs.c | |||
| @@ -88,7 +88,8 @@ static ssize_t profile_load(struct file *f, const char __user *buf, size_t size, | |||
| 88 | } | 88 | } |
| 89 | 89 | ||
| 90 | static const struct file_operations aa_fs_profile_load = { | 90 | static const struct file_operations aa_fs_profile_load = { |
| 91 | .write = profile_load | 91 | .write = profile_load, |
| 92 | .llseek = default_llseek, | ||
| 92 | }; | 93 | }; |
| 93 | 94 | ||
| 94 | /* .replace file hook fn to load and/or replace policy */ | 95 | /* .replace file hook fn to load and/or replace policy */ |
| @@ -109,7 +110,8 @@ static ssize_t profile_replace(struct file *f, const char __user *buf, | |||
| 109 | } | 110 | } |
| 110 | 111 | ||
| 111 | static const struct file_operations aa_fs_profile_replace = { | 112 | static const struct file_operations aa_fs_profile_replace = { |
| 112 | .write = profile_replace | 113 | .write = profile_replace, |
| 114 | .llseek = default_llseek, | ||
| 113 | }; | 115 | }; |
| 114 | 116 | ||
| 115 | /* .remove file hook fn to remove loaded policy */ | 117 | /* .remove file hook fn to remove loaded policy */ |
| @@ -136,7 +138,8 @@ static ssize_t profile_remove(struct file *f, const char __user *buf, | |||
| 136 | } | 138 | } |
| 137 | 139 | ||
| 138 | static const struct file_operations aa_fs_profile_remove = { | 140 | static const struct file_operations aa_fs_profile_remove = { |
| 139 | .write = profile_remove | 141 | .write = profile_remove, |
| 142 | .llseek = default_llseek, | ||
| 140 | }; | 143 | }; |
| 141 | 144 | ||
| 142 | /** Base file system setup **/ | 145 | /** Base file system setup **/ |
diff --git a/security/inode.c b/security/inode.c index 8c777f022ad1..88839866cbcd 100644 --- a/security/inode.c +++ b/security/inode.c | |||
| @@ -53,6 +53,7 @@ static const struct file_operations default_file_ops = { | |||
| 53 | .read = default_read_file, | 53 | .read = default_read_file, |
| 54 | .write = default_write_file, | 54 | .write = default_write_file, |
| 55 | .open = default_open, | 55 | .open = default_open, |
| 56 | .llseek = noop_llseek, | ||
| 56 | }; | 57 | }; |
| 57 | 58 | ||
| 58 | static struct inode *get_inode(struct super_block *sb, int mode, dev_t dev) | 59 | static struct inode *get_inode(struct super_block *sb, int mode, dev_t dev) |
diff --git a/security/smack/smackfs.c b/security/smack/smackfs.c index a2b72d77f926..7512502d0162 100644 --- a/security/smack/smackfs.c +++ b/security/smack/smackfs.c | |||
| @@ -968,6 +968,7 @@ static ssize_t smk_write_doi(struct file *file, const char __user *buf, | |||
| 968 | static const struct file_operations smk_doi_ops = { | 968 | static const struct file_operations smk_doi_ops = { |
| 969 | .read = smk_read_doi, | 969 | .read = smk_read_doi, |
| 970 | .write = smk_write_doi, | 970 | .write = smk_write_doi, |
| 971 | .llseek = default_llseek, | ||
| 971 | }; | 972 | }; |
| 972 | 973 | ||
| 973 | /** | 974 | /** |
| @@ -1031,6 +1032,7 @@ static ssize_t smk_write_direct(struct file *file, const char __user *buf, | |||
| 1031 | static const struct file_operations smk_direct_ops = { | 1032 | static const struct file_operations smk_direct_ops = { |
| 1032 | .read = smk_read_direct, | 1033 | .read = smk_read_direct, |
| 1033 | .write = smk_write_direct, | 1034 | .write = smk_write_direct, |
| 1035 | .llseek = default_llseek, | ||
| 1034 | }; | 1036 | }; |
| 1035 | 1037 | ||
| 1036 | /** | 1038 | /** |
| @@ -1112,6 +1114,7 @@ static ssize_t smk_write_ambient(struct file *file, const char __user *buf, | |||
| 1112 | static const struct file_operations smk_ambient_ops = { | 1114 | static const struct file_operations smk_ambient_ops = { |
| 1113 | .read = smk_read_ambient, | 1115 | .read = smk_read_ambient, |
| 1114 | .write = smk_write_ambient, | 1116 | .write = smk_write_ambient, |
| 1117 | .llseek = default_llseek, | ||
| 1115 | }; | 1118 | }; |
| 1116 | 1119 | ||
| 1117 | /** | 1120 | /** |
| @@ -1191,6 +1194,7 @@ static ssize_t smk_write_onlycap(struct file *file, const char __user *buf, | |||
| 1191 | static const struct file_operations smk_onlycap_ops = { | 1194 | static const struct file_operations smk_onlycap_ops = { |
| 1192 | .read = smk_read_onlycap, | 1195 | .read = smk_read_onlycap, |
| 1193 | .write = smk_write_onlycap, | 1196 | .write = smk_write_onlycap, |
| 1197 | .llseek = default_llseek, | ||
| 1194 | }; | 1198 | }; |
| 1195 | 1199 | ||
| 1196 | /** | 1200 | /** |
| @@ -1255,6 +1259,7 @@ static ssize_t smk_write_logging(struct file *file, const char __user *buf, | |||
| 1255 | static const struct file_operations smk_logging_ops = { | 1259 | static const struct file_operations smk_logging_ops = { |
| 1256 | .read = smk_read_logging, | 1260 | .read = smk_read_logging, |
| 1257 | .write = smk_write_logging, | 1261 | .write = smk_write_logging, |
| 1262 | .llseek = default_llseek, | ||
| 1258 | }; | 1263 | }; |
| 1259 | /** | 1264 | /** |
| 1260 | * smk_fill_super - fill the /smackfs superblock | 1265 | * smk_fill_super - fill the /smackfs superblock |
diff --git a/sound/core/seq/oss/seq_oss.c b/sound/core/seq/oss/seq_oss.c index f25e3cc7ddfa..a1f1a2f00ccb 100644 --- a/sound/core/seq/oss/seq_oss.c +++ b/sound/core/seq/oss/seq_oss.c | |||
| @@ -220,6 +220,7 @@ static const struct file_operations seq_oss_f_ops = | |||
| 220 | .poll = odev_poll, | 220 | .poll = odev_poll, |
| 221 | .unlocked_ioctl = odev_ioctl, | 221 | .unlocked_ioctl = odev_ioctl, |
| 222 | .compat_ioctl = odev_ioctl_compat, | 222 | .compat_ioctl = odev_ioctl_compat, |
| 223 | .llseek = noop_llseek, | ||
| 223 | }; | 224 | }; |
| 224 | 225 | ||
| 225 | static int __init | 226 | static int __init |
diff --git a/sound/core/sound.c b/sound/core/sound.c index ac42af42b787..62a093efb453 100644 --- a/sound/core/sound.c +++ b/sound/core/sound.c | |||
| @@ -184,7 +184,8 @@ static int snd_open(struct inode *inode, struct file *file) | |||
| 184 | static const struct file_operations snd_fops = | 184 | static const struct file_operations snd_fops = |
| 185 | { | 185 | { |
| 186 | .owner = THIS_MODULE, | 186 | .owner = THIS_MODULE, |
| 187 | .open = snd_open | 187 | .open = snd_open, |
| 188 | .llseek = noop_llseek, | ||
| 188 | }; | 189 | }; |
| 189 | 190 | ||
| 190 | #ifdef CONFIG_SND_DYNAMIC_MINORS | 191 | #ifdef CONFIG_SND_DYNAMIC_MINORS |
diff --git a/sound/oss/msnd_pinnacle.c b/sound/oss/msnd_pinnacle.c index 2e48b17667d0..ca942f7cd231 100644 --- a/sound/oss/msnd_pinnacle.c +++ b/sound/oss/msnd_pinnacle.c | |||
| @@ -1117,6 +1117,7 @@ static const struct file_operations dev_fileops = { | |||
| 1117 | .unlocked_ioctl = dev_ioctl, | 1117 | .unlocked_ioctl = dev_ioctl, |
| 1118 | .open = dev_open, | 1118 | .open = dev_open, |
| 1119 | .release = dev_release, | 1119 | .release = dev_release, |
| 1120 | .llseek = noop_llseek, | ||
| 1120 | }; | 1121 | }; |
| 1121 | 1122 | ||
| 1122 | static int reset_dsp(void) | 1123 | static int reset_dsp(void) |
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index acc91daa1c55..4057d35343bb 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c | |||
| @@ -223,6 +223,7 @@ static const struct file_operations codec_reg_fops = { | |||
| 223 | .open = codec_reg_open_file, | 223 | .open = codec_reg_open_file, |
| 224 | .read = codec_reg_read_file, | 224 | .read = codec_reg_read_file, |
| 225 | .write = codec_reg_write_file, | 225 | .write = codec_reg_write_file, |
| 226 | .llseek = default_llseek, | ||
| 226 | }; | 227 | }; |
| 227 | 228 | ||
| 228 | static void soc_init_codec_debugfs(struct snd_soc_codec *codec) | 229 | static void soc_init_codec_debugfs(struct snd_soc_codec *codec) |
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 03cb7c05ebec..72a53d0a41e9 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c | |||
| @@ -1089,6 +1089,7 @@ static ssize_t dapm_widget_power_read_file(struct file *file, | |||
| 1089 | static const struct file_operations dapm_widget_power_fops = { | 1089 | static const struct file_operations dapm_widget_power_fops = { |
| 1090 | .open = dapm_widget_power_open_file, | 1090 | .open = dapm_widget_power_open_file, |
| 1091 | .read = dapm_widget_power_read_file, | 1091 | .read = dapm_widget_power_read_file, |
| 1092 | .llseek = default_llseek, | ||
| 1092 | }; | 1093 | }; |
| 1093 | 1094 | ||
| 1094 | void snd_soc_dapm_debugfs_init(struct snd_soc_codec *codec) | 1095 | void snd_soc_dapm_debugfs_init(struct snd_soc_codec *codec) |
diff --git a/sound/sound_core.c b/sound/sound_core.c index cb61317df509..c03bbaefdbc3 100644 --- a/sound/sound_core.c +++ b/sound/sound_core.c | |||
| @@ -165,6 +165,7 @@ static const struct file_operations soundcore_fops = | |||
| 165 | /* We must have an owner or the module locking fails */ | 165 | /* We must have an owner or the module locking fails */ |
| 166 | .owner = THIS_MODULE, | 166 | .owner = THIS_MODULE, |
| 167 | .open = soundcore_open, | 167 | .open = soundcore_open, |
| 168 | .llseek = noop_llseek, | ||
| 168 | }; | 169 | }; |
| 169 | 170 | ||
| 170 | /* | 171 | /* |
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 5186e728c53e..60e5e4612b0b 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c | |||
| @@ -1305,6 +1305,7 @@ static struct file_operations kvm_vcpu_fops = { | |||
| 1305 | .unlocked_ioctl = kvm_vcpu_ioctl, | 1305 | .unlocked_ioctl = kvm_vcpu_ioctl, |
| 1306 | .compat_ioctl = kvm_vcpu_ioctl, | 1306 | .compat_ioctl = kvm_vcpu_ioctl, |
| 1307 | .mmap = kvm_vcpu_mmap, | 1307 | .mmap = kvm_vcpu_mmap, |
| 1308 | .llseek = noop_llseek, | ||
| 1308 | }; | 1309 | }; |
| 1309 | 1310 | ||
| 1310 | /* | 1311 | /* |
| @@ -1774,6 +1775,7 @@ static struct file_operations kvm_vm_fops = { | |||
| 1774 | .compat_ioctl = kvm_vm_compat_ioctl, | 1775 | .compat_ioctl = kvm_vm_compat_ioctl, |
| 1775 | #endif | 1776 | #endif |
| 1776 | .mmap = kvm_vm_mmap, | 1777 | .mmap = kvm_vm_mmap, |
| 1778 | .llseek = noop_llseek, | ||
| 1777 | }; | 1779 | }; |
| 1778 | 1780 | ||
| 1779 | static int kvm_dev_ioctl_create_vm(void) | 1781 | static int kvm_dev_ioctl_create_vm(void) |
| @@ -1867,6 +1869,7 @@ out: | |||
| 1867 | static struct file_operations kvm_chardev_ops = { | 1869 | static struct file_operations kvm_chardev_ops = { |
| 1868 | .unlocked_ioctl = kvm_dev_ioctl, | 1870 | .unlocked_ioctl = kvm_dev_ioctl, |
| 1869 | .compat_ioctl = kvm_dev_ioctl, | 1871 | .compat_ioctl = kvm_dev_ioctl, |
| 1872 | .llseek = noop_llseek, | ||
| 1870 | }; | 1873 | }; |
| 1871 | 1874 | ||
| 1872 | static struct miscdevice kvm_dev = { | 1875 | static struct miscdevice kvm_dev = { |
