Преглед изворни кода

Merge branch 'llseek' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl

* 'llseek' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl:
  vfs: make no_llseek the default
  vfs: don't use BKL in default_llseek
  llseek: automatically add .llseek fop
  libfs: use generic_file_llseek for simple_attr
  mac80211: disallow seeks in minstrel debug code
  lirc: make chardev nonseekable
  viotape: use noop_llseek
  raw: use explicit llseek file operations
  ibmasmfs: use generic_file_llseek
  spufs: use llseek in all file operations
  arm/omap: use generic_file_llseek in iommu_debug
  lkdtm: use generic_file_llseek in debugfs
  net/wireless: use generic_file_llseek in debugfs
  drm: use noop_llseek
Linus Torvalds пре 14 година
родитељ
комит
092e0e7e52
100 измењених фајлова са 132 додато и 13 уклоњено
  1. 1 0
      Documentation/DocBook/drm.tmpl
  2. 1 0
      arch/arm/kernel/etm.c
  3. 2 1
      arch/arm/mach-msm/last_radio_log.c
  4. 1 0
      arch/arm/mach-msm/smd_debug.c
  5. 1 0
      arch/arm/plat-mxc/audmux-v2.c
  6. 2 0
      arch/arm/plat-omap/iommu-debug.c
  7. 1 0
      arch/avr32/boards/mimc200/fram.c
  8. 1 0
      arch/blackfin/kernel/kgdb_test.c
  9. 1 0
      arch/blackfin/mach-bf561/coreb.c
  10. 1 0
      arch/cris/arch-v10/drivers/ds1302.c
  11. 1 0
      arch/cris/arch-v10/drivers/gpio.c
  12. 1 0
      arch/cris/arch-v10/drivers/i2c.c
  13. 1 0
      arch/cris/arch-v10/drivers/pcf8563.c
  14. 2 1
      arch/cris/arch-v10/drivers/sync_serial.c
  15. 2 1
      arch/cris/arch-v32/drivers/cryptocop.c
  16. 1 0
      arch/cris/arch-v32/drivers/i2c.c
  17. 1 0
      arch/cris/arch-v32/drivers/mach-a3/gpio.c
  18. 1 0
      arch/cris/arch-v32/drivers/mach-fs/gpio.c
  19. 1 0
      arch/cris/arch-v32/drivers/pcf8563.c
  20. 2 1
      arch/cris/arch-v32/drivers/sync_serial.c
  21. 1 0
      arch/cris/kernel/profile.c
  22. 2 0
      arch/ia64/kernel/salinfo.c
  23. 1 0
      arch/ia64/sn/kernel/sn2/sn_hwperf.c
  24. 1 0
      arch/m68k/bvme6000/rtc.c
  25. 1 0
      arch/m68k/mvme16x/rtc.c
  26. 2 1
      arch/mips/kernel/rtlx.c
  27. 2 1
      arch/mips/kernel/vpe.c
  28. 1 0
      arch/mips/sibyte/common/sb_tbprof.c
  29. 1 0
      arch/powerpc/kernel/lparcfg.c
  30. 3 0
      arch/powerpc/kernel/rtas_flash.c
  31. 1 0
      arch/powerpc/kernel/rtasd.c
  32. 1 0
      arch/powerpc/platforms/iseries/mf.c
  33. 2 1
      arch/powerpc/platforms/pseries/reconfig.c
  34. 1 0
      arch/powerpc/platforms/pseries/scanlog.c
  35. 1 0
      arch/s390/crypto/prng.c
  36. 1 0
      arch/s390/hypfs/hypfs_diag.c
  37. 1 0
      arch/s390/hypfs/hypfs_vm.c
  38. 1 0
      arch/s390/hypfs/inode.c
  39. 1 0
      arch/s390/kernel/debug.c
  40. 1 0
      arch/sh/boards/mach-landisk/gio.c
  41. 1 0
      arch/sparc/kernel/apc.c
  42. 1 0
      arch/sparc/kernel/mdesc.c
  43. 1 0
      arch/tile/kernel/hardwall.c
  44. 1 0
      arch/um/drivers/harddog_kern.c
  45. 1 0
      arch/um/drivers/mconsole_kern.c
  46. 1 0
      arch/um/drivers/mmapper_kern.c
  47. 1 0
      arch/um/drivers/random.c
  48. 1 0
      arch/x86/kernel/apm_32.c
  49. 1 0
      arch/x86/kernel/cpu/mcheck/mce-severity.c
  50. 1 0
      arch/x86/kernel/cpu/mcheck/mce.c
  51. 1 0
      arch/x86/kernel/kdebugfs.c
  52. 1 0
      arch/x86/kernel/microcode_core.c
  53. 1 0
      arch/x86/kernel/tlb_uv.c
  54. 1 0
      arch/x86/xen/debugfs.c
  55. 1 0
      block/bsg.c
  56. 1 0
      drivers/acpi/apei/erst-dbg.c
  57. 1 0
      drivers/acpi/debugfs.c
  58. 1 0
      drivers/acpi/ec_sys.c
  59. 1 0
      drivers/acpi/event.c
  60. 2 1
      drivers/block/DAC960.c
  61. 1 0
      drivers/block/aoe/aoechr.c
  62. 1 0
      drivers/block/paride/pg.c
  63. 1 0
      drivers/block/paride/pt.c
  64. 1 0
      drivers/block/pktcdvd.c
  65. 10 0
      drivers/bluetooth/btmrvl_debugfs.c
  66. 1 0
      drivers/bluetooth/hci_vhci.c
  67. 1 0
      drivers/char/apm-emulation.c
  68. 1 0
      drivers/char/bfin-otp.c
  69. 1 0
      drivers/char/briq_panel.c
  70. 1 0
      drivers/char/bsr.c
  71. 2 1
      drivers/char/cs5535_gpio.c
  72. 1 0
      drivers/char/ds1302.c
  73. 1 0
      drivers/char/ds1620.c
  74. 1 0
      drivers/char/dsp56k.c
  75. 1 0
      drivers/char/dtlk.c
  76. 1 0
      drivers/char/genrtc.c
  77. 1 0
      drivers/char/hw_random/core.c
  78. 1 0
      drivers/char/ip2/ip2main.c
  79. 1 0
      drivers/char/ipmi/ipmi_devintf.c
  80. 1 0
      drivers/char/ipmi/ipmi_watchdog.c
  81. 1 0
      drivers/char/istallion.c
  82. 1 0
      drivers/char/lp.c
  83. 3 0
      drivers/char/mem.c
  84. 1 0
      drivers/char/misc.c
  85. 1 0
      drivers/char/mmtimer.c
  86. 6 3
      drivers/char/mspec.c
  87. 2 1
      drivers/char/mwave/mwavedd.c
  88. 1 0
      drivers/char/nwbutton.c
  89. 1 0
      drivers/char/pc8736x_gpio.c
  90. 1 0
      drivers/char/pcmcia/cm4000_cs.c
  91. 1 0
      drivers/char/pcmcia/cm4040_cs.c
  92. 2 0
      drivers/char/random.c
  93. 2 0
      drivers/char/raw.c
  94. 1 0
      drivers/char/rio/rio_linux.c
  95. 1 0
      drivers/char/scx200_gpio.c
  96. 1 0
      drivers/char/snsc.c
  97. 1 0
      drivers/char/stallion.c
  98. 1 0
      drivers/char/sx.c
  99. 1 0
      drivers/char/sysrq.c
  100. 1 0
      drivers/char/tb0219.c

+ 1 - 0
Documentation/DocBook/drm.tmpl

@@ -136,6 +136,7 @@
 #ifdef CONFIG_COMPAT
 #ifdef CONFIG_COMPAT
 		.compat_ioctl = i915_compat_ioctl,
 		.compat_ioctl = i915_compat_ioctl,
 #endif
 #endif
+		.llseek = noop_llseek,
 		},
 		},
 	.pci_driver = {
 	.pci_driver = {
 		.name = DRIVER_NAME,
 		.name = DRIVER_NAME,

+ 1 - 0
arch/arm/kernel/etm.c

@@ -329,6 +329,7 @@ static const struct file_operations etb_fops = {
 	.read = etb_read,
 	.read = etb_read,
 	.open = etb_open,
 	.open = etb_open,
 	.release = etb_release,
 	.release = etb_release,
+	.llseek = no_llseek,
 };
 };
 
 
 static struct miscdevice etb_miscdev = {
 static struct miscdevice etb_miscdev = {

+ 2 - 1
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,
 }
 }
 
 
 static struct file_operations last_radio_log_fops = {
 static struct file_operations last_radio_log_fops = {
-	.read = last_radio_log_read
+	.read = last_radio_log_read,
+	.llseek = default_llseek,
 };
 };
 
 
 void msm_init_last_radio_log(struct module *owner)
 void msm_init_last_radio_log(struct module *owner)

+ 1 - 0
arch/arm/mach-msm/smd_debug.c

@@ -212,6 +212,7 @@ static int debug_open(struct inode *inode, struct file *file)
 static const struct file_operations debug_ops = {
 static const struct file_operations debug_ops = {
 	.read = debug_read,
 	.read = debug_read,
 	.open = debug_open,
 	.open = debug_open,
+	.llseek = default_llseek,
 };
 };
 
 
 static void debug_create(const char *name, mode_t mode,
 static void debug_create(const char *name, mode_t mode,

+ 1 - 0
arch/arm/plat-mxc/audmux-v2.c

@@ -137,6 +137,7 @@ static ssize_t audmux_read_file(struct file *file, char __user *user_buf,
 static const struct file_operations audmux_debugfs_fops = {
 static const struct file_operations audmux_debugfs_fops = {
 	.open = audmux_open_file,
 	.open = audmux_open_file,
 	.read = audmux_read_file,
 	.read = audmux_read_file,
+	.llseek = default_llseek,
 };
 };
 
 
 static void audmux_debugfs_init(void)
 static void audmux_debugfs_init(void)

+ 2 - 0
arch/arm/plat-omap/iommu-debug.c

@@ -328,12 +328,14 @@ static int debug_open_generic(struct inode *inode, struct file *file)
 		.open = debug_open_generic,				\
 		.open = debug_open_generic,				\
 		.read = debug_read_##name,				\
 		.read = debug_read_##name,				\
 		.write = debug_write_##name,				\
 		.write = debug_write_##name,				\
+		.llseek = generic_file_llseek,				\
 	};
 	};
 
 
 #define DEBUG_FOPS_RO(name)						\
 #define DEBUG_FOPS_RO(name)						\
 	static const struct file_operations debug_##name##_fops = {	\
 	static const struct file_operations debug_##name##_fops = {	\
 		.open = debug_open_generic,				\
 		.open = debug_open_generic,				\
 		.read = debug_read_##name,				\
 		.read = debug_read_##name,				\
+		.llseek = generic_file_llseek,				\
 	};
 	};
 
 
 DEBUG_FOPS_RO(ver);
 DEBUG_FOPS_RO(ver);

+ 1 - 0
arch/avr32/boards/mimc200/fram.c

@@ -41,6 +41,7 @@ static int fram_mmap(struct file *filp, struct vm_area_struct *vma)
 static const struct file_operations fram_fops = {
 static const struct file_operations fram_fops = {
 	.owner			= THIS_MODULE,
 	.owner			= THIS_MODULE,
 	.mmap			= fram_mmap,
 	.mmap			= fram_mmap,
+	.llseek			= noop_llseek,
 };
 };
 
 
 #define FRAM_MINOR	0
 #define FRAM_MINOR	0

+ 1 - 0
arch/blackfin/kernel/kgdb_test.c

@@ -88,6 +88,7 @@ static const struct file_operations kgdb_test_proc_fops = {
 	.owner = THIS_MODULE,
 	.owner = THIS_MODULE,
 	.read  = kgdb_test_proc_read,
 	.read  = kgdb_test_proc_read,
 	.write = kgdb_test_proc_write,
 	.write = kgdb_test_proc_write,
+	.llseek = noop_llseek,
 };
 };
 
 
 static int __init kgdbtest_init(void)
 static int __init kgdbtest_init(void)

+ 1 - 0
arch/blackfin/mach-bf561/coreb.c

@@ -51,6 +51,7 @@ coreb_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
 static const struct file_operations coreb_fops = {
 static const struct file_operations coreb_fops = {
 	.owner          = THIS_MODULE,
 	.owner          = THIS_MODULE,
 	.unlocked_ioctl = coreb_ioctl,
 	.unlocked_ioctl = coreb_ioctl,
+	.llseek		= noop_llseek,
 };
 };
 
 
 static struct miscdevice coreb_dev = {
 static struct miscdevice coreb_dev = {

+ 1 - 0
arch/cris/arch-v10/drivers/ds1302.c

@@ -388,6 +388,7 @@ print_rtc_status(void)
 static const struct file_operations rtc_fops = {
 static const struct file_operations rtc_fops = {
 	.owner		= THIS_MODULE,
 	.owner		= THIS_MODULE,
 	.unlocked_ioctl = rtc_unlocked_ioctl,
 	.unlocked_ioctl = rtc_unlocked_ioctl,
+	.llseek		= noop_llseek,
 }; 
 }; 
 
 
 /* Probe for the chip by writing something to its RAM and try reading it back. */
 /* Probe for the chip by writing something to its RAM and try reading it back. */

+ 1 - 0
arch/cris/arch-v10/drivers/gpio.c

@@ -745,6 +745,7 @@ static const struct file_operations gpio_fops = {
 	.write          = gpio_write,
 	.write          = gpio_write,
 	.open           = gpio_open,
 	.open           = gpio_open,
 	.release        = gpio_release,
 	.release        = gpio_release,
+	.llseek		= noop_llseek,
 };
 };
 
 
 static void ioif_watcher(const unsigned int gpio_in_available,
 static void ioif_watcher(const unsigned int gpio_in_available,

+ 1 - 0
arch/cris/arch-v10/drivers/i2c.c

@@ -617,6 +617,7 @@ static const struct file_operations i2c_fops = {
 	.unlocked_ioctl	= i2c_ioctl,
 	.unlocked_ioctl	= i2c_ioctl,
 	.open		= i2c_open,
 	.open		= i2c_open,
 	.release	= i2c_release,
 	.release	= i2c_release,
+	.llseek		= noop_llseek,
 };
 };
 
 
 int __init
 int __init

+ 1 - 0
arch/cris/arch-v10/drivers/pcf8563.c

@@ -64,6 +64,7 @@ static int voltage_low;
 static const struct file_operations pcf8563_fops = {
 static const struct file_operations pcf8563_fops = {
 	.owner = THIS_MODULE,
 	.owner = THIS_MODULE,
 	.unlocked_ioctl = pcf8563_unlocked_ioctl,
 	.unlocked_ioctl = pcf8563_unlocked_ioctl,
+	.llseek		= noop_llseek,
 };
 };
 
 
 unsigned char
 unsigned char

+ 2 - 1
arch/cris/arch-v10/drivers/sync_serial.c

@@ -251,7 +251,8 @@ static const struct file_operations sync_serial_fops = {
 	.poll		= sync_serial_poll,
 	.poll		= sync_serial_poll,
 	.unlocked_ioctl	= sync_serial_ioctl,
 	.unlocked_ioctl	= sync_serial_ioctl,
 	.open		= sync_serial_open,
 	.open		= sync_serial_open,
-	.release	= sync_serial_release
+	.release	= sync_serial_release,
+	.llseek		= noop_llseek,
 };
 };
 
 
 static int __init etrax_sync_serial_init(void)
 static int __init etrax_sync_serial_init(void)

+ 2 - 1
arch/cris/arch-v32/drivers/cryptocop.c

@@ -281,7 +281,8 @@ const struct file_operations cryptocop_fops = {
 	.owner		= THIS_MODULE,
 	.owner		= THIS_MODULE,
 	.open		= cryptocop_open,
 	.open		= cryptocop_open,
 	.release	= cryptocop_release,
 	.release	= cryptocop_release,
-	.unlocked_ioctl = cryptocop_ioctl
+	.unlocked_ioctl = cryptocop_ioctl,
+	.llseek		= noop_llseek,
 };
 };
 
 
 
 

+ 1 - 0
arch/cris/arch-v32/drivers/i2c.c

@@ -698,6 +698,7 @@ static const struct file_operations i2c_fops = {
 	.unlocked_ioctl = i2c_ioctl,
 	.unlocked_ioctl = i2c_ioctl,
 	.open		= i2c_open,
 	.open		= i2c_open,
 	.release	= i2c_release,
 	.release	= i2c_release,
+	.llseek		= noop_llseek,
 };
 };
 
 
 static int __init i2c_init(void)
 static int __init i2c_init(void)

+ 1 - 0
arch/cris/arch-v32/drivers/mach-a3/gpio.c

@@ -894,6 +894,7 @@ static const struct file_operations gpio_fops = {
 	.write		= gpio_write,
 	.write		= gpio_write,
 	.open		= gpio_open,
 	.open		= gpio_open,
 	.release	= gpio_release,
 	.release	= gpio_release,
+	.llseek		= noop_llseek,
 };
 };
 
 
 #ifdef CONFIG_ETRAX_VIRTUAL_GPIO
 #ifdef CONFIG_ETRAX_VIRTUAL_GPIO

+ 1 - 0
arch/cris/arch-v32/drivers/mach-fs/gpio.c

@@ -871,6 +871,7 @@ static const struct file_operations gpio_fops = {
 	.write		= gpio_write,
 	.write		= gpio_write,
 	.open		= gpio_open,
 	.open		= gpio_open,
 	.release	= gpio_release,
 	.release	= gpio_release,
+	.llseek		= noop_llseek,
 };
 };
 
 
 #ifdef CONFIG_ETRAX_VIRTUAL_GPIO
 #ifdef CONFIG_ETRAX_VIRTUAL_GPIO

+ 1 - 0
arch/cris/arch-v32/drivers/pcf8563.c

@@ -60,6 +60,7 @@ static int voltage_low;
 static const struct file_operations pcf8563_fops = {
 static const struct file_operations pcf8563_fops = {
 	.owner		= THIS_MODULE,
 	.owner		= THIS_MODULE,
 	.unlocked_ioctl = pcf8563_unlocked_ioctl,
 	.unlocked_ioctl = pcf8563_unlocked_ioctl,
+	.llseek		= noop_llseek,
 };
 };
 
 
 unsigned char
 unsigned char

+ 2 - 1
arch/cris/arch-v32/drivers/sync_serial.c

@@ -248,7 +248,8 @@ static const struct file_operations sync_serial_fops = {
 	.poll		= sync_serial_poll,
 	.poll		= sync_serial_poll,
 	.unlocked_ioctl	= sync_serial_ioctl,
 	.unlocked_ioctl	= sync_serial_ioctl,
 	.open		= sync_serial_open,
 	.open		= sync_serial_open,
-	.release	= sync_serial_release
+	.release	= sync_serial_release,
+	.llseek		= noop_llseek,
 };
 };
 
 
 static int __init etrax_sync_serial_init(void)
 static int __init etrax_sync_serial_init(void)

+ 1 - 0
arch/cris/kernel/profile.c

@@ -59,6 +59,7 @@ write_cris_profile(struct file *file, const char __user *buf,
 static const struct file_operations cris_proc_profile_operations = {
 static const struct file_operations cris_proc_profile_operations = {
 	.read		= read_cris_profile,
 	.read		= read_cris_profile,
 	.write		= write_cris_profile,
 	.write		= write_cris_profile,
+	.llseek		= default_llseek,
 };
 };
 
 
 static int __init init_cris_profile(void)
 static int __init init_cris_profile(void)

+ 2 - 0
arch/ia64/kernel/salinfo.c

@@ -354,6 +354,7 @@ retry:
 static const struct file_operations salinfo_event_fops = {
 static const struct file_operations salinfo_event_fops = {
 	.open  = salinfo_event_open,
 	.open  = salinfo_event_open,
 	.read  = salinfo_event_read,
 	.read  = salinfo_event_read,
+	.llseek = noop_llseek,
 };
 };
 
 
 static int
 static int
@@ -571,6 +572,7 @@ static const struct file_operations salinfo_data_fops = {
 	.release = salinfo_log_release,
 	.release = salinfo_log_release,
 	.read    = salinfo_log_read,
 	.read    = salinfo_log_read,
 	.write   = salinfo_log_write,
 	.write   = salinfo_log_write,
+	.llseek  = default_llseek,
 };
 };
 
 
 static int __cpuinit
 static int __cpuinit

+ 1 - 0
arch/ia64/sn/kernel/sn2/sn_hwperf.c

@@ -860,6 +860,7 @@ error:
 
 
 static const struct file_operations sn_hwperf_fops = {
 static const struct file_operations sn_hwperf_fops = {
 	.unlocked_ioctl = sn_hwperf_ioctl,
 	.unlocked_ioctl = sn_hwperf_ioctl,
+	.llseek = noop_llseek,
 };
 };
 
 
 static struct miscdevice sn_hwperf_dev = {
 static struct miscdevice sn_hwperf_dev = {

+ 1 - 0
arch/m68k/bvme6000/rtc.c

@@ -155,6 +155,7 @@ static const struct file_operations rtc_fops = {
 	.unlocked_ioctl	= rtc_ioctl,
 	.unlocked_ioctl	= rtc_ioctl,
 	.open		= rtc_open,
 	.open		= rtc_open,
 	.release	= rtc_release,
 	.release	= rtc_release,
+	.llseek		= noop_llseek,
 };
 };
 
 
 static struct miscdevice rtc_dev = {
 static struct miscdevice rtc_dev = {

+ 1 - 0
arch/m68k/mvme16x/rtc.c

@@ -144,6 +144,7 @@ static const struct file_operations rtc_fops = {
 	.unlocked_ioctl	= rtc_ioctl,
 	.unlocked_ioctl	= rtc_ioctl,
 	.open		= rtc_open,
 	.open		= rtc_open,
 	.release	= rtc_release,
 	.release	= rtc_release,
+	.llseek		= noop_llseek,
 };
 };
 
 
 static struct miscdevice rtc_dev=
 static struct miscdevice rtc_dev=

+ 2 - 1
arch/mips/kernel/rtlx.c

@@ -468,7 +468,8 @@ static const struct file_operations rtlx_fops = {
 	.release = file_release,
 	.release = file_release,
 	.write =   file_write,
 	.write =   file_write,
 	.read =    file_read,
 	.read =    file_read,
-	.poll =    file_poll
+	.poll =    file_poll,
+	.llseek =  noop_llseek,
 };
 };
 
 
 static struct irqaction rtlx_irq = {
 static struct irqaction rtlx_irq = {

+ 2 - 1
arch/mips/kernel/vpe.c

@@ -1192,7 +1192,8 @@ static const struct file_operations vpe_fops = {
 	.owner = THIS_MODULE,
 	.owner = THIS_MODULE,
 	.open = vpe_open,
 	.open = vpe_open,
 	.release = vpe_release,
 	.release = vpe_release,
-	.write = vpe_write
+	.write = vpe_write,
+	.llseek = noop_llseek,
 };
 };
 
 
 /* module wrapper entry points */
 /* module wrapper entry points */

+ 1 - 0
arch/mips/sibyte/common/sb_tbprof.c

@@ -545,6 +545,7 @@ static const struct file_operations sbprof_tb_fops = {
 	.unlocked_ioctl	= sbprof_tb_ioctl,
 	.unlocked_ioctl	= sbprof_tb_ioctl,
 	.compat_ioctl	= sbprof_tb_ioctl,
 	.compat_ioctl	= sbprof_tb_ioctl,
 	.mmap		= NULL,
 	.mmap		= NULL,
+	.llseek		= default_llseek,
 };
 };
 
 
 static struct class *tb_class;
 static struct class *tb_class;

+ 1 - 0
arch/powerpc/kernel/lparcfg.c

@@ -780,6 +780,7 @@ static const struct file_operations lparcfg_fops = {
 	.write		= lparcfg_write,
 	.write		= lparcfg_write,
 	.open		= lparcfg_open,
 	.open		= lparcfg_open,
 	.release	= single_release,
 	.release	= single_release,
+	.llseek		= seq_lseek,
 };
 };
 
 
 static int __init lparcfg_init(void)
 static int __init lparcfg_init(void)

+ 3 - 0
arch/powerpc/kernel/rtas_flash.c

@@ -716,6 +716,7 @@ static const struct file_operations rtas_flash_operations = {
 	.write		= rtas_flash_write,
 	.write		= rtas_flash_write,
 	.open		= rtas_excl_open,
 	.open		= rtas_excl_open,
 	.release	= rtas_flash_release,
 	.release	= rtas_flash_release,
+	.llseek		= default_llseek,
 };
 };
 
 
 static const struct file_operations manage_flash_operations = {
 static const struct file_operations manage_flash_operations = {
@@ -724,6 +725,7 @@ static const struct file_operations manage_flash_operations = {
 	.write		= manage_flash_write,
 	.write		= manage_flash_write,
 	.open		= rtas_excl_open,
 	.open		= rtas_excl_open,
 	.release	= rtas_excl_release,
 	.release	= rtas_excl_release,
+	.llseek		= default_llseek,
 };
 };
 
 
 static const struct file_operations validate_flash_operations = {
 static const struct file_operations validate_flash_operations = {
@@ -732,6 +734,7 @@ static const struct file_operations validate_flash_operations = {
 	.write		= validate_flash_write,
 	.write		= validate_flash_write,
 	.open		= rtas_excl_open,
 	.open		= rtas_excl_open,
 	.release	= validate_flash_release,
 	.release	= validate_flash_release,
+	.llseek		= default_llseek,
 };
 };
 
 
 static int __init rtas_flash_init(void)
 static int __init rtas_flash_init(void)

+ 1 - 0
arch/powerpc/kernel/rtasd.c

@@ -354,6 +354,7 @@ static const struct file_operations proc_rtas_log_operations = {
 	.poll =		rtas_log_poll,
 	.poll =		rtas_log_poll,
 	.open =		rtas_log_open,
 	.open =		rtas_log_open,
 	.release =	rtas_log_release,
 	.release =	rtas_log_release,
+	.llseek =	noop_llseek,
 };
 };
 
 
 static int enable_surveillance(int timeout)
 static int enable_surveillance(int timeout)

+ 1 - 0
arch/powerpc/platforms/iseries/mf.c

@@ -1249,6 +1249,7 @@ out:
 
 
 static const struct file_operations proc_vmlinux_operations = {
 static const struct file_operations proc_vmlinux_operations = {
 	.write		= proc_mf_change_vmlinux,
 	.write		= proc_mf_change_vmlinux,
+	.llseek		= default_llseek,
 };
 };
 
 
 static int __init mf_proc_init(void)
 static int __init mf_proc_init(void)

+ 2 - 1
arch/powerpc/platforms/pseries/reconfig.c

@@ -539,7 +539,8 @@ out:
 }
 }
 
 
 static const struct file_operations ofdt_fops = {
 static const struct file_operations ofdt_fops = {
-	.write = ofdt_write
+	.write = ofdt_write,
+	.llseek = noop_llseek,
 };
 };
 
 
 /* create /proc/powerpc/ofdt write-only by root */
 /* create /proc/powerpc/ofdt write-only by root */

+ 1 - 0
arch/powerpc/platforms/pseries/scanlog.c

@@ -170,6 +170,7 @@ const struct file_operations scanlog_fops = {
 	.write		= scanlog_write,
 	.write		= scanlog_write,
 	.open		= scanlog_open,
 	.open		= scanlog_open,
 	.release	= scanlog_release,
 	.release	= scanlog_release,
+	.llseek		= noop_llseek,
 };
 };
 
 
 static int __init scanlog_init(void)
 static int __init scanlog_init(void)

+ 1 - 0
arch/s390/crypto/prng.c

@@ -152,6 +152,7 @@ static const struct file_operations prng_fops = {
 	.open		= &prng_open,
 	.open		= &prng_open,
 	.release	= NULL,
 	.release	= NULL,
 	.read		= &prng_read,
 	.read		= &prng_read,
+	.llseek		= noop_llseek,
 };
 };
 
 
 static struct miscdevice prng_dev = {
 static struct miscdevice prng_dev = {

+ 1 - 0
arch/s390/hypfs/hypfs_diag.c

@@ -618,6 +618,7 @@ static const struct file_operations dbfs_d204_ops = {
 	.open		= dbfs_d204_open,
 	.open		= dbfs_d204_open,
 	.read		= dbfs_d204_read,
 	.read		= dbfs_d204_read,
 	.release	= dbfs_d204_release,
 	.release	= dbfs_d204_release,
+	.llseek		= no_llseek,
 };
 };
 
 
 static int hypfs_dbfs_init(void)
 static int hypfs_dbfs_init(void)

+ 1 - 0
arch/s390/hypfs/hypfs_vm.c

@@ -275,6 +275,7 @@ static const struct file_operations dbfs_d2fc_ops = {
 	.open		= dbfs_d2fc_open,
 	.open		= dbfs_d2fc_open,
 	.read		= dbfs_d2fc_read,
 	.read		= dbfs_d2fc_read,
 	.release	= dbfs_d2fc_release,
 	.release	= dbfs_d2fc_release,
+	.llseek		= no_llseek,
 };
 };
 
 
 int hypfs_vm_init(void)
 int hypfs_vm_init(void)

+ 1 - 0
arch/s390/hypfs/inode.c

@@ -449,6 +449,7 @@ static const struct file_operations hypfs_file_ops = {
 	.write		= do_sync_write,
 	.write		= do_sync_write,
 	.aio_read	= hypfs_aio_read,
 	.aio_read	= hypfs_aio_read,
 	.aio_write	= hypfs_aio_write,
 	.aio_write	= hypfs_aio_write,
+	.llseek		= no_llseek,
 };
 };
 
 
 static struct file_system_type hypfs_type = {
 static struct file_system_type hypfs_type = {

+ 1 - 0
arch/s390/kernel/debug.c

@@ -174,6 +174,7 @@ static const struct file_operations debug_file_ops = {
 	.write   = debug_input,
 	.write   = debug_input,
 	.open    = debug_open,
 	.open    = debug_open,
 	.release = debug_close,
 	.release = debug_close,
+	.llseek  = no_llseek,
 };
 };
 
 
 static struct dentry *debug_debugfs_root_entry;
 static struct dentry *debug_debugfs_root_entry;

+ 1 - 0
arch/sh/boards/mach-landisk/gio.c

@@ -128,6 +128,7 @@ static const struct file_operations gio_fops = {
 	.open = gio_open,	/* open */
 	.open = gio_open,	/* open */
 	.release = gio_close,	/* release */
 	.release = gio_close,	/* release */
 	.unlocked_ioctl = gio_ioctl,
 	.unlocked_ioctl = gio_ioctl,
+	.llseek = noop_llseek,
 };
 };
 
 
 static int __init gio_init(void)
 static int __init gio_init(void)

+ 1 - 0
arch/sparc/kernel/apc.c

@@ -132,6 +132,7 @@ static const struct file_operations apc_fops = {
 	.unlocked_ioctl =	apc_ioctl,
 	.unlocked_ioctl =	apc_ioctl,
 	.open =			apc_open,
 	.open =			apc_open,
 	.release =		apc_release,
 	.release =		apc_release,
+	.llseek =		noop_llseek,
 };
 };
 
 
 static struct miscdevice apc_miscdev = { APC_MINOR, APC_DEVNAME, &apc_fops };
 static struct miscdevice apc_miscdev = { APC_MINOR, APC_DEVNAME, &apc_fops };

+ 1 - 0
arch/sparc/kernel/mdesc.c

@@ -890,6 +890,7 @@ static ssize_t mdesc_read(struct file *file, char __user *buf,
 static const struct file_operations mdesc_fops = {
 static const struct file_operations mdesc_fops = {
 	.read	= mdesc_read,
 	.read	= mdesc_read,
 	.owner	= THIS_MODULE,
 	.owner	= THIS_MODULE,
+	.llseek = noop_llseek,
 };
 };
 
 
 static struct miscdevice mdesc_misc = {
 static struct miscdevice mdesc_misc = {

+ 1 - 0
arch/tile/kernel/hardwall.c

@@ -774,6 +774,7 @@ static const struct file_operations dev_hardwall_fops = {
 #endif
 #endif
 	.flush          = hardwall_flush,
 	.flush          = hardwall_flush,
 	.release        = hardwall_release,
 	.release        = hardwall_release,
+	.llseek		= noop_llseek,
 };
 };
 
 
 static struct cdev hardwall_dev;
 static struct cdev hardwall_dev;

+ 1 - 0
arch/um/drivers/harddog_kern.c

@@ -167,6 +167,7 @@ static const struct file_operations harddog_fops = {
 	.unlocked_ioctl	= harddog_ioctl,
 	.unlocked_ioctl	= harddog_ioctl,
 	.open		= harddog_open,
 	.open		= harddog_open,
 	.release	= harddog_release,
 	.release	= harddog_release,
+	.llseek		= no_llseek,
 };
 };
 
 
 static struct miscdevice harddog_miscdev = {
 static struct miscdevice harddog_miscdev = {

+ 1 - 0
arch/um/drivers/mconsole_kern.c

@@ -843,6 +843,7 @@ static ssize_t mconsole_proc_write(struct file *file,
 static const struct file_operations mconsole_proc_fops = {
 static const struct file_operations mconsole_proc_fops = {
 	.owner		= THIS_MODULE,
 	.owner		= THIS_MODULE,
 	.write		= mconsole_proc_write,
 	.write		= mconsole_proc_write,
+	.llseek		= noop_llseek,
 };
 };
 
 
 static int create_proc_mconsole(void)
 static int create_proc_mconsole(void)

+ 1 - 0
arch/um/drivers/mmapper_kern.c

@@ -93,6 +93,7 @@ static const struct file_operations mmapper_fops = {
 	.mmap		= mmapper_mmap,
 	.mmap		= mmapper_mmap,
 	.open		= mmapper_open,
 	.open		= mmapper_open,
 	.release	= mmapper_release,
 	.release	= mmapper_release,
+	.llseek		= default_llseek,
 };
 };
 
 
 /*
 /*

+ 1 - 0
arch/um/drivers/random.c

@@ -100,6 +100,7 @@ static const struct file_operations rng_chrdev_ops = {
 	.owner		= THIS_MODULE,
 	.owner		= THIS_MODULE,
 	.open		= rng_dev_open,
 	.open		= rng_dev_open,
 	.read		= rng_dev_read,
 	.read		= rng_dev_read,
+	.llseek		= noop_llseek,
 };
 };
 
 
 /* rng_init shouldn't be called more than once at boot time */
 /* rng_init shouldn't be called more than once at boot time */

+ 1 - 0
arch/x86/kernel/apm_32.c

@@ -1926,6 +1926,7 @@ static const struct file_operations apm_bios_fops = {
 	.unlocked_ioctl	= do_ioctl,
 	.unlocked_ioctl	= do_ioctl,
 	.open		= do_open,
 	.open		= do_open,
 	.release	= do_release,
 	.release	= do_release,
+	.llseek		= noop_llseek,
 };
 };
 
 
 static struct miscdevice apm_device = {
 static struct miscdevice apm_device = {

+ 1 - 0
arch/x86/kernel/cpu/mcheck/mce-severity.c

@@ -192,6 +192,7 @@ static const struct file_operations severities_coverage_fops = {
 	.release	= seq_release,
 	.release	= seq_release,
 	.read		= seq_read,
 	.read		= seq_read,
 	.write		= severities_coverage_write,
 	.write		= severities_coverage_write,
+	.llseek		= seq_lseek,
 };
 };
 
 
 static int __init severities_debugfs_init(void)
 static int __init severities_debugfs_init(void)

+ 1 - 0
arch/x86/kernel/cpu/mcheck/mce.c

@@ -1665,6 +1665,7 @@ struct file_operations mce_chrdev_ops = {
 	.read			= mce_read,
 	.read			= mce_read,
 	.poll			= mce_poll,
 	.poll			= mce_poll,
 	.unlocked_ioctl		= mce_ioctl,
 	.unlocked_ioctl		= mce_ioctl,
+	.llseek		= no_llseek,
 };
 };
 EXPORT_SYMBOL_GPL(mce_chrdev_ops);
 EXPORT_SYMBOL_GPL(mce_chrdev_ops);
 
 

+ 1 - 0
arch/x86/kernel/kdebugfs.c

@@ -78,6 +78,7 @@ static int setup_data_open(struct inode *inode, struct file *file)
 static const struct file_operations fops_setup_data = {
 static const struct file_operations fops_setup_data = {
 	.read		= setup_data_read,
 	.read		= setup_data_read,
 	.open		= setup_data_open,
 	.open		= setup_data_open,
+	.llseek		= default_llseek,
 };
 };
 
 
 static int __init
 static int __init

+ 1 - 0
arch/x86/kernel/microcode_core.c

@@ -232,6 +232,7 @@ static const struct file_operations microcode_fops = {
 	.owner			= THIS_MODULE,
 	.owner			= THIS_MODULE,
 	.write			= microcode_write,
 	.write			= microcode_write,
 	.open			= microcode_open,
 	.open			= microcode_open,
+	.llseek		= no_llseek,
 };
 };
 
 
 static struct miscdevice microcode_dev = {
 static struct miscdevice microcode_dev = {

+ 1 - 0
arch/x86/kernel/tlb_uv.c

@@ -1285,6 +1285,7 @@ static const struct file_operations tunables_fops = {
 	.open		= tunables_open,
 	.open		= tunables_open,
 	.read		= tunables_read,
 	.read		= tunables_read,
 	.write		= tunables_write,
 	.write		= tunables_write,
+	.llseek		= default_llseek,
 };
 };
 
 
 static int __init uv_ptc_init(void)
 static int __init uv_ptc_init(void)

+ 1 - 0
arch/x86/xen/debugfs.c

@@ -106,6 +106,7 @@ static const struct file_operations u32_array_fops = {
 	.open	= u32_array_open,
 	.open	= u32_array_open,
 	.release= xen_array_release,
 	.release= xen_array_release,
 	.read	= u32_array_read,
 	.read	= u32_array_read,
+	.llseek = no_llseek,
 };
 };
 
 
 struct dentry *xen_debugfs_create_u32_array(const char *name, mode_t mode,
 struct dentry *xen_debugfs_create_u32_array(const char *name, mode_t mode,

+ 1 - 0
block/bsg.c

@@ -965,6 +965,7 @@ static const struct file_operations bsg_fops = {
 	.release	=	bsg_release,
 	.release	=	bsg_release,
 	.unlocked_ioctl	=	bsg_ioctl,
 	.unlocked_ioctl	=	bsg_ioctl,
 	.owner		=	THIS_MODULE,
 	.owner		=	THIS_MODULE,
+	.llseek		=	default_llseek,
 };
 };
 
 
 void bsg_unregister_queue(struct request_queue *q)
 void bsg_unregister_queue(struct request_queue *q)

+ 1 - 0
drivers/acpi/apei/erst-dbg.c

@@ -184,6 +184,7 @@ static const struct file_operations erst_dbg_ops = {
 	.read		= erst_dbg_read,
 	.read		= erst_dbg_read,
 	.write		= erst_dbg_write,
 	.write		= erst_dbg_write,
 	.unlocked_ioctl	= erst_dbg_ioctl,
 	.unlocked_ioctl	= erst_dbg_ioctl,
+	.llseek		= no_llseek,
 };
 };
 
 
 static struct miscdevice erst_dbg_dev = {
 static struct miscdevice erst_dbg_dev = {

+ 1 - 0
drivers/acpi/debugfs.c

@@ -69,6 +69,7 @@ static ssize_t cm_write(struct file *file, const char __user * user_buf,
 
 
 static const struct file_operations cm_fops = {
 static const struct file_operations cm_fops = {
 	.write = cm_write,
 	.write = cm_write,
+	.llseek = default_llseek,
 };
 };
 
 
 int __init acpi_debugfs_init(void)
 int __init acpi_debugfs_init(void)

+ 1 - 0
drivers/acpi/ec_sys.c

@@ -101,6 +101,7 @@ static struct file_operations acpi_ec_io_ops = {
 	.open  = acpi_ec_open_io,
 	.open  = acpi_ec_open_io,
 	.read  = acpi_ec_read_io,
 	.read  = acpi_ec_read_io,
 	.write = acpi_ec_write_io,
 	.write = acpi_ec_write_io,
+	.llseek = default_llseek,
 };
 };
 
 
 int acpi_ec_add_debugfs(struct acpi_ec *ec, unsigned int ec_device_count)
 int acpi_ec_add_debugfs(struct acpi_ec *ec, unsigned int ec_device_count)

+ 1 - 0
drivers/acpi/event.c

@@ -110,6 +110,7 @@ static const struct file_operations acpi_system_event_ops = {
 	.read = acpi_system_read_event,
 	.read = acpi_system_read_event,
 	.release = acpi_system_close_event,
 	.release = acpi_system_close_event,
 	.poll = acpi_system_poll_event,
 	.poll = acpi_system_poll_event,
+	.llseek = default_llseek,
 };
 };
 #endif	/* CONFIG_ACPI_PROC_EVENT */
 #endif	/* CONFIG_ACPI_PROC_EVENT */
 
 

+ 2 - 1
drivers/block/DAC960.c

@@ -7063,7 +7063,8 @@ static long DAC960_gam_ioctl(struct file *file, unsigned int Request,
 
 
 static const struct file_operations DAC960_gam_fops = {
 static const struct file_operations DAC960_gam_fops = {
 	.owner		= THIS_MODULE,
 	.owner		= THIS_MODULE,
-	.unlocked_ioctl	= DAC960_gam_ioctl
+	.unlocked_ioctl	= DAC960_gam_ioctl,
+	.llseek		= noop_llseek,
 };
 };
 
 
 static struct miscdevice DAC960_gam_dev = {
 static struct miscdevice DAC960_gam_dev = {

+ 1 - 0
drivers/block/aoe/aoechr.c

@@ -266,6 +266,7 @@ static const struct file_operations aoe_fops = {
 	.open = aoechr_open,
 	.open = aoechr_open,
 	.release = aoechr_rel,
 	.release = aoechr_rel,
 	.owner = THIS_MODULE,
 	.owner = THIS_MODULE,
+	.llseek = noop_llseek,
 };
 };
 
 
 static char *aoe_devnode(struct device *dev, mode_t *mode)
 static char *aoe_devnode(struct device *dev, mode_t *mode)

+ 1 - 0
drivers/block/paride/pg.c

@@ -235,6 +235,7 @@ static const struct file_operations pg_fops = {
 	.write = pg_write,
 	.write = pg_write,
 	.open = pg_open,
 	.open = pg_open,
 	.release = pg_release,
 	.release = pg_release,
+	.llseek = noop_llseek,
 };
 };
 
 
 static void pg_init_units(void)
 static void pg_init_units(void)

+ 1 - 0
drivers/block/paride/pt.c

@@ -240,6 +240,7 @@ static const struct file_operations pt_fops = {
 	.unlocked_ioctl = pt_ioctl,
 	.unlocked_ioctl = pt_ioctl,
 	.open = pt_open,
 	.open = pt_open,
 	.release = pt_release,
 	.release = pt_release,
+	.llseek = noop_llseek,
 };
 };
 
 
 /* sysfs class support */
 /* sysfs class support */

+ 1 - 0
drivers/block/pktcdvd.c

@@ -3046,6 +3046,7 @@ static const struct file_operations pkt_ctl_fops = {
 	.compat_ioctl	= pkt_ctl_compat_ioctl,
 	.compat_ioctl	= pkt_ctl_compat_ioctl,
 #endif
 #endif
 	.owner		= THIS_MODULE,
 	.owner		= THIS_MODULE,
+	.llseek		= no_llseek,
 };
 };
 
 
 static struct miscdevice pkt_misc = {
 static struct miscdevice pkt_misc = {

+ 10 - 0
drivers/bluetooth/btmrvl_debugfs.c

@@ -92,6 +92,7 @@ static const struct file_operations btmrvl_hscfgcmd_fops = {
 	.read	= btmrvl_hscfgcmd_read,
 	.read	= btmrvl_hscfgcmd_read,
 	.write	= btmrvl_hscfgcmd_write,
 	.write	= btmrvl_hscfgcmd_write,
 	.open	= btmrvl_open_generic,
 	.open	= btmrvl_open_generic,
+	.llseek = default_llseek,
 };
 };
 
 
 static ssize_t btmrvl_psmode_write(struct file *file, const char __user *ubuf,
 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 = {
 	.read	= btmrvl_psmode_read,
 	.read	= btmrvl_psmode_read,
 	.write	= btmrvl_psmode_write,
 	.write	= btmrvl_psmode_write,
 	.open	= btmrvl_open_generic,
 	.open	= btmrvl_open_generic,
+	.llseek = default_llseek,
 };
 };
 
 
 static ssize_t btmrvl_pscmd_write(struct file *file, const char __user *ubuf,
 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 = {
 	.read = btmrvl_pscmd_read,
 	.read = btmrvl_pscmd_read,
 	.write = btmrvl_pscmd_write,
 	.write = btmrvl_pscmd_write,
 	.open = btmrvl_open_generic,
 	.open = btmrvl_open_generic,
+	.llseek = default_llseek,
 };
 };
 
 
 static ssize_t btmrvl_gpiogap_write(struct file *file, const char __user *ubuf,
 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 = {
 	.read	= btmrvl_gpiogap_read,
 	.read	= btmrvl_gpiogap_read,
 	.write	= btmrvl_gpiogap_write,
 	.write	= btmrvl_gpiogap_write,
 	.open	= btmrvl_open_generic,
 	.open	= btmrvl_open_generic,
+	.llseek = default_llseek,
 };
 };
 
 
 static ssize_t btmrvl_hscmd_write(struct file *file, const char __user *ubuf,
 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 = {
 	.read	= btmrvl_hscmd_read,
 	.read	= btmrvl_hscmd_read,
 	.write	= btmrvl_hscmd_write,
 	.write	= btmrvl_hscmd_write,
 	.open	= btmrvl_open_generic,
 	.open	= btmrvl_open_generic,
+	.llseek = default_llseek,
 };
 };
 
 
 static ssize_t btmrvl_hsmode_write(struct file *file, const char __user *ubuf,
 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 = {
 	.read	= btmrvl_hsmode_read,
 	.read	= btmrvl_hsmode_read,
 	.write	= btmrvl_hsmode_write,
 	.write	= btmrvl_hsmode_write,
 	.open	= btmrvl_open_generic,
 	.open	= btmrvl_open_generic,
+	.llseek = default_llseek,
 };
 };
 
 
 static ssize_t btmrvl_curpsmode_read(struct file *file, char __user *userbuf,
 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,
 static const struct file_operations btmrvl_curpsmode_fops = {
 static const struct file_operations btmrvl_curpsmode_fops = {
 	.read	= btmrvl_curpsmode_read,
 	.read	= btmrvl_curpsmode_read,
 	.open	= btmrvl_open_generic,
 	.open	= btmrvl_open_generic,
+	.llseek = default_llseek,
 };
 };
 
 
 static ssize_t btmrvl_psstate_read(struct file *file, char __user * userbuf,
 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,
 static const struct file_operations btmrvl_psstate_fops = {
 static const struct file_operations btmrvl_psstate_fops = {
 	.read	= btmrvl_psstate_read,
 	.read	= btmrvl_psstate_read,
 	.open	= btmrvl_open_generic,
 	.open	= btmrvl_open_generic,
+	.llseek = default_llseek,
 };
 };
 
 
 static ssize_t btmrvl_hsstate_read(struct file *file, char __user *userbuf,
 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,
 static const struct file_operations btmrvl_hsstate_fops = {
 static const struct file_operations btmrvl_hsstate_fops = {
 	.read	= btmrvl_hsstate_read,
 	.read	= btmrvl_hsstate_read,
 	.open	= btmrvl_open_generic,
 	.open	= btmrvl_open_generic,
+	.llseek = default_llseek,
 };
 };
 
 
 static ssize_t btmrvl_txdnldready_read(struct file *file, char __user *userbuf,
 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,
 static const struct file_operations btmrvl_txdnldready_fops = {
 static const struct file_operations btmrvl_txdnldready_fops = {
 	.read	= btmrvl_txdnldready_read,
 	.read	= btmrvl_txdnldready_read,
 	.open	= btmrvl_open_generic,
 	.open	= btmrvl_open_generic,
+	.llseek = default_llseek,
 };
 };
 
 
 void btmrvl_debugfs_init(struct hci_dev *hdev)
 void btmrvl_debugfs_init(struct hci_dev *hdev)

+ 1 - 0
drivers/bluetooth/hci_vhci.c

@@ -282,6 +282,7 @@ static const struct file_operations vhci_fops = {
 	.poll		= vhci_poll,
 	.poll		= vhci_poll,
 	.open		= vhci_open,
 	.open		= vhci_open,
 	.release	= vhci_release,
 	.release	= vhci_release,
+	.llseek		= no_llseek,
 };
 };
 
 
 static struct miscdevice vhci_miscdev= {
 static struct miscdevice vhci_miscdev= {

+ 1 - 0
drivers/char/apm-emulation.c

@@ -403,6 +403,7 @@ static const struct file_operations apm_bios_fops = {
 	.unlocked_ioctl	= apm_ioctl,
 	.unlocked_ioctl	= apm_ioctl,
 	.open		= apm_open,
 	.open		= apm_open,
 	.release	= apm_release,
 	.release	= apm_release,
+	.llseek		= noop_llseek,
 };
 };
 
 
 static struct miscdevice apm_device = {
 static struct miscdevice apm_device = {

+ 1 - 0
drivers/char/bfin-otp.c

@@ -222,6 +222,7 @@ static const struct file_operations bfin_otp_fops = {
 	.unlocked_ioctl = bfin_otp_ioctl,
 	.unlocked_ioctl = bfin_otp_ioctl,
 	.read           = bfin_otp_read,
 	.read           = bfin_otp_read,
 	.write          = bfin_otp_write,
 	.write          = bfin_otp_write,
+	.llseek		= default_llseek,
 };
 };
 
 
 static struct miscdevice bfin_otp_misc_device = {
 static struct miscdevice bfin_otp_misc_device = {

+ 1 - 0
drivers/char/briq_panel.c

@@ -186,6 +186,7 @@ static const struct file_operations briq_panel_fops = {
 	.write		= briq_panel_write,
 	.write		= briq_panel_write,
 	.open		= briq_panel_open,
 	.open		= briq_panel_open,
 	.release	= briq_panel_release,
 	.release	= briq_panel_release,
+	.llseek		= noop_llseek,
 };
 };
 
 
 static struct miscdevice briq_panel_miscdev = {
 static struct miscdevice briq_panel_miscdev = {

+ 1 - 0
drivers/char/bsr.c

@@ -155,6 +155,7 @@ static const struct file_operations bsr_fops = {
 	.owner = THIS_MODULE,
 	.owner = THIS_MODULE,
 	.mmap  = bsr_mmap,
 	.mmap  = bsr_mmap,
 	.open  = bsr_open,
 	.open  = bsr_open,
+	.llseek = noop_llseek,
 };
 };
 
 
 static void bsr_cleanup_devs(void)
 static void bsr_cleanup_devs(void)

+ 2 - 1
drivers/char/cs5535_gpio.c

@@ -169,7 +169,8 @@ static const struct file_operations cs5535_gpio_fops = {
 	.owner	= THIS_MODULE,
 	.owner	= THIS_MODULE,
 	.write	= cs5535_gpio_write,
 	.write	= cs5535_gpio_write,
 	.read	= cs5535_gpio_read,
 	.read	= cs5535_gpio_read,
-	.open	= cs5535_gpio_open
+	.open	= cs5535_gpio_open,
+	.llseek = no_llseek,
 };
 };
 
 
 static int __init cs5535_gpio_init(void)
 static int __init cs5535_gpio_init(void)

+ 1 - 0
drivers/char/ds1302.c

@@ -289,6 +289,7 @@ get_rtc_status(char *buf)
 static const struct file_operations rtc_fops = {
 static const struct file_operations rtc_fops = {
 	.owner		= THIS_MODULE,
 	.owner		= THIS_MODULE,
 	.unlocked_ioctl	= rtc_ioctl,
 	.unlocked_ioctl	= rtc_ioctl,
+	.llseek		= noop_llseek,
 };
 };
 
 
 /* Probe for the chip by writing something to its RAM and try reading it back. */
 /* Probe for the chip by writing something to its RAM and try reading it back. */

+ 1 - 0
drivers/char/ds1620.c

@@ -357,6 +357,7 @@ static const struct file_operations ds1620_fops = {
 	.open		= ds1620_open,
 	.open		= ds1620_open,
 	.read		= ds1620_read,
 	.read		= ds1620_read,
 	.unlocked_ioctl	= ds1620_unlocked_ioctl,
 	.unlocked_ioctl	= ds1620_unlocked_ioctl,
+	.llseek		= no_llseek,
 };
 };
 
 
 static struct miscdevice ds1620_miscdev = {
 static struct miscdevice ds1620_miscdev = {

+ 1 - 0
drivers/char/dsp56k.c

@@ -483,6 +483,7 @@ static const struct file_operations dsp56k_fops = {
 	.unlocked_ioctl	= dsp56k_ioctl,
 	.unlocked_ioctl	= dsp56k_ioctl,
 	.open		= dsp56k_open,
 	.open		= dsp56k_open,
 	.release	= dsp56k_release,
 	.release	= dsp56k_release,
+	.llseek		= noop_llseek,
 };
 };
 
 
 
 

+ 1 - 0
drivers/char/dtlk.c

@@ -106,6 +106,7 @@ static const struct file_operations dtlk_fops =
 	.unlocked_ioctl	= dtlk_ioctl,
 	.unlocked_ioctl	= dtlk_ioctl,
 	.open		= dtlk_open,
 	.open		= dtlk_open,
 	.release	= dtlk_release,
 	.release	= dtlk_release,
+	.llseek		= no_llseek,
 };
 };
 
 
 /* local prototypes */
 /* local prototypes */

+ 1 - 0
drivers/char/genrtc.c

@@ -498,6 +498,7 @@ static const struct file_operations gen_rtc_fops = {
 	.unlocked_ioctl	= gen_rtc_unlocked_ioctl,
 	.unlocked_ioctl	= gen_rtc_unlocked_ioctl,
 	.open		= gen_rtc_open,
 	.open		= gen_rtc_open,
 	.release	= gen_rtc_release,
 	.release	= gen_rtc_release,
+	.llseek		= noop_llseek,
 };
 };
 
 
 static struct miscdevice rtc_gen_dev =
 static struct miscdevice rtc_gen_dev =

+ 1 - 0
drivers/char/hw_random/core.c

@@ -170,6 +170,7 @@ static const struct file_operations rng_chrdev_ops = {
 	.owner		= THIS_MODULE,
 	.owner		= THIS_MODULE,
 	.open		= rng_dev_open,
 	.open		= rng_dev_open,
 	.read		= rng_dev_read,
 	.read		= rng_dev_read,
+	.llseek		= noop_llseek,
 };
 };
 
 
 static struct miscdevice rng_miscdev = {
 static struct miscdevice rng_miscdev = {

+ 1 - 0
drivers/char/ip2/ip2main.c

@@ -237,6 +237,7 @@ static const struct file_operations ip2_ipl = {
 	.write		= ip2_ipl_write,
 	.write		= ip2_ipl_write,
 	.unlocked_ioctl	= ip2_ipl_ioctl,
 	.unlocked_ioctl	= ip2_ipl_ioctl,
 	.open		= ip2_ipl_open,
 	.open		= ip2_ipl_open,
+	.llseek		= noop_llseek,
 }; 
 }; 
 
 
 static unsigned long irq_counter;
 static unsigned long irq_counter;

+ 1 - 0
drivers/char/ipmi/ipmi_devintf.c

@@ -850,6 +850,7 @@ static const struct file_operations ipmi_fops = {
 	.release	= ipmi_release,
 	.release	= ipmi_release,
 	.fasync		= ipmi_fasync,
 	.fasync		= ipmi_fasync,
 	.poll		= ipmi_poll,
 	.poll		= ipmi_poll,
+	.llseek		= noop_llseek,
 };
 };
 
 
 #define DEVICE_NAME     "ipmidev"
 #define DEVICE_NAME     "ipmidev"

+ 1 - 0
drivers/char/ipmi/ipmi_watchdog.c

@@ -909,6 +909,7 @@ static const struct file_operations ipmi_wdog_fops = {
 	.open    = ipmi_open,
 	.open    = ipmi_open,
 	.release = ipmi_close,
 	.release = ipmi_close,
 	.fasync  = ipmi_fasync,
 	.fasync  = ipmi_fasync,
+	.llseek  = no_llseek,
 };
 };
 
 
 static struct miscdevice ipmi_wdog_miscdev = {
 static struct miscdevice ipmi_wdog_miscdev = {

+ 1 - 0
drivers/char/istallion.c

@@ -704,6 +704,7 @@ static const struct file_operations	stli_fsiomem = {
 	.read		= stli_memread,
 	.read		= stli_memread,
 	.write		= stli_memwrite,
 	.write		= stli_memwrite,
 	.unlocked_ioctl	= stli_memioctl,
 	.unlocked_ioctl	= stli_memioctl,
+	.llseek		= default_llseek,
 };
 };
 
 
 /*****************************************************************************/
 /*****************************************************************************/

+ 1 - 0
drivers/char/lp.c

@@ -749,6 +749,7 @@ static const struct file_operations lp_fops = {
 #ifdef CONFIG_PARPORT_1284
 #ifdef CONFIG_PARPORT_1284
 	.read		= lp_read,
 	.read		= lp_read,
 #endif
 #endif
+	.llseek		= noop_llseek,
 };
 };
 
 
 /* --- support for console on the line printer ----------------- */
 /* --- support for console on the line printer ----------------- */

+ 3 - 0
drivers/char/mem.c

@@ -805,6 +805,7 @@ static const struct file_operations full_fops = {
 static const struct file_operations oldmem_fops = {
 static const struct file_operations oldmem_fops = {
 	.read	= read_oldmem,
 	.read	= read_oldmem,
 	.open	= open_oldmem,
 	.open	= open_oldmem,
+	.llseek = default_llseek,
 };
 };
 #endif
 #endif
 
 
@@ -831,6 +832,7 @@ static ssize_t kmsg_write(struct file *file, const char __user *buf,
 
 
 static const struct file_operations kmsg_fops = {
 static const struct file_operations kmsg_fops = {
 	.write = kmsg_write,
 	.write = kmsg_write,
+	.llseek = noop_llseek,
 };
 };
 
 
 static const struct memdev {
 static const struct memdev {
@@ -882,6 +884,7 @@ static int memory_open(struct inode *inode, struct file *filp)
 
 
 static const struct file_operations memory_fops = {
 static const struct file_operations memory_fops = {
 	.open = memory_open,
 	.open = memory_open,
+	.llseek = noop_llseek,
 };
 };
 
 
 static char *mem_devnode(struct device *dev, mode_t *mode)
 static char *mem_devnode(struct device *dev, mode_t *mode)

+ 1 - 0
drivers/char/misc.c

@@ -162,6 +162,7 @@ static struct class *misc_class;
 static const struct file_operations misc_fops = {
 static const struct file_operations misc_fops = {
 	.owner		= THIS_MODULE,
 	.owner		= THIS_MODULE,
 	.open		= misc_open,
 	.open		= misc_open,
+	.llseek		= noop_llseek,
 };
 };
 
 
 /**
 /**

+ 1 - 0
drivers/char/mmtimer.c

@@ -73,6 +73,7 @@ static const struct file_operations mmtimer_fops = {
 	.owner = THIS_MODULE,
 	.owner = THIS_MODULE,
 	.mmap =	mmtimer_mmap,
 	.mmap =	mmtimer_mmap,
 	.unlocked_ioctl = mmtimer_ioctl,
 	.unlocked_ioctl = mmtimer_ioctl,
+	.llseek = noop_llseek,
 };
 };
 
 
 /*
 /*

+ 6 - 3
drivers/char/mspec.c

@@ -316,7 +316,8 @@ uncached_mmap(struct file *file, struct vm_area_struct *vma)
 
 
 static const struct file_operations fetchop_fops = {
 static const struct file_operations fetchop_fops = {
 	.owner = THIS_MODULE,
 	.owner = THIS_MODULE,
-	.mmap = fetchop_mmap
+	.mmap = fetchop_mmap,
+	.llseek = noop_llseek,
 };
 };
 
 
 static struct miscdevice fetchop_miscdev = {
 static struct miscdevice fetchop_miscdev = {
@@ -327,7 +328,8 @@ static struct miscdevice fetchop_miscdev = {
 
 
 static const struct file_operations cached_fops = {
 static const struct file_operations cached_fops = {
 	.owner = THIS_MODULE,
 	.owner = THIS_MODULE,
-	.mmap = cached_mmap
+	.mmap = cached_mmap,
+	.llseek = noop_llseek,
 };
 };
 
 
 static struct miscdevice cached_miscdev = {
 static struct miscdevice cached_miscdev = {
@@ -338,7 +340,8 @@ static struct miscdevice cached_miscdev = {
 
 
 static const struct file_operations uncached_fops = {
 static const struct file_operations uncached_fops = {
 	.owner = THIS_MODULE,
 	.owner = THIS_MODULE,
-	.mmap = uncached_mmap
+	.mmap = uncached_mmap,
+	.llseek = noop_llseek,
 };
 };
 
 
 static struct miscdevice uncached_miscdev = {
 static struct miscdevice uncached_miscdev = {

+ 2 - 1
drivers/char/mwave/mwavedd.c

@@ -479,7 +479,8 @@ static const struct file_operations mwave_fops = {
 	.write		= mwave_write,
 	.write		= mwave_write,
 	.unlocked_ioctl	= mwave_ioctl,
 	.unlocked_ioctl	= mwave_ioctl,
 	.open		= mwave_open,
 	.open		= mwave_open,
-	.release	= mwave_close
+	.release	= mwave_close,
+	.llseek		= default_llseek,
 };
 };
 
 
 
 

+ 1 - 0
drivers/char/nwbutton.c

@@ -182,6 +182,7 @@ static int button_read (struct file *filp, char __user *buffer,
 static const struct file_operations button_fops = {
 static const struct file_operations button_fops = {
 	.owner		= THIS_MODULE,
 	.owner		= THIS_MODULE,
 	.read		= button_read,
 	.read		= button_read,
+	.llseek		= noop_llseek,
 };
 };
 
 
 /* 
 /* 

+ 1 - 0
drivers/char/pc8736x_gpio.c

@@ -234,6 +234,7 @@ static const struct file_operations pc8736x_gpio_fileops = {
 	.open	= pc8736x_gpio_open,
 	.open	= pc8736x_gpio_open,
 	.write	= nsc_gpio_write,
 	.write	= nsc_gpio_write,
 	.read	= nsc_gpio_read,
 	.read	= nsc_gpio_read,
+	.llseek = no_llseek,
 };
 };
 
 
 static void __init pc8736x_init_shadow(void)
 static void __init pc8736x_init_shadow(void)

+ 1 - 0
drivers/char/pcmcia/cm4000_cs.c

@@ -1866,6 +1866,7 @@ static const struct file_operations cm4000_fops = {
 	.unlocked_ioctl	= cmm_ioctl,
 	.unlocked_ioctl	= cmm_ioctl,
 	.open	= cmm_open,
 	.open	= cmm_open,
 	.release= cmm_close,
 	.release= cmm_close,
+	.llseek = no_llseek,
 };
 };
 
 
 static struct pcmcia_device_id cm4000_ids[] = {
 static struct pcmcia_device_id cm4000_ids[] = {

+ 1 - 0
drivers/char/pcmcia/cm4040_cs.c

@@ -630,6 +630,7 @@ static const struct file_operations reader_fops = {
 	.open		= cm4040_open,
 	.open		= cm4040_open,
 	.release	= cm4040_close,
 	.release	= cm4040_close,
 	.poll		= cm4040_poll,
 	.poll		= cm4040_poll,
+	.llseek		= no_llseek,
 };
 };
 
 
 static struct pcmcia_device_id cm4040_ids[] = {
 static struct pcmcia_device_id cm4040_ids[] = {

+ 2 - 0
drivers/char/random.c

@@ -1165,6 +1165,7 @@ const struct file_operations random_fops = {
 	.poll  = random_poll,
 	.poll  = random_poll,
 	.unlocked_ioctl = random_ioctl,
 	.unlocked_ioctl = random_ioctl,
 	.fasync = random_fasync,
 	.fasync = random_fasync,
+	.llseek = noop_llseek,
 };
 };
 
 
 const struct file_operations urandom_fops = {
 const struct file_operations urandom_fops = {
@@ -1172,6 +1173,7 @@ const struct file_operations urandom_fops = {
 	.write = random_write,
 	.write = random_write,
 	.unlocked_ioctl = random_ioctl,
 	.unlocked_ioctl = random_ioctl,
 	.fasync = random_fasync,
 	.fasync = random_fasync,
+	.llseek = noop_llseek,
 };
 };
 
 
 /***************************************************************
 /***************************************************************

+ 2 - 0
drivers/char/raw.c

@@ -292,6 +292,7 @@ static const struct file_operations raw_fops = {
 	.open		= raw_open,
 	.open		= raw_open,
 	.release	= raw_release,
 	.release	= raw_release,
 	.unlocked_ioctl = raw_ioctl,
 	.unlocked_ioctl = raw_ioctl,
+	.llseek		= default_llseek,
 	.owner		= THIS_MODULE,
 	.owner		= THIS_MODULE,
 };
 };
 
 
@@ -302,6 +303,7 @@ static const struct file_operations raw_ctl_fops = {
 #endif
 #endif
 	.open		= raw_open,
 	.open		= raw_open,
 	.owner		= THIS_MODULE,
 	.owner		= THIS_MODULE,
+	.llseek		= noop_llseek,
 };
 };
 
 
 static struct cdev raw_cdev;
 static struct cdev raw_cdev;

+ 1 - 0
drivers/char/rio/rio_linux.c

@@ -242,6 +242,7 @@ static struct real_driver rio_real_driver = {
 static const struct file_operations rio_fw_fops = {
 static const struct file_operations rio_fw_fops = {
 	.owner = THIS_MODULE,
 	.owner = THIS_MODULE,
 	.unlocked_ioctl = rio_fw_ioctl,
 	.unlocked_ioctl = rio_fw_ioctl,
+	.llseek = noop_llseek,
 };
 };
 
 
 static struct miscdevice rio_fw_device = {
 static struct miscdevice rio_fw_device = {

+ 1 - 0
drivers/char/scx200_gpio.c

@@ -67,6 +67,7 @@ static const struct file_operations scx200_gpio_fileops = {
 	.read    = nsc_gpio_read,
 	.read    = nsc_gpio_read,
 	.open    = scx200_gpio_open,
 	.open    = scx200_gpio_open,
 	.release = scx200_gpio_release,
 	.release = scx200_gpio_release,
+	.llseek  = no_llseek,
 };
 };
 
 
 static struct cdev scx200_gpio_cdev;  /* use 1 cdev for all pins */
 static struct cdev scx200_gpio_cdev;  /* use 1 cdev for all pins */

+ 1 - 0
drivers/char/snsc.c

@@ -358,6 +358,7 @@ static const struct file_operations scdrv_fops = {
 	.poll =		scdrv_poll,
 	.poll =		scdrv_poll,
 	.open =		scdrv_open,
 	.open =		scdrv_open,
 	.release =	scdrv_release,
 	.release =	scdrv_release,
+	.llseek =	noop_llseek,
 };
 };
 
 
 static struct class *snsc_class;
 static struct class *snsc_class;

+ 1 - 0
drivers/char/stallion.c

@@ -608,6 +608,7 @@ static unsigned int	sc26198_baudtable[] = {
 static const struct file_operations	stl_fsiomem = {
 static const struct file_operations	stl_fsiomem = {
 	.owner		= THIS_MODULE,
 	.owner		= THIS_MODULE,
 	.unlocked_ioctl	= stl_memioctl,
 	.unlocked_ioctl	= stl_memioctl,
+	.llseek		= noop_llseek,
 };
 };
 
 
 static struct class *stallion_class;
 static struct class *stallion_class;

+ 1 - 0
drivers/char/sx.c

@@ -397,6 +397,7 @@ static struct real_driver sx_real_driver = {
 static const struct file_operations sx_fw_fops = {
 static const struct file_operations sx_fw_fops = {
 	.owner = THIS_MODULE,
 	.owner = THIS_MODULE,
 	.unlocked_ioctl = sx_fw_ioctl,
 	.unlocked_ioctl = sx_fw_ioctl,
+	.llseek = noop_llseek,
 };
 };
 
 
 static struct miscdevice sx_fw_device = {
 static struct miscdevice sx_fw_device = {

+ 1 - 0
drivers/char/sysrq.c

@@ -772,6 +772,7 @@ static ssize_t write_sysrq_trigger(struct file *file, const char __user *buf,
 
 
 static const struct file_operations proc_sysrq_trigger_operations = {
 static const struct file_operations proc_sysrq_trigger_operations = {
 	.write		= write_sysrq_trigger,
 	.write		= write_sysrq_trigger,
+	.llseek		= noop_llseek,
 };
 };
 
 
 static void sysrq_init_procfs(void)
 static void sysrq_init_procfs(void)

+ 1 - 0
drivers/char/tb0219.c

@@ -261,6 +261,7 @@ static const struct file_operations tb0219_fops = {
 	.write		= tanbac_tb0219_write,
 	.write		= tanbac_tb0219_write,
 	.open		= tanbac_tb0219_open,
 	.open		= tanbac_tb0219_open,
 	.release	= tanbac_tb0219_release,
 	.release	= tanbac_tb0219_release,
+	.llseek		= no_llseek,
 };
 };
 
 
 static void tb0219_restart(char *command)
 static void tb0219_restart(char *command)

Неке датотеке нису приказане због велике количине промена