Merge branch 'llseek' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl
Linus Torvalds [Fri, 22 Oct 2010 17:52:56 +0000 (10:52 -0700)]
* '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

370 files changed:
Documentation/DocBook/drm.tmpl
arch/arm/kernel/etm.c
arch/arm/mach-msm/last_radio_log.c
arch/arm/mach-msm/smd_debug.c
arch/arm/plat-mxc/audmux-v2.c
arch/arm/plat-omap/iommu-debug.c
arch/avr32/boards/mimc200/fram.c
arch/blackfin/kernel/kgdb_test.c
arch/blackfin/mach-bf561/coreb.c
arch/cris/arch-v10/drivers/ds1302.c
arch/cris/arch-v10/drivers/gpio.c
arch/cris/arch-v10/drivers/i2c.c
arch/cris/arch-v10/drivers/pcf8563.c
arch/cris/arch-v10/drivers/sync_serial.c
arch/cris/arch-v32/drivers/cryptocop.c
arch/cris/arch-v32/drivers/i2c.c
arch/cris/arch-v32/drivers/mach-a3/gpio.c
arch/cris/arch-v32/drivers/mach-fs/gpio.c
arch/cris/arch-v32/drivers/pcf8563.c
arch/cris/arch-v32/drivers/sync_serial.c
arch/cris/kernel/profile.c
arch/ia64/kernel/salinfo.c
arch/ia64/sn/kernel/sn2/sn_hwperf.c
arch/m68k/bvme6000/rtc.c
arch/m68k/mvme16x/rtc.c
arch/mips/kernel/rtlx.c
arch/mips/kernel/vpe.c
arch/mips/sibyte/common/sb_tbprof.c
arch/powerpc/kernel/lparcfg.c
arch/powerpc/kernel/rtas_flash.c
arch/powerpc/kernel/rtasd.c
arch/powerpc/platforms/iseries/mf.c
arch/powerpc/platforms/pseries/reconfig.c
arch/powerpc/platforms/pseries/scanlog.c
arch/s390/crypto/prng.c
arch/s390/hypfs/hypfs_diag.c
arch/s390/hypfs/hypfs_vm.c
arch/s390/hypfs/inode.c
arch/s390/kernel/debug.c
arch/sh/boards/mach-landisk/gio.c
arch/sparc/kernel/apc.c
arch/sparc/kernel/mdesc.c
arch/tile/kernel/hardwall.c
arch/um/drivers/harddog_kern.c
arch/um/drivers/mconsole_kern.c
arch/um/drivers/mmapper_kern.c
arch/um/drivers/random.c
arch/x86/kernel/apm_32.c
arch/x86/kernel/cpu/mcheck/mce-severity.c
arch/x86/kernel/cpu/mcheck/mce.c
arch/x86/kernel/kdebugfs.c
arch/x86/kernel/microcode_core.c
arch/x86/kernel/tlb_uv.c
arch/x86/xen/debugfs.c
block/bsg.c
drivers/acpi/apei/erst-dbg.c
drivers/acpi/debugfs.c
drivers/acpi/ec_sys.c
drivers/acpi/event.c
drivers/block/DAC960.c
drivers/block/aoe/aoechr.c
drivers/block/paride/pg.c
drivers/block/paride/pt.c
drivers/block/pktcdvd.c
drivers/bluetooth/btmrvl_debugfs.c
drivers/bluetooth/hci_vhci.c
drivers/char/apm-emulation.c
drivers/char/bfin-otp.c
drivers/char/briq_panel.c
drivers/char/bsr.c
drivers/char/cs5535_gpio.c
drivers/char/ds1302.c
drivers/char/ds1620.c
drivers/char/dsp56k.c
drivers/char/dtlk.c
drivers/char/genrtc.c
drivers/char/hw_random/core.c
drivers/char/ip2/ip2main.c
drivers/char/ipmi/ipmi_devintf.c
drivers/char/ipmi/ipmi_watchdog.c
drivers/char/istallion.c
drivers/char/lp.c
drivers/char/mem.c
drivers/char/misc.c
drivers/char/mmtimer.c
drivers/char/mspec.c
drivers/char/mwave/mwavedd.c
drivers/char/nwbutton.c
drivers/char/pc8736x_gpio.c
drivers/char/pcmcia/cm4000_cs.c
drivers/char/pcmcia/cm4040_cs.c
drivers/char/random.c
drivers/char/raw.c
drivers/char/rio/rio_linux.c
drivers/char/scx200_gpio.c
drivers/char/snsc.c
drivers/char/stallion.c
drivers/char/sx.c
drivers/char/sysrq.c
drivers/char/tb0219.c
drivers/char/tlclk.c
drivers/char/toshiba.c
drivers/char/uv_mmtimer.c
drivers/char/viotape.c
drivers/char/xilinx_hwicap/xilinx_hwicap.c
drivers/dma/coh901318.c
drivers/firewire/nosy.c
drivers/gpu/drm/drm_drv.c
drivers/gpu/drm/i810/i810_dma.c
drivers/gpu/drm/i810/i810_drv.c
drivers/gpu/drm/i830/i830_dma.c
drivers/gpu/drm/i830/i830_drv.c
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/mga/mga_drv.c
drivers/gpu/drm/nouveau/nouveau_drv.c
drivers/gpu/drm/r128/r128_drv.c
drivers/gpu/drm/radeon/radeon_drv.c
drivers/gpu/drm/savage/savage_drv.c
drivers/gpu/drm/sis/sis_drv.c
drivers/gpu/drm/tdfx/tdfx_drv.c
drivers/gpu/drm/via/via_drv.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
drivers/gpu/vga/vgaarb.c
drivers/hid/hid-debug.c
drivers/hid/hid-roccat.c
drivers/hid/hidraw.c
drivers/hid/usbhid/hiddev.c
drivers/hwmon/asus_atk0110.c
drivers/ide/ide-tape.c
drivers/idle/i7300_idle.c
drivers/infiniband/hw/ipath/ipath_diag.c
drivers/infiniband/hw/ipath/ipath_file_ops.c
drivers/infiniband/hw/ipath/ipath_fs.c
drivers/infiniband/hw/qib/qib_diag.c
drivers/infiniband/hw/qib/qib_file_ops.c
drivers/infiniband/hw/qib/qib_fs.c
drivers/input/evdev.c
drivers/input/input.c
drivers/input/joydev.c
drivers/input/misc/uinput.c
drivers/input/mousedev.c
drivers/input/serio/serio_raw.c
drivers/isdn/mISDN/timerdev.c
drivers/lguest/lguest_user.c
drivers/macintosh/ans-lcd.c
drivers/macintosh/via-pmu.c
drivers/md/dm-ioctl.c
drivers/media/IR/imon.c
drivers/media/IR/ir-lirc-codec.c
drivers/media/IR/lirc_dev.c
drivers/media/dvb/bt8xx/dst_ca.c
drivers/media/dvb/dvb-core/dmxdev.c
drivers/media/dvb/dvb-core/dvb_ca_en50221.c
drivers/media/dvb/dvb-core/dvb_frontend.c
drivers/media/dvb/dvb-core/dvb_net.c
drivers/media/dvb/dvb-core/dvbdev.c
drivers/media/dvb/firewire/firedtv-ci.c
drivers/media/dvb/ttpci/av7110.c
drivers/media/dvb/ttpci/av7110_av.c
drivers/media/dvb/ttpci/av7110_ca.c
drivers/media/dvb/ttpci/av7110_ir.c
drivers/mfd/ab3100-core.c
drivers/misc/hpilo.c
drivers/misc/ibmasm/ibmasmfs.c
drivers/misc/iwmc3200top/debugfs.c
drivers/misc/lkdtm.c
drivers/misc/phantom.c
drivers/misc/sgi-gru/grufile.c
drivers/mmc/core/debugfs.c
drivers/mtd/ubi/cdev.c
drivers/net/caif/caif_spi.c
drivers/net/cxgb4/cxgb4_main.c
drivers/net/ppp_generic.c
drivers/net/wimax/i2400m/debugfs.c
drivers/net/wireless/airo.c
drivers/net/wireless/ath/ath5k/debug.c
drivers/net/wireless/ath/ath9k/debug.c
drivers/net/wireless/ath/ath9k/htc_drv_main.c
drivers/net/wireless/b43/debugfs.c
drivers/net/wireless/b43legacy/debugfs.c
drivers/net/wireless/iwlwifi/iwl-3945-rs.c
drivers/net/wireless/iwlwifi/iwl-agn-rs.c
drivers/net/wireless/iwlwifi/iwl-debugfs.c
drivers/net/wireless/iwmc3200wifi/debugfs.c
drivers/net/wireless/iwmc3200wifi/sdio.c
drivers/net/wireless/libertas/debugfs.c
drivers/net/wireless/ray_cs.c
drivers/net/wireless/rt2x00/rt2x00debug.c
drivers/net/wireless/wl12xx/wl1251_debugfs.c
drivers/net/wireless/wl12xx/wl1271_debugfs.c
drivers/oprofile/oprofile_files.c
drivers/oprofile/oprofilefs.c
drivers/pci/pcie/aer/aer_inject.c
drivers/platform/x86/sony-laptop.c
drivers/rtc/rtc-m41t80.c
drivers/s390/block/dasd_eer.c
drivers/s390/char/fs3270.c
drivers/s390/char/monreader.c
drivers/s390/char/monwriter.c
drivers/s390/char/tape_char.c
drivers/s390/char/vmcp.c
drivers/s390/char/vmlogrdr.c
drivers/s390/char/vmwatchdog.c
drivers/s390/char/zcore.c
drivers/s390/cio/chsc_sch.c
drivers/s390/cio/css.c
drivers/s390/crypto/zcrypt_api.c
drivers/s390/scsi/zfcp_cfdc.c
drivers/sbus/char/display7seg.c
drivers/sbus/char/envctrl.c
drivers/scsi/3w-9xxx.c
drivers/scsi/3w-sas.c
drivers/scsi/3w-xxxx.c
drivers/scsi/aacraid/linit.c
drivers/scsi/ch.c
drivers/scsi/dpt_i2o.c
drivers/scsi/gdth.c
drivers/scsi/megaraid.c
drivers/scsi/megaraid/megaraid_mm.c
drivers/scsi/megaraid/megaraid_sas.c
drivers/scsi/mpt2sas/mpt2sas_ctl.c
drivers/scsi/osd/osd_uld.c
drivers/scsi/pmcraid.c
drivers/scsi/qla2xxx/qla_os.c
drivers/scsi/scsi_tgt_if.c
drivers/scsi/sg.c
drivers/serial/mfd.c
drivers/spi/dw_spi.c
drivers/spi/spidev.c
drivers/staging/comedi/comedi_fops.c
drivers/staging/crystalhd/crystalhd_lnx.c
drivers/staging/dream/camera/msm_camera.c
drivers/staging/dream/pmem.c
drivers/staging/dream/qdsp5/adsp_driver.c
drivers/staging/dream/qdsp5/audio_aac.c
drivers/staging/dream/qdsp5/audio_amrnb.c
drivers/staging/dream/qdsp5/audio_evrc.c
drivers/staging/dream/qdsp5/audio_in.c
drivers/staging/dream/qdsp5/audio_mp3.c
drivers/staging/dream/qdsp5/audio_out.c
drivers/staging/dream/qdsp5/audio_qcelp.c
drivers/staging/dream/qdsp5/evlog.h
drivers/staging/dream/qdsp5/snd.c
drivers/staging/frontier/alphatrack.c
drivers/staging/frontier/tranzport.c
drivers/staging/iio/industrialio-core.c
drivers/staging/iio/industrialio-ring.c
drivers/staging/lirc/lirc_imon.c
drivers/staging/lirc/lirc_it87.c
drivers/staging/lirc/lirc_sasem.c
drivers/staging/lirc/lirc_serial.c
drivers/staging/lirc/lirc_sir.c
drivers/staging/memrar/memrar_handler.c
drivers/staging/panel/panel.c
drivers/staging/tidspbridge/rmgr/drv_interface.c
drivers/telephony/ixj.c
drivers/telephony/phonedev.c
drivers/uio/uio.c
drivers/usb/class/cdc-wdm.c
drivers/usb/class/usblp.c
drivers/usb/class/usbtmc.c
drivers/usb/core/file.c
drivers/usb/gadget/f_hid.c
drivers/usb/gadget/printer.c
drivers/usb/host/ehci-dbg.c
drivers/usb/host/ohci-dbg.c
drivers/usb/image/mdc800.c
drivers/usb/misc/adutux.c
drivers/usb/misc/idmouse.c
drivers/usb/misc/iowarrior.c
drivers/usb/misc/ldusb.c
drivers/usb/misc/rio500.c
drivers/usb/misc/usblcd.c
drivers/usb/usb-skeleton.c
drivers/vhost/net.c
drivers/video/fbmem.c
drivers/video/mbx/mbxdebugfs.c
drivers/watchdog/ar7_wdt.c
drivers/watchdog/cpwd.c
drivers/watchdog/ep93xx_wdt.c
drivers/watchdog/omap_wdt.c
drivers/xen/evtchn.c
drivers/xen/xenfs/super.c
drivers/xen/xenfs/xenbus.c
fs/afs/mntpt.c
fs/autofs4/dev-ioctl.c
fs/binfmt_misc.c
fs/btrfs/super.c
fs/cachefiles/daemon.c
fs/char_dev.c
fs/coda/pioctl.c
fs/coda/psdev.c
fs/debugfs/file.c
fs/dlm/debug_fs.c
fs/dlm/plock.c
fs/dlm/user.c
fs/ecryptfs/file.c
fs/ecryptfs/miscdev.c
fs/eventfd.c
fs/eventpoll.c
fs/fifo.c
fs/fuse/control.c
fs/fuse/cuse.c
fs/gfs2/file.c
fs/hppfs/hppfs.c
fs/hugetlbfs/inode.c
fs/logfs/dir.c
fs/nfsd/nfsctl.c
fs/no-block.c
fs/notify/fanotify/fanotify_user.c
fs/notify/inotify/inotify_user.c
fs/ocfs2/dlmfs/dlmfs.c
fs/ocfs2/stack_user.c
fs/proc/base.c
fs/proc/proc_sysctl.c
fs/proc/root.c
fs/proc/task_mmu.c
fs/read_write.c
fs/romfs/super.c
fs/signalfd.c
fs/squashfs/dir.c
fs/timerfd.c
fs/ubifs/debug.c
include/linux/fs.h
ipc/mqueue.c
ipc/shm.c
kernel/configs.c
kernel/gcov/fs.c
kernel/kprobes.c
kernel/pm_qos_params.c
kernel/profile.c
kernel/trace/blktrace.c
kernel/trace/ftrace.c
kernel/trace/ring_buffer.c
kernel/trace/trace_events.c
kernel/trace/trace_stack.c
lib/dma-debug.c
net/atm/proc.c
net/dccp/probe.c
net/ipv4/tcp_probe.c
net/mac80211/debugfs.c
net/mac80211/debugfs_key.c
net/mac80211/debugfs_netdev.c
net/mac80211/debugfs_sta.c
net/mac80211/rate.c
net/mac80211/rc80211_minstrel_debugfs.c
net/mac80211/rc80211_minstrel_ht_debugfs.c
net/mac80211/rc80211_pid_debugfs.c
net/netfilter/xt_recent.c
net/nonet.c
net/rfkill/core.c
net/sctp/probe.c
net/socket.c
net/sunrpc/cache.c
net/wireless/debugfs.c
samples/kfifo/bytestream-example.c
samples/kfifo/inttype-example.c
samples/kfifo/record-example.c
samples/tracepoints/tracepoint-sample.c
security/apparmor/apparmorfs.c
security/inode.c
security/smack/smackfs.c
sound/core/seq/oss/seq_oss.c
sound/core/sound.c
sound/oss/msnd_pinnacle.c
sound/soc/soc-core.c
sound/soc/soc-dapm.c
sound/sound_core.c
virt/kvm/kvm_main.c

index 910c923..2861055 100644 (file)
 #ifdef CONFIG_COMPAT
                .compat_ioctl = i915_compat_ioctl,
 #endif
+               .llseek = noop_llseek,
                },
        .pci_driver = {
                .name = DRIVER_NAME,
index a48d512..11db628 100644 (file)
@@ -329,6 +329,7 @@ static const struct file_operations etb_fops = {
        .read = etb_read,
        .open = etb_open,
        .release = etb_release,
+       .llseek = no_llseek,
 };
 
 static struct miscdevice etb_miscdev = {
index b64ba5a..1e243f4 100644 (file)
@@ -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 = {
-       .read = last_radio_log_read
+       .read = last_radio_log_read,
+       .llseek = default_llseek,
 };
 
 void msm_init_last_radio_log(struct module *owner)
index 3b2dd71..f91c3b7 100644 (file)
@@ -212,6 +212,7 @@ static int debug_open(struct inode *inode, struct file *file)
 static const struct file_operations debug_ops = {
        .read = debug_read,
        .open = debug_open,
+       .llseek = default_llseek,
 };
 
 static void debug_create(const char *name, mode_t mode,
index 6292049..0be1ac7 100644 (file)
@@ -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 = {
        .open = audmux_open_file,
        .read = audmux_read_file,
+       .llseek = default_llseek,
 };
 
 static void audmux_debugfs_init(void)
index e6c0d53..f07cf2f 100644 (file)
@@ -328,12 +328,14 @@ static int debug_open_generic(struct inode *inode, struct file *file)
                .open = debug_open_generic,                             \
                .read = debug_read_##name,                              \
                .write = debug_write_##name,                            \
+               .llseek = generic_file_llseek,                          \
        };
 
 #define DEBUG_FOPS_RO(name)                                            \
        static const struct file_operations debug_##name##_fops = {     \
                .open = debug_open_generic,                             \
                .read = debug_read_##name,                              \
+               .llseek = generic_file_llseek,                          \
        };
 
 DEBUG_FOPS_RO(ver);
index 54fbd95..9764a1a 100644 (file)
@@ -41,6 +41,7 @@ static int fram_mmap(struct file *filp, struct vm_area_struct *vma)
 static const struct file_operations fram_fops = {
        .owner                  = THIS_MODULE,
        .mmap                   = fram_mmap,
+       .llseek                 = noop_llseek,
 };
 
 #define FRAM_MINOR     0
index 9a4b075..08c0236 100644 (file)
@@ -88,6 +88,7 @@ static const struct file_operations kgdb_test_proc_fops = {
        .owner = THIS_MODULE,
        .read  = kgdb_test_proc_read,
        .write = kgdb_test_proc_write,
+       .llseek = noop_llseek,
 };
 
 static int __init kgdbtest_init(void)
index deb2271..c6a4c8f 100644 (file)
@@ -51,6 +51,7 @@ coreb_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
 static const struct file_operations coreb_fops = {
        .owner          = THIS_MODULE,
        .unlocked_ioctl = coreb_ioctl,
+       .llseek         = noop_llseek,
 };
 
 static struct miscdevice coreb_dev = {
index 4b92ad0..3d655dc 100644 (file)
@@ -388,6 +388,7 @@ print_rtc_status(void)
 static const struct file_operations rtc_fops = {
        .owner          = THIS_MODULE,
        .unlocked_ioctl = rtc_unlocked_ioctl,
+       .llseek         = noop_llseek,
 }; 
 
 /* Probe for the chip by writing something to its RAM and try reading it back. */
index a07b6d2..a276f08 100644 (file)
@@ -745,6 +745,7 @@ static const struct file_operations gpio_fops = {
        .write          = gpio_write,
        .open           = gpio_open,
        .release        = gpio_release,
+       .llseek         = noop_llseek,
 };
 
 static void ioif_watcher(const unsigned int gpio_in_available,
index 77a9418..c413539 100644 (file)
@@ -617,6 +617,7 @@ static const struct file_operations i2c_fops = {
        .unlocked_ioctl = i2c_ioctl,
        .open           = i2c_open,
        .release        = i2c_release,
+       .llseek         = noop_llseek,
 };
 
 int __init
index 2f1dded..ea69fab 100644 (file)
@@ -64,6 +64,7 @@ static int voltage_low;
 static const struct file_operations pcf8563_fops = {
        .owner = THIS_MODULE,
        .unlocked_ioctl = pcf8563_unlocked_ioctl,
+       .llseek         = noop_llseek,
 };
 
 unsigned char
index 3d9fa07..399dc1e 100644 (file)
@@ -251,7 +251,8 @@ static const struct file_operations sync_serial_fops = {
        .poll           = sync_serial_poll,
        .unlocked_ioctl = sync_serial_ioctl,
        .open           = sync_serial_open,
-       .release        = sync_serial_release
+       .release        = sync_serial_release,
+       .llseek         = noop_llseek,
 };
 
 static int __init etrax_sync_serial_init(void)
index 0973d5a..c03bc3b 100644 (file)
@@ -281,7 +281,8 @@ const struct file_operations cryptocop_fops = {
        .owner          = THIS_MODULE,
        .open           = cryptocop_open,
        .release        = cryptocop_release,
-       .unlocked_ioctl = cryptocop_ioctl
+       .unlocked_ioctl = cryptocop_ioctl,
+       .llseek         = noop_llseek,
 };
 
 
index 5a3e900..ddb2399 100644 (file)
@@ -698,6 +698,7 @@ static const struct file_operations i2c_fops = {
        .unlocked_ioctl = i2c_ioctl,
        .open           = i2c_open,
        .release        = i2c_release,
+       .llseek         = noop_llseek,
 };
 
 static int __init i2c_init(void)
index 50d1885..c845831 100644 (file)
@@ -894,6 +894,7 @@ static const struct file_operations gpio_fops = {
        .write          = gpio_write,
        .open           = gpio_open,
        .release        = gpio_release,
+       .llseek         = noop_llseek,
 };
 
 #ifdef CONFIG_ETRAX_VIRTUAL_GPIO
index de8dca0..ee90d26 100644 (file)
@@ -871,6 +871,7 @@ static const struct file_operations gpio_fops = {
        .write          = gpio_write,
        .open           = gpio_open,
        .release        = gpio_release,
+       .llseek         = noop_llseek,
 };
 
 #ifdef CONFIG_ETRAX_VIRTUAL_GPIO
index bdcac9d..b6e4fc0 100644 (file)
@@ -60,6 +60,7 @@ static int voltage_low;
 static const struct file_operations pcf8563_fops = {
        .owner          = THIS_MODULE,
        .unlocked_ioctl = pcf8563_unlocked_ioctl,
+       .llseek         = noop_llseek,
 };
 
 unsigned char
index a01ae9f..c8637a9 100644 (file)
@@ -248,7 +248,8 @@ static const struct file_operations sync_serial_fops = {
        .poll           = sync_serial_poll,
        .unlocked_ioctl = sync_serial_ioctl,
        .open           = sync_serial_open,
-       .release        = sync_serial_release
+       .release        = sync_serial_release,
+       .llseek         = noop_llseek,
 };
 
 static int __init etrax_sync_serial_init(void)
index 195ec5f..b82e086 100644 (file)
@@ -59,6 +59,7 @@ write_cris_profile(struct file *file, const char __user *buf,
 static const struct file_operations cris_proc_profile_operations = {
        .read           = read_cris_profile,
        .write          = write_cris_profile,
+       .llseek         = default_llseek,
 };
 
 static int __init init_cris_profile(void)
index 45d7543..79802e5 100644 (file)
@@ -354,6 +354,7 @@ retry:
 static const struct file_operations salinfo_event_fops = {
        .open  = salinfo_event_open,
        .read  = salinfo_event_read,
+       .llseek = noop_llseek,
 };
 
 static int
@@ -571,6 +572,7 @@ static const struct file_operations salinfo_data_fops = {
        .release = salinfo_log_release,
        .read    = salinfo_log_read,
        .write   = salinfo_log_write,
+       .llseek  = default_llseek,
 };
 
 static int __cpuinit
index fa1ecee..30862c0 100644 (file)
@@ -860,6 +860,7 @@ error:
 
 static const struct file_operations sn_hwperf_fops = {
        .unlocked_ioctl = sn_hwperf_ioctl,
+       .llseek = noop_llseek,
 };
 
 static struct miscdevice sn_hwperf_dev = {
index cb8617b..1c4d4c7 100644 (file)
@@ -155,6 +155,7 @@ static const struct file_operations rtc_fops = {
        .unlocked_ioctl = rtc_ioctl,
        .open           = rtc_open,
        .release        = rtc_release,
+       .llseek         = noop_llseek,
 };
 
 static struct miscdevice rtc_dev = {
index 11ac6f6..39c79eb 100644 (file)
@@ -144,6 +144,7 @@ static const struct file_operations rtc_fops = {
        .unlocked_ioctl = rtc_ioctl,
        .open           = rtc_open,
        .release        = rtc_release,
+       .llseek         = noop_llseek,
 };
 
 static struct miscdevice rtc_dev=
index 26f9b9a..557ef72 100644 (file)
@@ -468,7 +468,8 @@ static const struct file_operations rtlx_fops = {
        .release = file_release,
        .write =   file_write,
        .read =    file_read,
-       .poll =    file_poll
+       .poll =    file_poll,
+       .llseek =  noop_llseek,
 };
 
 static struct irqaction rtlx_irq = {
index 2bd2151..3eb3cde 100644 (file)
@@ -1192,7 +1192,8 @@ static const struct file_operations vpe_fops = {
        .owner = THIS_MODULE,
        .open = vpe_open,
        .release = vpe_release,
-       .write = vpe_write
+       .write = vpe_write,
+       .llseek = noop_llseek,
 };
 
 /* module wrapper entry points */
index d4ed7a9..ca35b73 100644 (file)
@@ -545,6 +545,7 @@ static const struct file_operations sbprof_tb_fops = {
        .unlocked_ioctl = sbprof_tb_ioctl,
        .compat_ioctl   = sbprof_tb_ioctl,
        .mmap           = NULL,
+       .llseek         = default_llseek,
 };
 
 static struct class *tb_class;
index 8d9e3b9..1646836 100644 (file)
@@ -780,6 +780,7 @@ static const struct file_operations lparcfg_fops = {
        .write          = lparcfg_write,
        .open           = lparcfg_open,
        .release        = single_release,
+       .llseek         = seq_lseek,
 };
 
 static int __init lparcfg_init(void)
index 67a84d8..2b442e6 100644 (file)
@@ -716,6 +716,7 @@ static const struct file_operations rtas_flash_operations = {
        .write          = rtas_flash_write,
        .open           = rtas_excl_open,
        .release        = rtas_flash_release,
+       .llseek         = default_llseek,
 };
 
 static const struct file_operations manage_flash_operations = {
@@ -724,6 +725,7 @@ static const struct file_operations manage_flash_operations = {
        .write          = manage_flash_write,
        .open           = rtas_excl_open,
        .release        = rtas_excl_release,
+       .llseek         = default_llseek,
 };
 
 static const struct file_operations validate_flash_operations = {
@@ -732,6 +734,7 @@ static const struct file_operations validate_flash_operations = {
        .write          = validate_flash_write,
        .open           = rtas_excl_open,
        .release        = validate_flash_release,
+       .llseek         = default_llseek,
 };
 
 static int __init rtas_flash_init(void)
index 638883e..0438f81 100644 (file)
@@ -354,6 +354,7 @@ static const struct file_operations proc_rtas_log_operations = {
        .poll =         rtas_log_poll,
        .open =         rtas_log_open,
        .release =      rtas_log_release,
+       .llseek =       noop_llseek,
 };
 
 static int enable_surveillance(int timeout)
index 33e5fc7..42d0a88 100644 (file)
@@ -1249,6 +1249,7 @@ out:
 
 static const struct file_operations proc_vmlinux_operations = {
        .write          = proc_mf_change_vmlinux,
+       .llseek         = default_llseek,
 };
 
 static int __init mf_proc_init(void)
index 57ddbb4..1de2cbb 100644 (file)
@@ -539,7 +539,8 @@ out:
 }
 
 static const struct file_operations ofdt_fops = {
-       .write = ofdt_write
+       .write = ofdt_write,
+       .llseek = noop_llseek,
 };
 
 /* create /proc/powerpc/ofdt write-only by root */
index 80e9e76..5544572 100644 (file)
@@ -170,6 +170,7 @@ const struct file_operations scanlog_fops = {
        .write          = scanlog_write,
        .open           = scanlog_open,
        .release        = scanlog_release,
+       .llseek         = noop_llseek,
 };
 
 static int __init scanlog_init(void)
index aa819da..975e3ab 100644 (file)
@@ -152,6 +152,7 @@ static const struct file_operations prng_fops = {
        .open           = &prng_open,
        .release        = NULL,
        .read           = &prng_read,
+       .llseek         = noop_llseek,
 };
 
 static struct miscdevice prng_dev = {
index 1211bb1..020e51c 100644 (file)
@@ -618,6 +618,7 @@ static const struct file_operations dbfs_d204_ops = {
        .open           = dbfs_d204_open,
        .read           = dbfs_d204_read,
        .release        = dbfs_d204_release,
+       .llseek         = no_llseek,
 };
 
 static int hypfs_dbfs_init(void)
index ee5ab1a..26cf177 100644 (file)
@@ -275,6 +275,7 @@ static const struct file_operations dbfs_d2fc_ops = {
        .open           = dbfs_d2fc_open,
        .read           = dbfs_d2fc_read,
        .release        = dbfs_d2fc_release,
+       .llseek         = no_llseek,
 };
 
 int hypfs_vm_init(void)
index 98a4a4c..74d9867 100644 (file)
@@ -449,6 +449,7 @@ static const struct file_operations hypfs_file_ops = {
        .write          = do_sync_write,
        .aio_read       = hypfs_aio_read,
        .aio_write      = hypfs_aio_write,
+       .llseek         = no_llseek,
 };
 
 static struct file_system_type hypfs_type = {
index 9819226..5ad6bc0 100644 (file)
@@ -174,6 +174,7 @@ static const struct file_operations debug_file_ops = {
        .write   = debug_input,
        .open    = debug_open,
        .release = debug_close,
+       .llseek  = no_llseek,
 };
 
 static struct dentry *debug_debugfs_root_entry;
index 01e6abb..8132dff 100644 (file)
@@ -128,6 +128,7 @@ static const struct file_operations gio_fops = {
        .open = gio_open,       /* open */
        .release = gio_close,   /* release */
        .unlocked_ioctl = gio_ioctl,
+       .llseek = noop_llseek,
 };
 
 static int __init gio_init(void)
index 2c0046e..52de4a9 100644 (file)
@@ -132,6 +132,7 @@ static const struct file_operations apc_fops = {
        .unlocked_ioctl =       apc_ioctl,
        .open =                 apc_open,
        .release =              apc_release,
+       .llseek =               noop_llseek,
 };
 
 static struct miscdevice apc_miscdev = { APC_MINOR, APC_DEVNAME, &apc_fops };
index 83e85c2..6addb91 100644 (file)
@@ -890,6 +890,7 @@ static ssize_t mdesc_read(struct file *file, char __user *buf,
 static const struct file_operations mdesc_fops = {
        .read   = mdesc_read,
        .owner  = THIS_MODULE,
+       .llseek = noop_llseek,
 };
 
 static struct miscdevice mdesc_misc = {
index 584b965..1e54a78 100644 (file)
@@ -774,6 +774,7 @@ static const struct file_operations dev_hardwall_fops = {
 #endif
        .flush          = hardwall_flush,
        .release        = hardwall_release,
+       .llseek         = noop_llseek,
 };
 
 static struct cdev hardwall_dev;
index 8603627..2d0266d 100644 (file)
@@ -167,6 +167,7 @@ static const struct file_operations harddog_fops = {
        .unlocked_ioctl = harddog_ioctl,
        .open           = harddog_open,
        .release        = harddog_release,
+       .llseek         = no_llseek,
 };
 
 static struct miscdevice harddog_miscdev = {
index ebc6807..975613b 100644 (file)
@@ -843,6 +843,7 @@ static ssize_t mconsole_proc_write(struct file *file,
 static const struct file_operations mconsole_proc_fops = {
        .owner          = THIS_MODULE,
        .write          = mconsole_proc_write,
+       .llseek         = noop_llseek,
 };
 
 static int create_proc_mconsole(void)
index 7158393..8501e7d 100644 (file)
@@ -93,6 +93,7 @@ static const struct file_operations mmapper_fops = {
        .mmap           = mmapper_mmap,
        .open           = mmapper_open,
        .release        = mmapper_release,
+       .llseek         = default_llseek,
 };
 
 /*
index 4949044..981085a 100644 (file)
@@ -100,6 +100,7 @@ static const struct file_operations rng_chrdev_ops = {
        .owner          = THIS_MODULE,
        .open           = rng_dev_open,
        .read           = rng_dev_read,
+       .llseek         = noop_llseek,
 };
 
 /* rng_init shouldn't be called more than once at boot time */
index 4c9c67b..fbbc4da 100644 (file)
@@ -1926,6 +1926,7 @@ static const struct file_operations apm_bios_fops = {
        .unlocked_ioctl = do_ioctl,
        .open           = do_open,
        .release        = do_release,
+       .llseek         = noop_llseek,
 };
 
 static struct miscdevice apm_device = {
index 8a85dd1..1e8d66c 100644 (file)
@@ -192,6 +192,7 @@ static const struct file_operations severities_coverage_fops = {
        .release        = seq_release,
        .read           = seq_read,
        .write          = severities_coverage_write,
+       .llseek         = seq_lseek,
 };
 
 static int __init severities_debugfs_init(void)
index ed41562..7a35b72 100644 (file)
@@ -1665,6 +1665,7 @@ struct file_operations mce_chrdev_ops = {
        .read                   = mce_read,
        .poll                   = mce_poll,
        .unlocked_ioctl         = mce_ioctl,
+       .llseek         = no_llseek,
 };
 EXPORT_SYMBOL_GPL(mce_chrdev_ops);
 
index 8afd9f3..90fcf62 100644 (file)
@@ -78,6 +78,7 @@ static int setup_data_open(struct inode *inode, struct file *file)
 static const struct file_operations fops_setup_data = {
        .read           = setup_data_read,
        .open           = setup_data_open,
+       .llseek         = default_llseek,
 };
 
 static int __init
index fa6551d..0b3d37e 100644 (file)
@@ -232,6 +232,7 @@ static const struct file_operations microcode_fops = {
        .owner                  = THIS_MODULE,
        .write                  = microcode_write,
        .open                   = microcode_open,
+       .llseek         = no_llseek,
 };
 
 static struct miscdevice microcode_dev = {
index 312ef02..50ac949 100644 (file)
@@ -1285,6 +1285,7 @@ static const struct file_operations tunables_fops = {
        .open           = tunables_open,
        .read           = tunables_read,
        .write          = tunables_write,
+       .llseek         = default_llseek,
 };
 
 static int __init uv_ptc_init(void)
index 1304bce..7c0fedd 100644 (file)
@@ -106,6 +106,7 @@ static const struct file_operations u32_array_fops = {
        .open   = u32_array_open,
        .release= xen_array_release,
        .read   = u32_array_read,
+       .llseek = no_llseek,
 };
 
 struct dentry *xen_debugfs_create_u32_array(const char *name, mode_t mode,
index d3afe70..f20d6a7 100644 (file)
@@ -965,6 +965,7 @@ static const struct file_operations bsg_fops = {
        .release        =       bsg_release,
        .unlocked_ioctl =       bsg_ioctl,
        .owner          =       THIS_MODULE,
+       .llseek         =       default_llseek,
 };
 
 void bsg_unregister_queue(struct request_queue *q)
index da1228a..de73caf 100644 (file)
@@ -184,6 +184,7 @@ static const struct file_operations erst_dbg_ops = {
        .read           = erst_dbg_read,
        .write          = erst_dbg_write,
        .unlocked_ioctl = erst_dbg_ioctl,
+       .llseek         = no_llseek,
 };
 
 static struct miscdevice erst_dbg_dev = {
index 7de27d4..6355b57 100644 (file)
@@ -69,6 +69,7 @@ static ssize_t cm_write(struct file *file, const char __user * user_buf,
 
 static const struct file_operations cm_fops = {
        .write = cm_write,
+       .llseek = default_llseek,
 };
 
 int __init acpi_debugfs_init(void)
index 0e869b3..411620e 100644 (file)
@@ -101,6 +101,7 @@ static struct file_operations acpi_ec_io_ops = {
        .open  = acpi_ec_open_io,
        .read  = acpi_ec_read_io,
        .write = acpi_ec_write_io,
+       .llseek = default_llseek,
 };
 
 int acpi_ec_add_debugfs(struct acpi_ec *ec, unsigned int ec_device_count)
index d439314..85d9089 100644 (file)
@@ -110,6 +110,7 @@ static const struct file_operations acpi_system_event_ops = {
        .read = acpi_system_read_event,
        .release = acpi_system_close_event,
        .poll = acpi_system_poll_event,
+       .llseek = default_llseek,
 };
 #endif /* CONFIG_ACPI_PROC_EVENT */
 
index da0f6dd..1f286ab 100644 (file)
@@ -7063,7 +7063,8 @@ static long DAC960_gam_ioctl(struct file *file, unsigned int Request,
 
 static const struct file_operations DAC960_gam_fops = {
        .owner          = THIS_MODULE,
-       .unlocked_ioctl = DAC960_gam_ioctl
+       .unlocked_ioctl = DAC960_gam_ioctl,
+       .llseek         = noop_llseek,
 };
 
 static struct miscdevice DAC960_gam_dev = {
index 05d5ef1..146296c 100644 (file)
@@ -266,6 +266,7 @@ static const struct file_operations aoe_fops = {
        .open = aoechr_open,
        .release = aoechr_rel,
        .owner = THIS_MODULE,
+       .llseek = noop_llseek,
 };
 
 static char *aoe_devnode(struct device *dev, mode_t *mode)
index bed29cb..6b9a200 100644 (file)
@@ -235,6 +235,7 @@ static const struct file_operations pg_fops = {
        .write = pg_write,
        .open = pg_open,
        .release = pg_release,
+       .llseek = noop_llseek,
 };
 
 static void pg_init_units(void)
index e4dda28..7179f79 100644 (file)
@@ -240,6 +240,7 @@ static const struct file_operations pt_fops = {
        .unlocked_ioctl = pt_ioctl,
        .open = pt_open,
        .release = pt_release,
+       .llseek = noop_llseek,
 };
 
 /* sysfs class support */
index 044b84e..ef58fcc 100644 (file)
@@ -3046,6 +3046,7 @@ static const struct file_operations pkt_ctl_fops = {
        .compat_ioctl   = pkt_ctl_compat_ioctl,
 #endif
        .owner          = THIS_MODULE,
+       .llseek         = no_llseek,
 };
 
 static struct miscdevice pkt_misc = {
index 54739b0..fd6305b 100644 (file)
@@ -92,6 +92,7 @@ static const struct file_operations btmrvl_hscfgcmd_fops = {
        .read   = btmrvl_hscfgcmd_read,
        .write  = btmrvl_hscfgcmd_write,
        .open   = btmrvl_open_generic,
+       .llseek = default_llseek,
 };
 
 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,
        .write  = btmrvl_psmode_write,
        .open   = btmrvl_open_generic,
+       .llseek = default_llseek,
 };
 
 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,
        .write = btmrvl_pscmd_write,
        .open = btmrvl_open_generic,
+       .llseek = default_llseek,
 };
 
 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,
        .write  = btmrvl_gpiogap_write,
        .open   = btmrvl_open_generic,
+       .llseek = default_llseek,
 };
 
 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,
        .write  = btmrvl_hscmd_write,
        .open   = btmrvl_open_generic,
+       .llseek = default_llseek,
 };
 
 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,
        .write  = btmrvl_hsmode_write,
        .open   = btmrvl_open_generic,
+       .llseek = default_llseek,
 };
 
 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 = {
        .read   = btmrvl_curpsmode_read,
        .open   = btmrvl_open_generic,
+       .llseek = default_llseek,
 };
 
 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 = {
        .read   = btmrvl_psstate_read,
        .open   = btmrvl_open_generic,
+       .llseek = default_llseek,
 };
 
 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 = {
        .read   = btmrvl_hsstate_read,
        .open   = btmrvl_open_generic,
+       .llseek = default_llseek,
 };
 
 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 = {
        .read   = btmrvl_txdnldready_read,
        .open   = btmrvl_open_generic,
+       .llseek = default_llseek,
 };
 
 void btmrvl_debugfs_init(struct hci_dev *hdev)
index 3aa7b2a..67c180c 100644 (file)
@@ -282,6 +282,7 @@ static const struct file_operations vhci_fops = {
        .poll           = vhci_poll,
        .open           = vhci_open,
        .release        = vhci_release,
+       .llseek         = no_llseek,
 };
 
 static struct miscdevice vhci_miscdev= {
index 6a420ba..3022801 100644 (file)
@@ -403,6 +403,7 @@ static const struct file_operations apm_bios_fops = {
        .unlocked_ioctl = apm_ioctl,
        .open           = apm_open,
        .release        = apm_release,
+       .llseek         = noop_llseek,
 };
 
 static struct miscdevice apm_device = {
index 836d4f0..44660f1 100644 (file)
@@ -222,6 +222,7 @@ static const struct file_operations bfin_otp_fops = {
        .unlocked_ioctl = bfin_otp_ioctl,
        .read           = bfin_otp_read,
        .write          = bfin_otp_write,
+       .llseek         = default_llseek,
 };
 
 static struct miscdevice bfin_otp_misc_device = {
index d5fa113..f6718f0 100644 (file)
@@ -186,6 +186,7 @@ static const struct file_operations briq_panel_fops = {
        .write          = briq_panel_write,
        .open           = briq_panel_open,
        .release        = briq_panel_release,
+       .llseek         = noop_llseek,
 };
 
 static struct miscdevice briq_panel_miscdev = {
index 9191713..a4a6c2f 100644 (file)
@@ -155,6 +155,7 @@ static const struct file_operations bsr_fops = {
        .owner = THIS_MODULE,
        .mmap  = bsr_mmap,
        .open  = bsr_open,
+       .llseek = noop_llseek,
 };
 
 static void bsr_cleanup_devs(void)
index 4d830dc..0cf1e5f 100644 (file)
@@ -169,7 +169,8 @@ static const struct file_operations cs5535_gpio_fops = {
        .owner  = THIS_MODULE,
        .write  = cs5535_gpio_write,
        .read   = cs5535_gpio_read,
-       .open   = cs5535_gpio_open
+       .open   = cs5535_gpio_open,
+       .llseek = no_llseek,
 };
 
 static int __init cs5535_gpio_init(void)
index e3d72aa..ed8303f 100644 (file)
@@ -289,6 +289,7 @@ get_rtc_status(char *buf)
 static const struct file_operations rtc_fops = {
        .owner          = THIS_MODULE,
        .unlocked_ioctl = rtc_ioctl,
+       .llseek         = noop_llseek,
 };
 
 /* Probe for the chip by writing something to its RAM and try reading it back. */
index 9aa1fd0..aab9605 100644 (file)
@@ -357,6 +357,7 @@ static const struct file_operations ds1620_fops = {
        .open           = ds1620_open,
        .read           = ds1620_read,
        .unlocked_ioctl = ds1620_unlocked_ioctl,
+       .llseek         = no_llseek,
 };
 
 static struct miscdevice ds1620_miscdev = {
index b3c7562..052797b 100644 (file)
@@ -483,6 +483,7 @@ static const struct file_operations dsp56k_fops = {
        .unlocked_ioctl = dsp56k_ioctl,
        .open           = dsp56k_open,
        .release        = dsp56k_release,
+       .llseek         = noop_llseek,
 };
 
 
index 8dd040a..85156dd 100644 (file)
@@ -106,6 +106,7 @@ static const struct file_operations dtlk_fops =
        .unlocked_ioctl = dtlk_ioctl,
        .open           = dtlk_open,
        .release        = dtlk_release,
+       .llseek         = no_llseek,
 };
 
 /* local prototypes */
index 2aa69f9..f773a9d 100644 (file)
@@ -498,6 +498,7 @@ static const struct file_operations gen_rtc_fops = {
        .unlocked_ioctl = gen_rtc_unlocked_ioctl,
        .open           = gen_rtc_open,
        .release        = gen_rtc_release,
+       .llseek         = noop_llseek,
 };
 
 static struct miscdevice rtc_gen_dev =
index 3d9c61e..788da05 100644 (file)
@@ -170,6 +170,7 @@ static const struct file_operations rng_chrdev_ops = {
        .owner          = THIS_MODULE,
        .open           = rng_dev_open,
        .read           = rng_dev_read,
+       .llseek         = noop_llseek,
 };
 
 static struct miscdevice rng_miscdev = {
index dfbdf49..64a439c 100644 (file)
@@ -237,6 +237,7 @@ static const struct file_operations ip2_ipl = {
        .write          = ip2_ipl_write,
        .unlocked_ioctl = ip2_ipl_ioctl,
        .open           = ip2_ipl_open,
+       .llseek         = noop_llseek,
 }; 
 
 static unsigned long irq_counter;
index 44833de..1fc8876 100644 (file)
@@ -850,6 +850,7 @@ static const struct file_operations ipmi_fops = {
        .release        = ipmi_release,
        .fasync         = ipmi_fasync,
        .poll           = ipmi_poll,
+       .llseek         = noop_llseek,
 };
 
 #define DEVICE_NAME     "ipmidev"
index ed10b74..f4d334f 100644 (file)
@@ -909,6 +909,7 @@ static const struct file_operations ipmi_wdog_fops = {
        .open    = ipmi_open,
        .release = ipmi_close,
        .fasync  = ipmi_fasync,
+       .llseek  = no_llseek,
 };
 
 static struct miscdevice ipmi_wdog_miscdev = {
index be28391..667abd2 100644 (file)
@@ -704,6 +704,7 @@ static const struct file_operations stli_fsiomem = {
        .read           = stli_memread,
        .write          = stli_memwrite,
        .unlocked_ioctl = stli_memioctl,
+       .llseek         = default_llseek,
 };
 
 /*****************************************************************************/
index 598d278..97c3edb 100644 (file)
@@ -749,6 +749,7 @@ static const struct file_operations lp_fops = {
 #ifdef CONFIG_PARPORT_1284
        .read           = lp_read,
 #endif
+       .llseek         = noop_llseek,
 };
 
 /* --- support for console on the line printer ----------------- */
index 1f528fa..e985b1c 100644 (file)
@@ -805,6 +805,7 @@ static const struct file_operations full_fops = {
 static const struct file_operations oldmem_fops = {
        .read   = read_oldmem,
        .open   = open_oldmem,
+       .llseek = default_llseek,
 };
 #endif
 
@@ -831,6 +832,7 @@ static ssize_t kmsg_write(struct file *file, const char __user *buf,
 
 static const struct file_operations kmsg_fops = {
        .write = kmsg_write,
+       .llseek = noop_llseek,
 };
 
 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 = {
        .open = memory_open,
+       .llseek = noop_llseek,
 };
 
 static char *mem_devnode(struct device *dev, mode_t *mode)
index abdafd4..778273c 100644 (file)
@@ -162,6 +162,7 @@ static struct class *misc_class;
 static const struct file_operations misc_fops = {
        .owner          = THIS_MODULE,
        .open           = misc_open,
+       .llseek         = noop_llseek,
 };
 
 /**
index fe46978..c070b53 100644 (file)
@@ -73,6 +73,7 @@ static const struct file_operations mmtimer_fops = {
        .owner = THIS_MODULE,
        .mmap = mmtimer_mmap,
        .unlocked_ioctl = mmtimer_ioctl,
+       .llseek = noop_llseek,
 };
 
 /*
index ecb89d7..966a95b 100644 (file)
@@ -316,7 +316,8 @@ uncached_mmap(struct file *file, struct vm_area_struct *vma)
 
 static const struct file_operations fetchop_fops = {
        .owner = THIS_MODULE,
-       .mmap = fetchop_mmap
+       .mmap = fetchop_mmap,
+       .llseek = noop_llseek,
 };
 
 static struct miscdevice fetchop_miscdev = {
@@ -327,7 +328,8 @@ static struct miscdevice fetchop_miscdev = {
 
 static const struct file_operations cached_fops = {
        .owner = THIS_MODULE,
-       .mmap = cached_mmap
+       .mmap = cached_mmap,
+       .llseek = noop_llseek,
 };
 
 static struct miscdevice cached_miscdev = {
@@ -338,7 +340,8 @@ static struct miscdevice cached_miscdev = {
 
 static const struct file_operations uncached_fops = {
        .owner = THIS_MODULE,
-       .mmap = uncached_mmap
+       .mmap = uncached_mmap,
+       .llseek = noop_llseek,
 };
 
 static struct miscdevice uncached_miscdev = {
index e5df26b..1d82d58 100644 (file)
@@ -479,7 +479,8 @@ static const struct file_operations mwave_fops = {
        .write          = mwave_write,
        .unlocked_ioctl = mwave_ioctl,
        .open           = mwave_open,
-       .release        = mwave_close
+       .release        = mwave_close,
+       .llseek         = default_llseek,
 };
 
 
index 2604246..8994ce3 100644 (file)
@@ -182,6 +182,7 @@ static int button_read (struct file *filp, char __user *buffer,
 static const struct file_operations button_fops = {
        .owner          = THIS_MODULE,
        .read           = button_read,
+       .llseek         = noop_llseek,
 };
 
 /* 
index 8ecbcc1..b304ec0 100644 (file)
@@ -234,6 +234,7 @@ static const struct file_operations pc8736x_gpio_fileops = {
        .open   = pc8736x_gpio_open,
        .write  = nsc_gpio_write,
        .read   = nsc_gpio_read,
+       .llseek = no_llseek,
 };
 
 static void __init pc8736x_init_shadow(void)
index c4e52ec..6835c23 100644 (file)
@@ -1866,6 +1866,7 @@ static const struct file_operations cm4000_fops = {
        .unlocked_ioctl = cmm_ioctl,
        .open   = cmm_open,
        .release= cmm_close,
+       .llseek = no_llseek,
 };
 
 static struct pcmcia_device_id cm4000_ids[] = {
index d7c32cb..5d8d59e 100644 (file)
@@ -630,6 +630,7 @@ static const struct file_operations reader_fops = {
        .open           = cm4040_open,
        .release        = cm4040_close,
        .poll           = cm4040_poll,
+       .llseek         = no_llseek,
 };
 
 static struct pcmcia_device_id cm4040_ids[] = {
index caef35a..5a1aa64 100644 (file)
@@ -1165,6 +1165,7 @@ const struct file_operations random_fops = {
        .poll  = random_poll,
        .unlocked_ioctl = random_ioctl,
        .fasync = random_fasync,
+       .llseek = noop_llseek,
 };
 
 const struct file_operations urandom_fops = {
@@ -1172,6 +1173,7 @@ const struct file_operations urandom_fops = {
        .write = random_write,
        .unlocked_ioctl = random_ioctl,
        .fasync = random_fasync,
+       .llseek = noop_llseek,
 };
 
 /***************************************************************
index 24b2b91..bfe25ea 100644 (file)
@@ -292,6 +292,7 @@ static const struct file_operations raw_fops = {
        .open           = raw_open,
        .release        = raw_release,
        .unlocked_ioctl = raw_ioctl,
+       .llseek         = default_llseek,
        .owner          = THIS_MODULE,
 };
 
@@ -302,6 +303,7 @@ static const struct file_operations raw_ctl_fops = {
 #endif
        .open           = raw_open,
        .owner          = THIS_MODULE,
+       .llseek         = noop_llseek,
 };
 
 static struct cdev raw_cdev;
index e06a597..5e33293 100644 (file)
@@ -242,6 +242,7 @@ static struct real_driver rio_real_driver = {
 static const struct file_operations rio_fw_fops = {
        .owner = THIS_MODULE,
        .unlocked_ioctl = rio_fw_ioctl,
+       .llseek = noop_llseek,
 };
 
 static struct miscdevice rio_fw_device = {
index 99e5272..0bc135b 100644 (file)
@@ -67,6 +67,7 @@ static const struct file_operations scx200_gpio_fileops = {
        .read    = nsc_gpio_read,
        .open    = scx200_gpio_open,
        .release = scx200_gpio_release,
+       .llseek  = no_llseek,
 };
 
 static struct cdev scx200_gpio_cdev;  /* use 1 cdev for all pins */
index 208e257..5816b39 100644 (file)
@@ -358,6 +358,7 @@ static const struct file_operations scdrv_fops = {
        .poll =         scdrv_poll,
        .open =         scdrv_open,
        .release =      scdrv_release,
+       .llseek =       noop_llseek,
 };
 
 static struct class *snsc_class;
index f2167f8..8ef1649 100644 (file)
@@ -608,6 +608,7 @@ static unsigned int sc26198_baudtable[] = {
 static const struct file_operations    stl_fsiomem = {
        .owner          = THIS_MODULE,
        .unlocked_ioctl = stl_memioctl,
+       .llseek         = noop_llseek,
 };
 
 static struct class *stallion_class;
index 5b24db4..e53f168 100644 (file)
@@ -397,6 +397,7 @@ static struct real_driver sx_real_driver = {
 static const struct file_operations sx_fw_fops = {
        .owner = THIS_MODULE,
        .unlocked_ioctl = sx_fw_ioctl,
+       .llseek = noop_llseek,
 };
 
 static struct miscdevice sx_fw_device = {
index ef31bb8..f3019f5 100644 (file)
@@ -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 = {
        .write          = write_sysrq_trigger,
+       .llseek         = noop_llseek,
 };
 
 static void sysrq_init_procfs(void)
index cad4eb6..ad26418 100644 (file)
@@ -261,6 +261,7 @@ static const struct file_operations tb0219_fops = {
        .write          = tanbac_tb0219_write,
        .open           = tanbac_tb0219_open,
        .release        = tanbac_tb0219_release,
+       .llseek         = no_llseek,
 };
 
 static void tb0219_restart(char *command)
index e32cbf0..0c964cd 100644 (file)
@@ -267,6 +267,7 @@ static const struct file_operations tlclk_fops = {
        .read = tlclk_read,
        .open = tlclk_open,
        .release = tlclk_release,
+       .llseek = noop_llseek,
 
 };
 
index f8f09ab..014c9d9 100644 (file)
@@ -96,6 +96,7 @@ static long tosh_ioctl(struct file *, unsigned int,
 static const struct file_operations tosh_fops = {
        .owner          = THIS_MODULE,
        .unlocked_ioctl = tosh_ioctl,
+       .llseek         = noop_llseek,
 };
 
 static struct miscdevice tosh_device = {
index c7072ba..493b47a 100644 (file)
@@ -52,6 +52,7 @@ static const struct file_operations uv_mmtimer_fops = {
        .owner = THIS_MODULE,
        .mmap = uv_mmtimer_mmap,
        .unlocked_ioctl = uv_mmtimer_ioctl,
+       .llseek = noop_llseek,
 };
 
 /**
index 6f954a8..ad6e64a 100644 (file)
@@ -805,6 +805,7 @@ const struct file_operations viotap_fops = {
        .unlocked_ioctl =       viotap_unlocked_ioctl,
        .open =                 viotap_open,
        .release =              viotap_release,
+       .llseek =               noop_llseek,
 };
 
 /* Handle interrupt events for tape */
index d985204..9f2272e 100644 (file)
@@ -567,6 +567,7 @@ static const struct file_operations hwicap_fops = {
        .read = hwicap_read,
        .open = hwicap_open,
        .release = hwicap_release,
+       .llseek = noop_llseek,
 };
 
 static int __devinit hwicap_setup(struct device *dev, int id,
index 557e227..ae2b871 100644 (file)
@@ -157,6 +157,7 @@ static const struct file_operations coh901318_debugfs_status_operations = {
        .owner          = THIS_MODULE,
        .open           = coh901318_debugfs_open,
        .read           = coh901318_debugfs_read,
+       .llseek         = default_llseek,
 };
 
 
index 8528b10..bf184fb 100644 (file)
@@ -405,6 +405,7 @@ static const struct file_operations nosy_ops = {
        .poll =                 nosy_poll,
        .open =                 nosy_open,
        .release =              nosy_release,
+       .llseek =               noop_llseek,
 };
 
 #define PHY_PACKET_SIZE 12 /* 1 payload, 1 inverse, 1 ack = 3 quadlets */
index 84da748..ff6690f 100644 (file)
@@ -284,7 +284,8 @@ EXPORT_SYMBOL(drm_exit);
 /** File operations structure */
 static const struct file_operations drm_stub_fops = {
        .owner = THIS_MODULE,
-       .open = drm_stub_open
+       .open = drm_stub_open,
+       .llseek = noop_llseek,
 };
 
 static int __init drm_core_init(void)
index fb07e73..ff33e53 100644 (file)
@@ -119,6 +119,7 @@ static const struct file_operations i810_buffer_fops = {
        .unlocked_ioctl = i810_ioctl,
        .mmap = i810_mmap_buffers,
        .fasync = drm_fasync,
+       .llseek = noop_llseek,
 };
 
 static int i810_map_buffer(struct drm_buf *buf, struct drm_file *file_priv)
index b4250b2..fe69914 100644 (file)
@@ -63,6 +63,7 @@ static struct drm_driver driver = {
                 .mmap = drm_mmap,
                 .poll = drm_poll,
                 .fasync = drm_fasync,
+                .llseek = noop_llseek,
        },
 
        .pci_driver = {
index cc92c7e..ca6f31f 100644 (file)
@@ -121,6 +121,7 @@ static const struct file_operations i830_buffer_fops = {
        .unlocked_ioctl = i830_ioctl,
        .mmap = i830_mmap_buffers,
        .fasync = drm_fasync,
+       .llseek = noop_llseek,
 };
 
 static int i830_map_buffer(struct drm_buf *buf, struct drm_file *file_priv)
index a5c66aa..5b6298b 100644 (file)
@@ -74,6 +74,7 @@ static struct drm_driver driver = {
                 .mmap = drm_mmap,
                 .poll = drm_poll,
                 .fasync = drm_fasync,
+                .llseek = noop_llseek,
        },
 
        .pci_driver = {
index 5e43d70..0481497 100644 (file)
@@ -782,6 +782,7 @@ static const struct file_operations i915_wedged_fops = {
        .open = i915_wedged_open,
        .read = i915_wedged_read,
        .write = i915_wedged_write,
+       .llseek = default_llseek,
 };
 
 /* As the drm_debugfs_init() routines are called before dev->dev_private is
index 6dbe14c..895ab89 100644 (file)
@@ -548,6 +548,7 @@ static struct drm_driver driver = {
 #ifdef CONFIG_COMPAT
                 .compat_ioctl = i915_compat_ioctl,
 #endif
+                .llseek = noop_llseek,
        },
 
        .pci_driver = {
index 26d0d8c..ac64f0b 100644 (file)
@@ -75,6 +75,7 @@ static struct drm_driver driver = {
 #ifdef CONFIG_COMPAT
                .compat_ioctl = mga_compat_ioctl,
 #endif
+               .llseek = noop_llseek,
        },
        .pci_driver = {
                .name = DRIVER_NAME,
index 1de5eb5..eb15345 100644 (file)
@@ -393,6 +393,7 @@ static struct drm_driver driver = {
 #if defined(CONFIG_COMPAT)
                .compat_ioctl = nouveau_compat_ioctl,
 #endif
+               .llseek = noop_llseek,
        },
        .pci_driver = {
                .name = DRIVER_NAME,
index 1e2971f..d42c76c 100644 (file)
@@ -71,6 +71,7 @@ static struct drm_driver driver = {
 #ifdef CONFIG_COMPAT
                .compat_ioctl = r128_compat_ioctl,
 #endif
+               .llseek = noop_llseek,
        },
        .pci_driver = {
                .name = DRIVER_NAME,
index 795403b..29c1237 100644 (file)
@@ -219,6 +219,7 @@ static struct drm_driver driver_old = {
 #ifdef CONFIG_COMPAT
                 .compat_ioctl = radeon_compat_ioctl,
 #endif
+                .llseek = noop_llseek,
        },
 
        .pci_driver = {
index 021de44..2a2830f 100644 (file)
@@ -54,6 +54,7 @@ static struct drm_driver driver = {
                 .mmap = drm_mmap,
                 .poll = drm_poll,
                 .fasync = drm_fasync,
+                .llseek = noop_llseek,
        },
 
        .pci_driver = {
index 776bf9e..4bb10ef 100644 (file)
@@ -83,6 +83,7 @@ static struct drm_driver driver = {
                 .mmap = drm_mmap,
                 .poll = drm_poll,
                 .fasync = drm_fasync,
+                .llseek = noop_llseek,
        },
        .pci_driver = {
                 .name = DRIVER_NAME,
index ec5a43e..640567e 100644 (file)
@@ -52,6 +52,7 @@ static struct drm_driver driver = {
                 .mmap = drm_mmap,
                 .poll = drm_poll,
                 .fasync = drm_fasync,
+                .llseek = noop_llseek,
        },
        .pci_driver = {
                 .name = DRIVER_NAME,
index 7a1b210..b8984a5 100644 (file)
@@ -62,6 +62,7 @@ static struct drm_driver driver = {
                .mmap = drm_mmap,
                .poll = drm_poll,
                .fasync = drm_fasync,
+               .llseek = noop_llseek,
                },
        .pci_driver = {
                .name = DRIVER_NAME,
index a96ed6d..2ef93df 100644 (file)
@@ -820,6 +820,7 @@ static struct drm_driver driver = {
 #if defined(CONFIG_COMPAT)
                 .compat_ioctl = drm_compat_ioctl,
 #endif
+                .llseek = noop_llseek,
                 },
        .pci_driver = {
                       .name = VMWGFX_DRIVER_NAME,
index f366f96..c380c65 100644 (file)
@@ -1211,6 +1211,7 @@ static const struct file_operations vga_arb_device_fops = {
        .poll = vga_arb_fpoll,
        .open = vga_arb_open,
        .release = vga_arb_release,
+       .llseek = noop_llseek,
 };
 
 static struct miscdevice vga_arb_device = {
index 850d02a..61a3e57 100644 (file)
@@ -1051,6 +1051,7 @@ static const struct file_operations hid_debug_events_fops = {
        .read           = hid_debug_events_read,
        .poll           = hid_debug_events_poll,
        .release        = hid_debug_events_release,
+       .llseek         = noop_llseek,
 };
 
 
index f6e80c7..5a6879e 100644 (file)
@@ -384,6 +384,7 @@ static const struct file_operations roccat_ops = {
        .poll = roccat_poll,
        .open = roccat_open,
        .release = roccat_release,
+       .llseek = noop_llseek,
 };
 
 static int __init roccat_init(void)
index a3866b5..925992f 100644 (file)
@@ -340,6 +340,7 @@ static const struct file_operations hidraw_ops = {
        .open =         hidraw_open,
        .release =      hidraw_release,
        .unlocked_ioctl = hidraw_ioctl,
+       .llseek =       noop_llseek,
 };
 
 void hidraw_report_event(struct hid_device *hid, u8 *data, int len)
index 681e620..dfcb276 100644 (file)
@@ -847,6 +847,7 @@ static const struct file_operations hiddev_fops = {
 #ifdef CONFIG_COMPAT
        .compat_ioctl   = hiddev_compat_ioctl,
 #endif
+       .llseek         = noop_llseek,
 };
 
 static char *hiddev_devnode(struct device *dev, mode_t *mode)
index 653db1b..23b8555 100644 (file)
@@ -762,6 +762,7 @@ static const struct file_operations atk_debugfs_ggrp_fops = {
        .read           = atk_debugfs_ggrp_read,
        .open           = atk_debugfs_ggrp_open,
        .release        = atk_debugfs_ggrp_release,
+       .llseek         = no_llseek,
 };
 
 static void atk_debugfs_init(struct atk_data *data)
index 65f0bcf..7ecb1ad 100644 (file)
@@ -1902,6 +1902,7 @@ static const struct file_operations idetape_fops = {
        .unlocked_ioctl = idetape_chrdev_ioctl,
        .open           = idetape_chrdev_open,
        .release        = idetape_chrdev_release,
+       .llseek         = noop_llseek,
 };
 
 static int idetape_open(struct block_device *bdev, fmode_t mode)
index 15341fc..c976285 100644 (file)
@@ -536,6 +536,7 @@ static ssize_t stats_read_ul(struct file *fp, char __user *ubuf, size_t count,
 static const struct file_operations idle_fops = {
        .open   = stats_open_generic,
        .read   = stats_read_ul,
+       .llseek = default_llseek,
 };
 
 struct debugfs_file_info {
index d4ce8b6..daef61d 100644 (file)
@@ -65,7 +65,8 @@ static const struct file_operations diag_file_ops = {
        .write = ipath_diag_write,
        .read = ipath_diag_read,
        .open = ipath_diag_open,
-       .release = ipath_diag_release
+       .release = ipath_diag_release,
+       .llseek = default_llseek,
 };
 
 static ssize_t ipath_diagpkt_write(struct file *fp,
@@ -75,6 +76,7 @@ static ssize_t ipath_diagpkt_write(struct file *fp,
 static const struct file_operations diagpkt_file_ops = {
        .owner = THIS_MODULE,
        .write = ipath_diagpkt_write,
+       .llseek = noop_llseek,
 };
 
 static atomic_t diagpkt_count = ATOMIC_INIT(0);
index 65eb892..6078992 100644 (file)
@@ -63,7 +63,8 @@ static const struct file_operations ipath_file_ops = {
        .open = ipath_open,
        .release = ipath_close,
        .poll = ipath_poll,
-       .mmap = ipath_mmap
+       .mmap = ipath_mmap,
+       .llseek = noop_llseek,
 };
 
 /*
index 2fca708..d13e726 100644 (file)
@@ -103,6 +103,7 @@ static ssize_t atomic_stats_read(struct file *file, char __user *buf,
 
 static const struct file_operations atomic_stats_ops = {
        .read = atomic_stats_read,
+       .llseek = default_llseek,
 };
 
 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,
 
 static const struct file_operations atomic_counters_ops = {
        .read = atomic_counters_read,
+       .llseek = default_llseek,
 };
 
 static ssize_t flash_read(struct file *file, char __user *buf,
@@ -224,6 +226,7 @@ bail:
 static const struct file_operations flash_ops = {
        .read = flash_read,
        .write = flash_write,
+       .llseek = default_llseek,
 };
 
 static int create_device_files(struct super_block *sb,
index 05dcf0d..204c4dd 100644 (file)
@@ -136,7 +136,8 @@ static const struct file_operations diag_file_ops = {
        .write = qib_diag_write,
        .read = qib_diag_read,
        .open = qib_diag_open,
-       .release = qib_diag_release
+       .release = qib_diag_release,
+       .llseek = default_llseek,
 };
 
 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,
 static const struct file_operations diagpkt_file_ops = {
        .owner = THIS_MODULE,
        .write = qib_diagpkt_write,
+       .llseek = noop_llseek,
 };
 
 int qib_diag_add(struct qib_devdata *dd)
index 6b11645..aa2be21 100644 (file)
@@ -63,7 +63,8 @@ static const struct file_operations qib_file_ops = {
        .open = qib_open,
        .release = qib_close,
        .poll = qib_poll,
-       .mmap = qib_mmapf
+       .mmap = qib_mmapf,
+       .llseek = noop_llseek,
 };
 
 /*
index 9f989c0..a0e6613 100644 (file)
@@ -367,6 +367,7 @@ bail:
 static const struct file_operations flash_ops = {
        .read = flash_read,
        .write = flash_write,
+       .llseek = default_llseek,
 };
 
 static int add_cntr_files(struct super_block *sb, struct qib_devdata *dd)
index af9ee31..535fea4 100644 (file)
@@ -767,7 +767,8 @@ static const struct file_operations evdev_fops = {
        .compat_ioctl   = evdev_ioctl_compat,
 #endif
        .fasync         = evdev_fasync,
-       .flush          = evdev_flush
+       .flush          = evdev_flush,
+       .llseek         = no_llseek,
 };
 
 static int evdev_install_chrdev(struct evdev *evdev)
index ab69820..7919c25 100644 (file)
@@ -2047,6 +2047,7 @@ out:
 static const struct file_operations input_fops = {
        .owner = THIS_MODULE,
        .open = input_open_file,
+       .llseek = noop_llseek,
 };
 
 static int __init input_init(void)
index 22239e9..9d424ce 100644 (file)
@@ -739,6 +739,7 @@ static const struct file_operations joydev_fops = {
        .compat_ioctl   = joydev_compat_ioctl,
 #endif
        .fasync         = joydev_fasync,
+       .llseek         = no_llseek,
 };
 
 static int joydev_install_chrdev(struct joydev *joydev)
index 3606985..b941078 100644 (file)
@@ -811,6 +811,7 @@ static const struct file_operations uinput_fops = {
 #ifdef CONFIG_COMPAT
        .compat_ioctl   = uinput_compat_ioctl,
 #endif
+       .llseek         = no_llseek,
 };
 
 static struct miscdevice uinput_misc = {
index d528a2d..31ec726 100644 (file)
@@ -792,6 +792,7 @@ static const struct file_operations mousedev_fops = {
        .open =         mousedev_open,
        .release =      mousedev_release,
        .fasync =       mousedev_fasync,
+       .llseek = noop_llseek,
 };
 
 static int mousedev_install_chrdev(struct mousedev *mousedev)
index 9986648..cd82bb1 100644 (file)
@@ -243,6 +243,7 @@ static const struct file_operations serio_raw_fops = {
        .write =        serio_raw_write,
        .poll =         serio_raw_poll,
        .fasync =       serio_raw_fasync,
+       .llseek = noop_llseek,
 };
 
 
index de43c8c..859c81e 100644 (file)
@@ -267,6 +267,7 @@ static const struct file_operations mISDN_fops = {
        .unlocked_ioctl = mISDN_ioctl,
        .open           = mISDN_open,
        .release        = mISDN_close,
+       .llseek         = no_llseek,
 };
 
 static struct miscdevice mISDNtimer = {
index 85b714d..3c781cd 100644 (file)
@@ -514,6 +514,7 @@ static const struct file_operations lguest_fops = {
        .release = close,
        .write   = write,
        .read    = read,
+       .llseek  = default_llseek,
 };
 
 /*
index a3d25da..1a57e88 100644 (file)
@@ -137,6 +137,7 @@ const struct file_operations anslcd_fops = {
        .write          = anslcd_write,
        .unlocked_ioctl = anslcd_ioctl,
        .open           = anslcd_open,
+       .llseek         = default_llseek,
 };
 
 static struct miscdevice anslcd_dev = {
index 7b8b1de..cd29c82 100644 (file)
@@ -2399,6 +2399,7 @@ static const struct file_operations pmu_device_fops = {
 #endif
        .open           = pmu_open,
        .release        = pmu_release,
+       .llseek         = noop_llseek,
 };
 
 static struct miscdevice pmu_device = {
index 3e39193..4b54618 100644 (file)
@@ -1596,6 +1596,7 @@ static const struct file_operations _ctl_fops = {
        .unlocked_ioctl  = dm_ctl_ioctl,
        .compat_ioctl = dm_compat_ctl_ioctl,
        .owner   = THIS_MODULE,
+       .llseek  = noop_llseek,
 };
 
 static struct miscdevice _dm_misc = {
index c185422..faed5a3 100644 (file)
@@ -151,7 +151,8 @@ static const struct file_operations vfd_fops = {
        .owner          = THIS_MODULE,
        .open           = &display_open,
        .write          = &vfd_write,
-       .release        = &display_close
+       .release        = &display_close,
+       .llseek         = noop_llseek,
 };
 
 /* lcd character device file operations */
@@ -159,7 +160,8 @@ static const struct file_operations lcd_fops = {
        .owner          = THIS_MODULE,
        .open           = &display_open,
        .write          = &lcd_write,
-       .release        = &display_close
+       .release        = &display_close,
+       .llseek         = noop_llseek,
 };
 
 enum {
index e63f757..1983cd3 100644 (file)
@@ -235,6 +235,7 @@ static struct file_operations lirc_fops = {
        .poll           = lirc_dev_fop_poll,
        .open           = lirc_dev_fop_open,
        .release        = lirc_dev_fop_close,
+       .llseek         = no_llseek,
 };
 
 static int ir_lirc_register(struct input_dev *input_dev)
index 899891b..0acf639 100644 (file)
@@ -163,6 +163,7 @@ static struct file_operations fops = {
        .unlocked_ioctl = lirc_dev_fop_ioctl,
        .open           = lirc_dev_fop_open,
        .release        = lirc_dev_fop_close,
+       .llseek         = noop_llseek,
 };
 
 static int lirc_cdev_add(struct irctl *ir)
@@ -460,6 +461,8 @@ error:
 
        mutex_unlock(&lirc_dev_lock);
 
+       nonseekable_open(inode, file);
+
        return retval;
 }
 EXPORT_SYMBOL(lirc_dev_fop_open);
index d75788b..48e48e8 100644 (file)
@@ -695,7 +695,8 @@ static const struct file_operations dst_ca_fops = {
        .open = dst_ca_open,
        .release = dst_ca_release,
        .read = dst_ca_read,
-       .write = dst_ca_write
+       .write = dst_ca_write,
+       .llseek = noop_llseek,
 };
 
 static struct dvb_device dvbdev_ca = {
index 2de13b0..ad1f61d 100644 (file)
@@ -1143,6 +1143,7 @@ static const struct file_operations dvb_demux_fops = {
        .open = dvb_demux_open,
        .release = dvb_demux_release,
        .poll = dvb_demux_poll,
+       .llseek = default_llseek,
 };
 
 static struct dvb_device dvbdev_demux = {
@@ -1212,6 +1213,7 @@ static const struct file_operations dvb_dvr_fops = {
        .open = dvb_dvr_open,
        .release = dvb_dvr_release,
        .poll = dvb_dvr_poll,
+       .llseek = default_llseek,
 };
 
 static struct dvb_device dvbdev_dvr = {
index 1723a98..4d0646d 100644 (file)
@@ -1622,6 +1622,7 @@ static const struct file_operations dvb_ca_fops = {
        .open = dvb_ca_en50221_io_open,
        .release = dvb_ca_en50221_io_release,
        .poll = dvb_ca_en50221_io_poll,
+       .llseek = noop_llseek,
 };
 
 static struct dvb_device dvbdev_ca = {
index 4d45b7d..970c9b8 100644 (file)
@@ -2034,7 +2034,8 @@ static const struct file_operations dvb_frontend_fops = {
        .unlocked_ioctl = dvb_generic_ioctl,
        .poll           = dvb_frontend_poll,
        .open           = dvb_frontend_open,
-       .release        = dvb_frontend_release
+       .release        = dvb_frontend_release,
+       .llseek         = noop_llseek,
 };
 
 int dvb_register_frontend(struct dvb_adapter* dvb,
index a080322..4df42aa 100644 (file)
@@ -1468,6 +1468,7 @@ static const struct file_operations dvb_net_fops = {
        .unlocked_ioctl = dvb_net_ioctl,
        .open = dvb_generic_open,
        .release = dvb_net_close,
+       .llseek = noop_llseek,
 };
 
 static struct dvb_device dvbdev_net = {
index 28f486e..f732877 100644 (file)
@@ -105,6 +105,7 @@ static const struct file_operations dvb_device_fops =
 {
        .owner =        THIS_MODULE,
        .open =         dvb_device_open,
+       .llseek =       noop_llseek,
 };
 
 static struct cdev dvb_device_cdev;
index d3c2cf6..8ffb565 100644 (file)
@@ -220,6 +220,7 @@ static const struct file_operations fdtv_ca_fops = {
        .open           = dvb_generic_open,
        .release        = dvb_generic_release,
        .poll           = fdtv_ca_io_poll,
+       .llseek         = noop_llseek,
 };
 
 static struct dvb_device fdtv_ca = {
index a6be529..893fbc5 100644 (file)
@@ -730,6 +730,7 @@ static const struct file_operations dvb_osd_fops = {
        .unlocked_ioctl = dvb_generic_ioctl,
        .open           = dvb_generic_open,
        .release        = dvb_generic_release,
+       .llseek         = noop_llseek,
 };
 
 static struct dvb_device dvbdev_osd = {
index 13efba9..6ef3996 100644 (file)
@@ -1521,6 +1521,7 @@ static const struct file_operations dvb_video_fops = {
        .open           = dvb_video_open,
        .release        = dvb_video_release,
        .poll           = dvb_video_poll,
+       .llseek         = noop_llseek,
 };
 
 static struct dvb_device dvbdev_video = {
@@ -1539,6 +1540,7 @@ static const struct file_operations dvb_audio_fops = {
        .open           = dvb_audio_open,
        .release        = dvb_audio_release,
        .poll           = dvb_audio_poll,
+       .llseek         = noop_llseek,
 };
 
 static struct dvb_device dvbdev_audio = {
index 4eba35a..43f61f2 100644 (file)
@@ -353,6 +353,7 @@ static const struct file_operations dvb_ca_fops = {
        .open           = dvb_ca_open,
        .release        = dvb_generic_release,
        .poll           = dvb_ca_poll,
+       .llseek         = default_llseek,
 };
 
 static struct dvb_device dvbdev_ca = {
index b070e88..908f272 100644 (file)
@@ -312,6 +312,7 @@ static ssize_t av7110_ir_proc_write(struct file *file, const char __user *buffer
 static const struct file_operations av7110_ir_proc_fops = {
        .owner          = THIS_MODULE,
        .write          = av7110_ir_proc_write,
+       .llseek         = noop_llseek,
 };
 
 /* interrupt handler */
index 66379b4..b048ecc 100644 (file)
@@ -583,6 +583,7 @@ static ssize_t ab3100_get_set_reg(struct file *file,
 static const struct file_operations ab3100_get_set_reg_fops = {
        .open = ab3100_get_set_reg_open_file,
        .write = ab3100_get_set_reg,
+       .llseek = noop_llseek,
 };
 
 static struct dentry *ab3100_dir;
index 557a8c2..69c1f2f 100644 (file)
@@ -640,6 +640,7 @@ static const struct file_operations ilo_fops = {
        .poll           = ilo_poll,
        .open           = ilo_open,
        .release        = ilo_close,
+       .llseek         = noop_llseek,
 };
 
 static irqreturn_t ilo_isr(int irq, void *data)
index 8844a3f..af2497a 100644 (file)
@@ -584,6 +584,7 @@ static const struct file_operations command_fops = {
        .release =      command_file_close,
        .read =         command_file_read,
        .write =        command_file_write,
+       .llseek =       generic_file_llseek,
 };
 
 static const struct file_operations event_fops = {
@@ -591,6 +592,7 @@ static const struct file_operations event_fops = {
        .release =      event_file_close,
        .read =         event_file_read,
        .write =        event_file_write,
+       .llseek =       generic_file_llseek,
 };
 
 static const struct file_operations r_heartbeat_fops = {
@@ -598,6 +600,7 @@ static const struct file_operations r_heartbeat_fops = {
        .release =      r_heartbeat_file_close,
        .read =         r_heartbeat_file_read,
        .write =        r_heartbeat_file_write,
+       .llseek =       generic_file_llseek,
 };
 
 static const struct file_operations remote_settings_fops = {
@@ -605,6 +608,7 @@ static const struct file_operations remote_settings_fops = {
        .release =      remote_settings_file_close,
        .read =         remote_settings_file_read,
        .write =        remote_settings_file_write,
+       .llseek =       generic_file_llseek,
 };
 
 
index e9eda47..62fbaec 100644 (file)
@@ -71,6 +71,7 @@ ssize_t iwmct_dbgfs_##name##_write(struct file *file,                 \
        static const struct file_operations iwmct_dbgfs_##name##_ops = {  \
                .read = iwmct_dbgfs_##name##_read,                      \
                .open = iwmct_dbgfs_open_file_generic,                  \
+               .llseek = generic_file_llseek,                          \
        };
 
 #define DEBUGFS_WRITE_FILE_OPS(name)                                   \
@@ -78,6 +79,7 @@ ssize_t iwmct_dbgfs_##name##_write(struct file *file,                 \
        static const struct file_operations iwmct_dbgfs_##name##_ops = {  \
                .write = iwmct_dbgfs_##name##_write,                    \
                .open = iwmct_dbgfs_open_file_generic,                  \
+               .llseek = generic_file_llseek,                          \
        };
 
 #define DEBUGFS_READ_WRITE_FILE_OPS(name)                              \
@@ -87,6 +89,7 @@ ssize_t iwmct_dbgfs_##name##_write(struct file *file,                 \
                .write = iwmct_dbgfs_##name##_write,                    \
                .read = iwmct_dbgfs_##name##_read,                      \
                .open = iwmct_dbgfs_open_file_generic,                  \
+               .llseek = generic_file_llseek,                          \
        };
 
 
index ef34de7..343b5d8 100644 (file)
@@ -575,30 +575,39 @@ struct crash_entry {
 
 static const struct crash_entry crash_entries[] = {
        {"DIRECT", {.read = lkdtm_debugfs_read,
+                       .llseek = generic_file_llseek,
                        .open = lkdtm_debugfs_open,
                        .write = direct_entry} },
        {"INT_HARDWARE_ENTRY", {.read = lkdtm_debugfs_read,
+                       .llseek = generic_file_llseek,
                        .open = lkdtm_debugfs_open,
                        .write = int_hardware_entry} },
        {"INT_HW_IRQ_EN", {.read = lkdtm_debugfs_read,
+                       .llseek = generic_file_llseek,
                        .open = lkdtm_debugfs_open,
                        .write = int_hw_irq_en} },
        {"INT_TASKLET_ENTRY", {.read = lkdtm_debugfs_read,
+                       .llseek = generic_file_llseek,
                        .open = lkdtm_debugfs_open,
                        .write = int_tasklet_entry} },
        {"FS_DEVRW", {.read = lkdtm_debugfs_read,
+                       .llseek = generic_file_llseek,
                        .open = lkdtm_debugfs_open,
                        .write = fs_devrw_entry} },
        {"MEM_SWAPOUT", {.read = lkdtm_debugfs_read,
+                       .llseek = generic_file_llseek,
                        .open = lkdtm_debugfs_open,
                        .write = mem_swapout_entry} },
        {"TIMERADD", {.read = lkdtm_debugfs_read,
+                       .llseek = generic_file_llseek,
                        .open = lkdtm_debugfs_open,
                        .write = timeradd_entry} },
        {"SCSI_DISPATCH_CMD", {.read = lkdtm_debugfs_read,
+                       .llseek = generic_file_llseek,
                        .open = lkdtm_debugfs_open,
                        .write = scsi_dispatch_cmd_entry} },
        {"IDE_CORE_CP", {.read = lkdtm_debugfs_read,
+                       .llseek = generic_file_llseek,
                        .open = lkdtm_debugfs_open,
                        .write = ide_core_cp_entry} },
 };
index 3712e50..4197a3c 100644 (file)
@@ -280,6 +280,7 @@ static const struct file_operations phantom_file_ops = {
        .unlocked_ioctl = phantom_ioctl,
        .compat_ioctl = phantom_compat_ioctl,
        .poll = phantom_poll,
+       .llseek = no_llseek,
 };
 
 static irqreturn_t phantom_isr(int irq, void *data)
index cb3b4d2..28852df 100644 (file)
@@ -587,6 +587,7 @@ static const struct file_operations gru_fops = {
        .owner          = THIS_MODULE,
        .unlocked_ioctl = gru_file_unlocked_ioctl,
        .mmap           = gru_file_mmap,
+       .llseek         = noop_llseek,
 };
 
 static struct miscdevice gru_miscdev = {
index 53cb380..46bc6d7 100644 (file)
@@ -245,6 +245,7 @@ static const struct file_operations mmc_dbg_ext_csd_fops = {
        .open           = mmc_ext_csd_open,
        .read           = mmc_ext_csd_read,
        .release        = mmc_ext_csd_release,
+       .llseek         = default_llseek,
 };
 
 void mmc_add_card_debugfs(struct mmc_card *card)
index 3d2d1a6..af9fb0f 100644 (file)
@@ -1100,4 +1100,5 @@ const struct file_operations ubi_ctrl_cdev_operations = {
        .owner          = THIS_MODULE,
        .unlocked_ioctl = ctrl_cdev_ioctl,
        .compat_ioctl   = ctrl_cdev_compat_ioctl,
+       .llseek         = noop_llseek,
 };
index f5058ff..8427533 100644 (file)
@@ -240,13 +240,15 @@ static ssize_t dbgfs_frame(struct file *file, char __user *user_buf,
 static const struct file_operations dbgfs_state_fops = {
        .open = dbgfs_open,
        .read = dbgfs_state,
-       .owner = THIS_MODULE
+       .owner = THIS_MODULE,
+       .llseek = default_llseek,
 };
 
 static const struct file_operations dbgfs_frame_fops = {
        .open = dbgfs_open,
        .read = dbgfs_frame,
-       .owner = THIS_MODULE
+       .owner = THIS_MODULE,
+       .llseek = default_llseek,
 };
 
 static inline void dev_debugfs_add(struct cfspi *cfspi)
index c327527..e2bf10d 100644 (file)
@@ -2026,6 +2026,7 @@ static const struct file_operations mem_debugfs_fops = {
        .owner   = THIS_MODULE,
        .open    = mem_open,
        .read    = mem_read,
+       .llseek  = default_llseek,
 };
 
 static void __devinit add_debugfs_mem(struct adapter *adap, const char *name,
index 736b917..4bddb2a 100644 (file)
@@ -856,7 +856,8 @@ static const struct file_operations ppp_device_fops = {
        .poll           = ppp_poll,
        .unlocked_ioctl = ppp_ioctl,
        .open           = ppp_open,
-       .release        = ppp_release
+       .release        = ppp_release,
+       .llseek         = noop_llseek,
 };
 
 static __net_init int ppp_init_net(struct net *net)
index b1aec3e..9c70b5f 100644 (file)
@@ -119,6 +119,7 @@ const struct file_operations i2400m_rx_stats_fops = {
        .open =         i2400m_stats_open,
        .read =         i2400m_rx_stats_read,
        .write =        i2400m_rx_stats_write,
+       .llseek =       default_llseek,
 };
 
 
@@ -171,6 +172,7 @@ const struct file_operations i2400m_tx_stats_fops = {
        .open =         i2400m_stats_open,
        .read =         i2400m_tx_stats_read,
        .write =        i2400m_tx_stats_write,
+       .llseek =       default_llseek,
 };
 
 
index 1d05445..ce77575 100644 (file)
@@ -4430,21 +4430,24 @@ static const struct file_operations proc_statsdelta_ops = {
        .owner          = THIS_MODULE,
        .read           = proc_read,
        .open           = proc_statsdelta_open,
-       .release        = proc_close
+       .release        = proc_close,
+       .llseek         = default_llseek,
 };
 
 static const struct file_operations proc_stats_ops = {
        .owner          = THIS_MODULE,
        .read           = proc_read,
        .open           = proc_stats_open,
-       .release        = proc_close
+       .release        = proc_close,
+       .llseek         = default_llseek,
 };
 
 static const struct file_operations proc_status_ops = {
        .owner          = THIS_MODULE,
        .read           = proc_read,
        .open           = proc_status_open,
-       .release        = proc_close
+       .release        = proc_close,
+       .llseek         = default_llseek,
 };
 
 static const struct file_operations proc_SSID_ops = {
@@ -4452,7 +4455,8 @@ static const struct file_operations proc_SSID_ops = {
        .read           = proc_read,
        .write          = proc_write,
        .open           = proc_SSID_open,
-       .release        = proc_close
+       .release        = proc_close,
+       .llseek         = default_llseek,
 };
 
 static const struct file_operations proc_BSSList_ops = {
@@ -4460,7 +4464,8 @@ static const struct file_operations proc_BSSList_ops = {
        .read           = proc_read,
        .write          = proc_write,
        .open           = proc_BSSList_open,
-       .release        = proc_close
+       .release        = proc_close,
+       .llseek         = default_llseek,
 };
 
 static const struct file_operations proc_APList_ops = {
@@ -4468,7 +4473,8 @@ static const struct file_operations proc_APList_ops = {
        .read           = proc_read,
        .write          = proc_write,
        .open           = proc_APList_open,
-       .release        = proc_close
+       .release        = proc_close,
+       .llseek         = default_llseek,
 };
 
 static const struct file_operations proc_config_ops = {
@@ -4476,7 +4482,8 @@ static const struct file_operations proc_config_ops = {
        .read           = proc_read,
        .write          = proc_write,
        .open           = proc_config_open,
-       .release        = proc_close
+       .release        = proc_close,
+       .llseek         = default_llseek,
 };
 
 static const struct file_operations proc_wepkey_ops = {
@@ -4484,7 +4491,8 @@ static const struct file_operations proc_wepkey_ops = {
        .read           = proc_read,
        .write          = proc_write,
        .open           = proc_wepkey_open,
-       .release        = proc_close
+       .release        = proc_close,
+       .llseek         = default_llseek,
 };
 
 static struct proc_dir_entry *airo_entry;
index 4cccc29..fb339c3 100644 (file)
@@ -271,6 +271,7 @@ static const struct file_operations fops_beacon = {
        .write = write_file_beacon,
        .open = ath5k_debugfs_open,
        .owner = THIS_MODULE,
+       .llseek = default_llseek,
 };
 
 
@@ -290,6 +291,7 @@ static const struct file_operations fops_reset = {
        .write = write_file_reset,
        .open = ath5k_debugfs_open,
        .owner = THIS_MODULE,
+       .llseek = noop_llseek,
 };
 
 
@@ -369,6 +371,7 @@ static const struct file_operations fops_debug = {
        .write = write_file_debug,
        .open = ath5k_debugfs_open,
        .owner = THIS_MODULE,
+       .llseek = default_llseek,
 };
 
 
@@ -480,6 +483,7 @@ static const struct file_operations fops_antenna = {
        .write = write_file_antenna,
        .open = ath5k_debugfs_open,
        .owner = THIS_MODULE,
+       .llseek = default_llseek,
 };
 
 
@@ -591,6 +595,7 @@ static const struct file_operations fops_frameerrors = {
        .write = write_file_frameerrors,
        .open = ath5k_debugfs_open,
        .owner = THIS_MODULE,
+       .llseek = default_llseek,
 };
 
 
@@ -748,6 +753,7 @@ static const struct file_operations fops_ani = {
        .write = write_file_ani,
        .open = ath5k_debugfs_open,
        .owner = THIS_MODULE,
+       .llseek = default_llseek,
 };
 
 
@@ -811,6 +817,7 @@ static const struct file_operations fops_queue = {
        .write = write_file_queue,
        .open = ath5k_debugfs_open,
        .owner = THIS_MODULE,
+       .llseek = default_llseek,
 };
 
 
index 54aae93..cf500bf 100644 (file)
@@ -71,7 +71,8 @@ static const struct file_operations fops_debug = {
        .read = read_file_debug,
        .write = write_file_debug,
        .open = ath9k_debugfs_open,
-       .owner = THIS_MODULE
+       .owner = THIS_MODULE,
+       .llseek = default_llseek,
 };
 
 #endif
@@ -116,7 +117,8 @@ static const struct file_operations fops_tx_chainmask = {
        .read = read_file_tx_chainmask,
        .write = write_file_tx_chainmask,
        .open = ath9k_debugfs_open,
-       .owner = THIS_MODULE
+       .owner = THIS_MODULE,
+       .llseek = default_llseek,
 };
 
 
@@ -158,7 +160,8 @@ static const struct file_operations fops_rx_chainmask = {
        .read = read_file_rx_chainmask,
        .write = write_file_rx_chainmask,
        .open = ath9k_debugfs_open,
-       .owner = THIS_MODULE
+       .owner = THIS_MODULE,
+       .llseek = default_llseek,
 };
 
 
@@ -259,7 +262,8 @@ static ssize_t read_file_dma(struct file *file, char __user *user_buf,
 static const struct file_operations fops_dma = {
        .read = read_file_dma,
        .open = ath9k_debugfs_open,
-       .owner = THIS_MODULE
+       .owner = THIS_MODULE,
+       .llseek = default_llseek,
 };
 
 
@@ -375,7 +379,8 @@ static ssize_t read_file_interrupt(struct file *file, char __user *user_buf,
 static const struct file_operations fops_interrupt = {
        .read = read_file_interrupt,
        .open = ath9k_debugfs_open,
-       .owner = THIS_MODULE
+       .owner = THIS_MODULE,
+       .llseek = default_llseek,
 };
 
 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,
 static const struct file_operations fops_rcstat = {
        .read = read_file_rcstat,
        .open = ath9k_debugfs_open,
-       .owner = THIS_MODULE
+       .owner = THIS_MODULE,
+       .llseek = default_llseek,
 };
 
 static const char * ath_wiphy_state_str(enum ath_wiphy_state state)
@@ -623,7 +629,8 @@ static const struct file_operations fops_wiphy = {
        .read = read_file_wiphy,
        .write = write_file_wiphy,
        .open = ath9k_debugfs_open,
-       .owner = THIS_MODULE
+       .owner = THIS_MODULE,
+       .llseek = default_llseek,
 };
 
 #define PR(str, elem)                                                  \
@@ -702,7 +709,8 @@ void ath_debug_stat_tx(struct ath_softc *sc, struct ath_txq *txq,
 static const struct file_operations fops_xmit = {
        .read = read_file_xmit,
        .open = ath9k_debugfs_open,
-       .owner = THIS_MODULE
+       .owner = THIS_MODULE,
+       .llseek = default_llseek,
 };
 
 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)
 static const struct file_operations fops_recv = {
        .read = read_file_recv,
        .open = ath9k_debugfs_open,
-       .owner = THIS_MODULE
+       .owner = THIS_MODULE,
+       .llseek = default_llseek,
 };
 
 static ssize_t read_file_regidx(struct file *file, char __user *user_buf,
@@ -852,7 +861,8 @@ static const struct file_operations fops_regidx = {
        .read = read_file_regidx,
        .write = write_file_regidx,
        .open = ath9k_debugfs_open,
-       .owner = THIS_MODULE
+       .owner = THIS_MODULE,
+       .llseek = default_llseek,
 };
 
 static ssize_t read_file_regval(struct file *file, char __user *user_buf,
@@ -894,7 +904,8 @@ static const struct file_operations fops_regval = {
        .read = read_file_regval,
        .write = write_file_regval,
        .open = ath9k_debugfs_open,
-       .owner = THIS_MODULE
+       .owner = THIS_MODULE,
+       .llseek = default_llseek,
 };
 
 int ath9k_init_debug(struct ath_hw *ah)
index 7d09b4b..bc2ca7d 100644 (file)
@@ -536,7 +536,8 @@ static ssize_t read_file_tgt_stats(struct file *file, char __user *user_buf,
 static const struct file_operations fops_tgt_stats = {
        .read = read_file_tgt_stats,
        .open = ath9k_debugfs_open,
-       .owner = THIS_MODULE
+       .owner = THIS_MODULE,
+       .llseek = default_llseek,
 };
 
 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,
 static const struct file_operations fops_xmit = {
        .read = read_file_xmit,
        .open = ath9k_debugfs_open,
-       .owner = THIS_MODULE
+       .owner = THIS_MODULE,
+       .llseek = default_llseek,
 };
 
 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,
 static const struct file_operations fops_recv = {
        .read = read_file_recv,
        .open = ath9k_debugfs_open,
-       .owner = THIS_MODULE
+       .owner = THIS_MODULE,
+       .llseek = default_llseek,
 };
 
 int ath9k_htc_init_debug(struct ath_hw *ah)
index 80b19a4..59f59fa 100644 (file)
@@ -627,6 +627,7 @@ out_unlock:
                        .open   = b43_debugfs_open,             \
                        .read   = b43_debugfs_read,             \
                        .write  = b43_debugfs_write,            \
+                       .llseek = generic_file_llseek,          \
                },                                              \
                .file_struct_offset = offsetof(struct b43_dfsentry, \
                                               file_##name),    \
index 1f85ac5..f232618 100644 (file)
@@ -334,6 +334,7 @@ out_unlock:
                        .open   = b43legacy_debugfs_open,               \
                        .read   = b43legacy_debugfs_read,               \
                        .write  = b43legacy_debugfs_write,              \
+                       .llseek = generic_file_llseek,                  \
                },                                              \
                .file_struct_offset = offsetof(struct b43legacy_dfsentry, \
                                               file_##name),    \
index 8e84a08..293e1db 100644 (file)
@@ -873,6 +873,7 @@ static ssize_t iwl3945_sta_dbgfs_stats_table_read(struct file *file,
 static const struct file_operations rs_sta_dbgfs_stats_table_ops = {
        .read = iwl3945_sta_dbgfs_stats_table_read,
        .open = iwl3945_open_file_generic,
+       .llseek = default_llseek,
 };
 
 static void iwl3945_add_debugfs(void *priv, void *priv_sta,
index 23e5c42..a4378ba 100644 (file)
@@ -2873,6 +2873,7 @@ static const struct file_operations rs_sta_dbgfs_scale_table_ops = {
        .write = rs_sta_dbgfs_scale_table_write,
        .read = rs_sta_dbgfs_scale_table_read,
        .open = open_file_generic,
+       .llseek = default_llseek,
 };
 static ssize_t rs_sta_dbgfs_stats_table_read(struct file *file,
                        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,
 static const struct file_operations rs_sta_dbgfs_stats_table_ops = {
        .read = rs_sta_dbgfs_stats_table_read,
        .open = open_file_generic,
+       .llseek = default_llseek,
 };
 
 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,
 static const struct file_operations rs_sta_dbgfs_rate_scale_data_ops = {
        .read = rs_sta_dbgfs_rate_scale_data_read,
        .open = open_file_generic,
+       .llseek = default_llseek,
 };
 
 static void rs_add_debugfs(void *priv, void *priv_sta,
index e96a1bb..a32d5d3 100644 (file)
@@ -87,6 +87,7 @@ static int iwl_dbgfs_open_file_generic(struct inode *inode, struct file *file)
 static const struct file_operations iwl_dbgfs_##name##_ops = {          \
        .read = iwl_dbgfs_##name##_read,                                \
        .open = iwl_dbgfs_open_file_generic,                            \
+       .llseek = generic_file_llseek,                                  \
 };
 
 #define DEBUGFS_WRITE_FILE_OPS(name)                                    \
@@ -94,6 +95,7 @@ static const struct file_operations iwl_dbgfs_##name##_ops = {          \
 static const struct file_operations iwl_dbgfs_##name##_ops = {          \
        .write = iwl_dbgfs_##name##_write,                              \
        .open = iwl_dbgfs_open_file_generic,                            \
+       .llseek = generic_file_llseek,                                  \
 };
 
 
@@ -104,6 +106,7 @@ static const struct file_operations iwl_dbgfs_##name##_ops = {          \
        .write = iwl_dbgfs_##name##_write,                              \
        .read = iwl_dbgfs_##name##_read,                                \
        .open = iwl_dbgfs_open_file_generic,                            \
+       .llseek = generic_file_llseek,                                  \
 };
 
 static ssize_t iwl_dbgfs_tx_statistics_read(struct file *file,
index 53b0b77..0a0cc96 100644 (file)
@@ -402,24 +402,28 @@ static const struct file_operations iwm_debugfs_txq_fops = {
        .owner =        THIS_MODULE,
        .open =         iwm_generic_open,
        .read =         iwm_debugfs_txq_read,
+       .llseek =       default_llseek,
 };
 
 static const struct file_operations iwm_debugfs_tx_credit_fops = {
        .owner =        THIS_MODULE,
        .open =         iwm_generic_open,
        .read =         iwm_debugfs_tx_credit_read,
+       .llseek =       default_llseek,
 };
 
 static const struct file_operations iwm_debugfs_rx_ticket_fops = {
        .owner =        THIS_MODULE,
        .open =         iwm_generic_open,
        .read =         iwm_debugfs_rx_ticket_read,
+       .llseek =       default_llseek,
 };
 
 static const struct file_operations iwm_debugfs_fw_err_fops = {
        .owner =        THIS_MODULE,
        .open =         iwm_generic_open,
        .read =         iwm_debugfs_fw_err_read,
+       .llseek =       default_llseek,
 };
 
 void iwm_debugfs_init(struct iwm_priv *iwm)
index edcb523..56383e7 100644 (file)
@@ -364,6 +364,7 @@ static const struct file_operations iwm_debugfs_sdio_fops = {
        .owner =        THIS_MODULE,
        .open =         iwm_debugfs_sdio_open,
        .read =         iwm_debugfs_sdio_read,
+       .llseek =       default_llseek,
 };
 
 static void if_sdio_debugfs_init(struct iwm_priv *iwm, struct dentry *parent_dir)
index 651a79c..fbf3b03 100644 (file)
@@ -696,6 +696,7 @@ out_unlock:
        .open = open_file_generic, \
        .read = (fread), \
        .write = (fwrite), \
+       .llseek = generic_file_llseek, \
 }
 
 struct lbs_debugfs_files {
@@ -961,6 +962,7 @@ static const struct file_operations lbs_debug_fops = {
        .open = open_file_generic,
        .write = lbs_debugfs_write,
        .read = lbs_debugfs_read,
+       .llseek = default_llseek,
 };
 
 /**
index af5b17c..46da037 100644 (file)
@@ -2765,6 +2765,7 @@ static ssize_t ray_cs_essid_proc_write(struct file *file,
 static const struct file_operations ray_cs_essid_proc_fops = {
        .owner          = THIS_MODULE,
        .write          = ray_cs_essid_proc_write,
+       .llseek         = noop_llseek,
 };
 
 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,
 static const struct file_operations int_proc_fops = {
        .owner          = THIS_MODULE,
        .write          = int_proc_write,
+       .llseek         = noop_llseek,
 };
 #endif
 
index b0498e7..cea81e4 100644 (file)
@@ -315,6 +315,7 @@ static const struct file_operations rt2x00debug_fop_queue_dump = {
        .poll           = rt2x00debug_poll_queue_dump,
        .open           = rt2x00debug_open_queue_dump,
        .release        = rt2x00debug_release_queue_dump,
+       .llseek         = default_llseek,
 };
 
 static ssize_t rt2x00debug_read_queue_stats(struct file *file,
@@ -371,6 +372,7 @@ static const struct file_operations rt2x00debug_fop_queue_stats = {
        .read           = rt2x00debug_read_queue_stats,
        .open           = rt2x00debug_file_open,
        .release        = rt2x00debug_file_release,
+       .llseek         = default_llseek,
 };
 
 #ifdef CONFIG_RT2X00_LIB_CRYPTO
@@ -423,6 +425,7 @@ static const struct file_operations rt2x00debug_fop_crypto_stats = {
        .read           = rt2x00debug_read_crypto_stats,
        .open           = rt2x00debug_file_open,
        .release        = rt2x00debug_file_release,
+       .llseek         = default_llseek,
 };
 #endif
 
@@ -509,6 +512,7 @@ static const struct file_operations rt2x00debug_fop_##__name = {\
        .write          = rt2x00debug_write_##__name,           \
        .open           = rt2x00debug_file_open,                \
        .release        = rt2x00debug_file_release,             \
+       .llseek         = generic_file_llseek,                  \
 };
 
 RT2X00DEBUGFS_OPS(csr, "0x%.8x\n", u32);
@@ -542,6 +546,7 @@ static const struct file_operations rt2x00debug_fop_dev_flags = {
        .read           = rt2x00debug_read_dev_flags,
        .open           = rt2x00debug_file_open,
        .release        = rt2x00debug_file_release,
+       .llseek         = default_llseek,
 };
 
 static struct dentry *rt2x00debug_create_file_driver(const char *name,
index 5e4465a..fa620a5 100644 (file)
@@ -50,6 +50,7 @@ static ssize_t name## _read(struct file *file, char __user *userbuf,  \
 static const struct file_operations name## _ops = {                    \
        .read = name## _read,                                           \
        .open = wl1251_open_file_generic,                               \
+       .llseek = generic_file_llseek,                                  \
 };
 
 #define DEBUGFS_ADD(name, parent)                                      \
@@ -86,6 +87,7 @@ static ssize_t sub## _ ##name## _read(struct file *file,              \
 static const struct file_operations sub## _ ##name## _ops = {          \
        .read = sub## _ ##name## _read,                                 \
        .open = wl1251_open_file_generic,                               \
+       .llseek = generic_file_llseek,                                  \
 };
 
 #define DEBUGFS_FWSTATS_ADD(sub, name)                         \
@@ -236,6 +238,7 @@ static ssize_t tx_queue_len_read(struct file *file, char __user *userbuf,
 static const struct file_operations tx_queue_len_ops = {
        .read = tx_queue_len_read,
        .open = wl1251_open_file_generic,
+       .llseek = generic_file_llseek,
 };
 
 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,
 static const struct file_operations tx_queue_status_ops = {
        .read = tx_queue_status_read,
        .open = wl1251_open_file_generic,
+       .llseek = generic_file_llseek,
 };
 
 static void wl1251_debugfs_delete_files(struct wl1251 *wl)
index c239ef4..66c2b90 100644 (file)
@@ -51,6 +51,7 @@ static ssize_t name## _read(struct file *file, char __user *userbuf,  \
 static const struct file_operations name## _ops = {                    \
        .read = name## _read,                                           \
        .open = wl1271_open_file_generic,                               \
+       .llseek = generic_file_llseek,                                  \
 };
 
 #define DEBUGFS_ADD(name, parent)                                      \
@@ -87,6 +88,7 @@ static ssize_t sub## _ ##name## _read(struct file *file,              \
 static const struct file_operations sub## _ ##name## _ops = {          \
        .read = sub## _ ##name## _read,                                 \
        .open = wl1271_open_file_generic,                               \
+       .llseek = generic_file_llseek,                                  \
 };
 
 #define DEBUGFS_FWSTATS_ADD(sub, name)                         \
@@ -237,6 +239,7 @@ static ssize_t tx_queue_len_read(struct file *file, char __user *userbuf,
 static const struct file_operations tx_queue_len_ops = {
        .read = tx_queue_len_read,
        .open = wl1271_open_file_generic,
+       .llseek = default_llseek,
 };
 
 static ssize_t gpio_power_read(struct file *file, char __user *user_buf,
@@ -291,7 +294,8 @@ out:
 static const struct file_operations gpio_power_ops = {
        .read = gpio_power_read,
        .write = gpio_power_write,
-       .open = wl1271_open_file_generic
+       .open = wl1271_open_file_generic,
+       .llseek = default_llseek,
 };
 
 static void wl1271_debugfs_delete_files(struct wl1271 *wl)
index ccf099e..89f6345 100644 (file)
@@ -59,6 +59,7 @@ static ssize_t timeout_write(struct file *file, char const __user *buf,
 static const struct file_operations timeout_fops = {
        .read           = timeout_read,
        .write          = timeout_write,
+       .llseek         = default_llseek,
 };
 
 #endif
@@ -96,7 +97,8 @@ static ssize_t depth_write(struct file *file, char const __user *buf, size_t cou
 
 static const struct file_operations depth_fops = {
        .read           = depth_read,
-       .write          = depth_write
+       .write          = depth_write,
+       .llseek         = default_llseek,
 };
 
 
@@ -108,6 +110,7 @@ static ssize_t pointer_size_read(struct file *file, char __user *buf, size_t cou
 
 static const struct file_operations pointer_size_fops = {
        .read           = pointer_size_read,
+       .llseek         = default_llseek,
 };
 
 
@@ -119,6 +122,7 @@ static ssize_t cpu_type_read(struct file *file, char __user *buf, size_t count,
 
 static const struct file_operations cpu_type_fops = {
        .read           = cpu_type_read,
+       .llseek         = default_llseek,
 };
 
 
@@ -154,6 +158,7 @@ static ssize_t enable_write(struct file *file, char const __user *buf, size_t co
 static const struct file_operations enable_fops = {
        .read           = enable_read,
        .write          = enable_write,
+       .llseek         = default_llseek,
 };
 
 
@@ -166,6 +171,7 @@ static ssize_t dump_write(struct file *file, char const __user *buf, size_t coun
 
 static const struct file_operations dump_fops = {
        .write          = dump_write,
+       .llseek         = noop_llseek,
 };
 
 void oprofile_create_files(struct super_block *sb, struct dentry *root)
index 1944621..95f711b 100644 (file)
@@ -121,12 +121,14 @@ static const struct file_operations ulong_fops = {
        .read           = ulong_read_file,
        .write          = ulong_write_file,
        .open           = default_open,
+       .llseek         = default_llseek,
 };
 
 
 static const struct file_operations ulong_ro_fops = {
        .read           = ulong_read_file,
        .open           = default_open,
+       .llseek         = default_llseek,
 };
 
 
@@ -178,6 +180,7 @@ static ssize_t atomic_read_file(struct file *file, char __user *buf, size_t coun
 static const struct file_operations atomic_ro_fops = {
        .read           = atomic_read_file,
        .open           = default_open,
+       .llseek         = default_llseek,
 };
 
 
index 9099246..b3cf622 100644 (file)
@@ -472,6 +472,7 @@ static ssize_t aer_inject_write(struct file *filp, const char __user *ubuf,
 static const struct file_operations aer_inject_fops = {
        .write = aer_inject_write,
        .owner = THIS_MODULE,
+       .llseek = noop_llseek,
 };
 
 static struct miscdevice aer_inject_device = {
index e3154ff..f200677 100644 (file)
@@ -2360,6 +2360,7 @@ static const struct file_operations sonypi_misc_fops = {
        .release        = sonypi_misc_release,
        .fasync         = sonypi_misc_fasync,
        .unlocked_ioctl = sonypi_misc_ioctl,
+       .llseek         = noop_llseek,
 };
 
 static struct miscdevice sonypi_misc_device = {
index 512dca1..5a8daa3 100644 (file)
@@ -749,6 +749,7 @@ static const struct file_operations wdt_fops = {
        .write  = wdt_write,
        .open   = wdt_open,
        .release = wdt_release,
+       .llseek = no_llseek,
 };
 
 static struct miscdevice wdt_dev = {
index 7158f95..c71d89d 100644 (file)
@@ -670,6 +670,7 @@ static const struct file_operations dasd_eer_fops = {
        .read           = &dasd_eer_read,
        .poll           = &dasd_eer_poll,
        .owner          = THIS_MODULE,
+       .llseek         = noop_llseek,
 };
 
 static struct miscdevice *dasd_eer_dev = NULL;
index 857dfcb..eb28fb0 100644 (file)
@@ -520,6 +520,7 @@ static const struct file_operations fs3270_fops = {
        .compat_ioctl    = fs3270_ioctl,        /* ioctl */
        .open            = fs3270_open,         /* open */
        .release         = fs3270_close,        /* release */
+       .llseek         = no_llseek,
 };
 
 /*
index e021ec6..5b8b859 100644 (file)
@@ -447,6 +447,7 @@ static const struct file_operations mon_fops = {
        .release = &mon_close,
        .read    = &mon_read,
        .poll    = &mon_poll,
+       .llseek  = noop_llseek,
 };
 
 static struct miscdevice mon_dev = {
index 572a1e7..e0702d3 100644 (file)
@@ -274,6 +274,7 @@ static const struct file_operations monwrite_fops = {
        .open    = &monwrite_open,
        .release = &monwrite_close,
        .write   = &monwrite_write,
+       .llseek  = noop_llseek,
 };
 
 static struct miscdevice mon_dev = {
index 539045a..883e2db 100644 (file)
@@ -53,6 +53,7 @@ static const struct file_operations tape_fops =
 #endif
        .open = tapechar_open,
        .release = tapechar_release,
+       .llseek = no_llseek,
 };
 
 static int tapechar_major = TAPECHAR_MAJOR;
index 04e532e..0e7cb1a 100644 (file)
@@ -177,6 +177,7 @@ static const struct file_operations vmcp_fops = {
        .write          = vmcp_write,
        .unlocked_ioctl = vmcp_ioctl,
        .compat_ioctl   = vmcp_ioctl,
+       .llseek         = no_llseek,
 };
 
 static struct miscdevice vmcp_dev = {
index e40a1b8..0d6dc4b 100644 (file)
@@ -97,6 +97,7 @@ static const struct file_operations vmlogrdr_fops = {
        .open    = vmlogrdr_open,
        .release = vmlogrdr_release,
        .read    = vmlogrdr_read,
+       .llseek  = no_llseek,
 };
 
 
index e13508c..12ef912 100644 (file)
@@ -297,6 +297,7 @@ static const struct file_operations vmwdt_fops = {
        .unlocked_ioctl = &vmwdt_ioctl,
        .write   = &vmwdt_write,
        .owner   = THIS_MODULE,
+       .llseek  = noop_llseek,
 };
 
 static struct miscdevice vmwdt_dev = {
index f5ea338..3b94044 100644 (file)
@@ -459,6 +459,7 @@ static const struct file_operations zcore_memmap_fops = {
        .read           = zcore_memmap_read,
        .open           = zcore_memmap_open,
        .release        = zcore_memmap_release,
+       .llseek         = no_llseek,
 };
 
 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 = {
        .write          = zcore_reipl_write,
        .open           = zcore_reipl_open,
        .release        = zcore_reipl_release,
+       .llseek         = no_llseek,
 };
 
 #ifdef CONFIG_32BIT
index a83877c..f2b77e7 100644 (file)
@@ -806,6 +806,7 @@ static const struct file_operations chsc_fops = {
        .open = nonseekable_open,
        .unlocked_ioctl = chsc_ioctl,
        .compat_ioctl = chsc_ioctl,
+       .llseek = no_llseek,
 };
 
 static struct miscdevice chsc_misc_device = {
index ac94ac7..ca8e1c2 100644 (file)
@@ -1067,6 +1067,7 @@ static ssize_t cio_settle_write(struct file *file, const char __user *buf,
 static const struct file_operations cio_settle_proc_fops = {
        .open = nonseekable_open,
        .write = cio_settle_write,
+       .llseek = no_llseek,
 };
 
 static int __init cio_settle_init(void)
index 41e0aae..f522174 100644 (file)
@@ -897,7 +897,8 @@ static const struct file_operations zcrypt_fops = {
        .compat_ioctl   = zcrypt_compat_ioctl,
 #endif
        .open           = zcrypt_open,
-       .release        = zcrypt_release
+       .release        = zcrypt_release,
+       .llseek         = no_llseek,
 };
 
 /*
index fcbd2b7..1838cda 100644 (file)
@@ -251,8 +251,9 @@ static const struct file_operations zfcp_cfdc_fops = {
        .open = nonseekable_open,
        .unlocked_ioctl = zfcp_cfdc_dev_ioctl,
 #ifdef CONFIG_COMPAT
-       .compat_ioctl = zfcp_cfdc_dev_ioctl
+       .compat_ioctl = zfcp_cfdc_dev_ioctl,
 #endif
+       .llseek = no_llseek,
 };
 
 struct miscdevice zfcp_cfdc_misc = {
index 1690e53..55f71ea 100644 (file)
@@ -162,6 +162,7 @@ static const struct file_operations d7s_fops = {
        .compat_ioctl =         d7s_ioctl,
        .open =                 d7s_open,
        .release =              d7s_release,
+       .llseek = noop_llseek,
 };
 
 static struct miscdevice d7s_miscdev = {
index 078e5f4..8ce414e 100644 (file)
@@ -720,6 +720,7 @@ static const struct file_operations envctrl_fops = {
 #endif
        .open =                 envctrl_open,
        .release =              envctrl_release,
+       .llseek =               noop_llseek,
 };     
 
 static struct miscdevice envctrl_dev = {
index 09a139f..fcf08b3 100644 (file)
@@ -222,7 +222,8 @@ static const struct file_operations twa_fops = {
        .owner          = THIS_MODULE,
        .unlocked_ioctl = twa_chrdev_ioctl,
        .open           = twa_chrdev_open,
-       .release        = NULL
+       .release        = NULL,
+       .llseek         = noop_llseek,
 };
 
 /* This function will complete an aen request from the isr */
index 7e5f238..6a95d11 100644 (file)
@@ -889,7 +889,8 @@ static const struct file_operations twl_fops = {
        .owner          = THIS_MODULE,
        .unlocked_ioctl = twl_chrdev_ioctl,
        .open           = twl_chrdev_open,
-       .release        = NULL
+       .release        = NULL,
+       .llseek         = noop_llseek,
 };
 
 /* This function passes sense data from firmware to scsi layer */
index 081c864..b112534 100644 (file)
@@ -1058,7 +1058,8 @@ static const struct file_operations tw_fops = {
        .owner          = THIS_MODULE,
        .unlocked_ioctl = tw_chrdev_ioctl,
        .open           = tw_chrdev_open,
-       .release        = NULL
+       .release        = NULL,
+       .llseek         = noop_llseek,
 };
 
 /* This function will free up device extension resources */
index 6e23336..dae46d7 100644 (file)
@@ -1040,6 +1040,7 @@ static const struct file_operations aac_cfg_fops = {
        .compat_ioctl   = aac_compat_cfg_ioctl,
 #endif
        .open           = aac_cfg_open,
+       .llseek         = noop_llseek,
 };
 
 static struct scsi_host_template aac_driver_template = {
index e805c8f..a15474e 100644 (file)
@@ -981,6 +981,7 @@ static const struct file_operations changer_fops = {
 #ifdef CONFIG_COMPAT
        .compat_ioctl   = ch_ioctl_compat,
 #endif
+       .llseek         = noop_llseek,
 };
 
 static int __init init_ch_module(void)
index 410ac1d..23dec00 100644 (file)
@@ -126,6 +126,7 @@ static const struct file_operations adpt_fops = {
 #ifdef CONFIG_COMPAT
        .compat_ioctl   = compat_adpt_ioctl,
 #endif
+       .llseek         = noop_llseek,
 };
 
 /* Structures and definitions for synchronous message posting.
index e927607..5a3f931 100644 (file)
@@ -373,6 +373,7 @@ static const struct file_operations gdth_fops = {
     .unlocked_ioctl   = gdth_unlocked_ioctl,
     .open    = gdth_open,
     .release = gdth_close,
+    .llseek = noop_llseek,
 };
 
 #include "gdth_proc.h"
index 4d0cf5c..7ceb5cf 100644 (file)
@@ -102,6 +102,7 @@ static const struct file_operations megadev_fops = {
        .owner          = THIS_MODULE,
        .unlocked_ioctl = megadev_unlocked_ioctl,
        .open           = megadev_open,
+       .llseek         = noop_llseek,
 };
 
 /*
index 42770a1..a7008c0 100644 (file)
@@ -76,6 +76,7 @@ static const struct file_operations lsi_fops = {
        .compat_ioctl = mraid_mm_compat_ioctl,
 #endif
        .owner  = THIS_MODULE,
+       .llseek = noop_llseek,
 };
 
 static struct miscdevice megaraid_mm_dev = {
index c4a595d..51e2579 100644 (file)
@@ -3955,6 +3955,7 @@ static const struct file_operations megasas_mgmt_fops = {
 #ifdef CONFIG_COMPAT
        .compat_ioctl = megasas_mgmt_compat_ioctl,
 #endif
+       .llseek = noop_llseek,
 };
 
 /*
index 31cf126..40cb8ae 100644 (file)
@@ -2953,6 +2953,7 @@ static const struct file_operations ctl_fops = {
 #ifdef CONFIG_COMPAT
        .compat_ioctl = _ctl_ioctl_compat,
 #endif
+       .llseek = noop_llseek,
 };
 
 static struct miscdevice ctl_dev = {
index ffdd9fd..b31a8e3 100644 (file)
@@ -182,6 +182,7 @@ static const struct file_operations osd_fops = {
        .open           = osd_uld_open,
        .release        = osd_uld_release,
        .unlocked_ioctl = osd_uld_ioctl,
+       .llseek         = noop_llseek,
 };
 
 struct osd_dev *osduld_path_lookup(const char *name)
index ecc45c8..4b87657 100644 (file)
@@ -4165,6 +4165,7 @@ static const struct file_operations pmcraid_fops = {
 #ifdef CONFIG_COMPAT
        .compat_ioctl = pmcraid_chr_ioctl,
 #endif
+       .llseek = noop_llseek,
 };
 
 
index 1e4bff6..9946fac 100644 (file)
@@ -3948,6 +3948,7 @@ static struct pci_driver qla2xxx_pci_driver = {
 
 static struct file_operations apidev_fops = {
        .owner = THIS_MODULE,
+       .llseek = noop_llseek,
 };
 
 /**
index 0203446..0172de1 100644 (file)
@@ -331,6 +331,7 @@ static const struct file_operations tgt_fops = {
        .poll           = tgt_poll,
        .write          = tgt_write,
        .mmap           = tgt_mmap,
+       .llseek         = noop_llseek,
 };
 
 static struct miscdevice tgt_miscdev = {
index b5507d5..58ec8f4 100644 (file)
@@ -1353,6 +1353,7 @@ static const struct file_operations sg_fops = {
        .mmap = sg_mmap,
        .release = sg_release,
        .fasync = sg_fasync,
+       .llseek = no_llseek,
 };
 
 static struct class *sg_sysfs_class;
index 5dff45c..dc0967f 100644 (file)
@@ -228,12 +228,14 @@ static const struct file_operations port_regs_ops = {
        .owner          = THIS_MODULE,
        .open           = hsu_show_regs_open,
        .read           = port_show_regs,
+       .llseek         = default_llseek,
 };
 
 static const struct file_operations dma_regs_ops = {
        .owner          = THIS_MODULE,
        .open           = hsu_show_regs_open,
        .read           = dma_show_regs,
+       .llseek         = default_llseek,
 };
 
 static int hsu_debugfs_init(struct hsu_port *hsu)
index 5624785..9043931 100644 (file)
@@ -131,6 +131,7 @@ static const struct file_operations mrst_spi_regs_ops = {
        .owner          = THIS_MODULE,
        .open           = spi_show_regs_open,
        .read           = spi_show_regs,
+       .llseek         = default_llseek,
 };
 
 static int mrst_spi_debugfs_init(struct dw_spi *dws)
index ea1bec3..4e6245e 100644 (file)
@@ -545,6 +545,7 @@ static const struct file_operations spidev_fops = {
        .unlocked_ioctl = spidev_ioctl,
        .open =         spidev_open,
        .release =      spidev_release,
+       .llseek =       no_llseek,
 };
 
 /*-------------------------------------------------------------------------*/
index 1409131..fecb89e 100644 (file)
@@ -1922,6 +1922,7 @@ const struct file_operations comedi_fops = {
        .mmap = comedi_mmap,
        .poll = comedi_poll,
        .fasync = comedi_fasync,
+       .llseek = noop_llseek,
 };
 
 struct class *comedi_class;
index fbb80f0..af25899 100644 (file)
@@ -351,6 +351,7 @@ static const struct file_operations chd_dec_fops = {
        .unlocked_ioctl = chd_dec_ioctl,
        .open    = chd_dec_open,
        .release = chd_dec_close,
+       .llseek = noop_llseek,
 };
 
 static int __devinit chd_dec_init_chdev(struct crystalhd_adp *adp)
index 81bd71f..de4ab61 100644 (file)
@@ -1941,6 +1941,7 @@ static const struct file_operations msm_fops_config = {
        .open = msm_open,
        .unlocked_ioctl = msm_ioctl_config,
        .release = msm_release_config,
+       .llseek = no_llseek,
 };
 
 static const struct file_operations msm_fops_control = {
@@ -1948,6 +1949,7 @@ static const struct file_operations msm_fops_control = {
        .open = msm_open_control,
        .unlocked_ioctl = msm_ioctl_control,
        .release = msm_release_control,
+       .llseek = no_llseek,
 };
 
 static const struct file_operations msm_fops_frame = {
@@ -1956,6 +1958,7 @@ static const struct file_operations msm_fops_frame = {
        .unlocked_ioctl = msm_ioctl_frame,
        .release = msm_release_frame,
        .poll = msm_poll_frame,
+       .llseek = no_llseek,
 };
 
 static int msm_setup_cdev(struct msm_device *msm,
index 7d6bbad..3640d1f 100644 (file)
@@ -180,6 +180,7 @@ const struct file_operations pmem_fops = {
        .mmap = pmem_mmap,
        .open = pmem_open,
        .unlocked_ioctl = pmem_ioctl,
+       .llseek = noop_llseek,
 };
 
 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,
 static struct file_operations debug_fops = {
        .read = debug_read,
        .open = debug_open,
+       .llseek = default_llseek,
 };
 #endif
 
index 8197765..28a6f8d 100644 (file)
@@ -582,6 +582,7 @@ static struct file_operations adsp_fops = {
        .open = adsp_open,
        .unlocked_ioctl = adsp_ioctl,
        .release = adsp_release,
+       .llseek = no_llseek,
 };
 
 static void adsp_create(struct adsp_device *adev, const char *name,
index a373f35..45f4c78 100644 (file)
@@ -1030,6 +1030,7 @@ static struct file_operations audio_aac_fops = {
        .read = audio_read,
        .write = audio_write,
        .unlocked_ioctl = audio_ioctl,
+       .llseek = noop_llseek,
 };
 
 struct miscdevice audio_aac_misc = {
index 07b79d5..402bbc1 100644 (file)
@@ -841,6 +841,7 @@ static struct file_operations audio_amrnb_fops = {
        .read = audamrnb_read,
        .write = audamrnb_write,
        .unlocked_ioctl = audamrnb_ioctl,
+       .llseek = noop_llseek,
 };
 
 struct miscdevice audio_amrnb_misc = {
index ad989ee..24a8926 100644 (file)
@@ -813,6 +813,7 @@ static struct file_operations audio_evrc_fops = {
        .read = audevrc_read,
        .write = audevrc_write,
        .unlocked_ioctl = audevrc_ioctl,
+       .llseek = noop_llseek,
 };
 
 struct miscdevice audio_evrc_misc = {
index 6ae48e7..b51fa09 100644 (file)
@@ -921,12 +921,14 @@ static struct file_operations audio_fops = {
        .read           = audio_in_read,
        .write          = audio_in_write,
        .unlocked_ioctl = audio_in_ioctl,
+       .llseek         = noop_llseek,
 };
 
 static struct file_operations audpre_fops = {
        .owner          = THIS_MODULE,
        .open           = audpre_open,
        .unlocked_ioctl = audpre_ioctl,
+       .llseek         = noop_llseek,
 };
 
 struct miscdevice audio_in_misc = {
index 530e1f3..409a19c 100644 (file)
@@ -948,6 +948,7 @@ static struct file_operations audio_mp3_fops = {
        .read           = audio_read,
        .write          = audio_write,
        .unlocked_ioctl = audio_ioctl,
+       .llseek         = noop_llseek,
 };
 
 struct miscdevice audio_mp3_misc = {
index 76d7fa5..d20e895 100644 (file)
@@ -807,12 +807,14 @@ static struct file_operations audio_fops = {
        .read           = audio_read,
        .write          = audio_write,
        .unlocked_ioctl = audio_ioctl,
+       .llseek         = noop_llseek,
 };
 
 static struct file_operations audpp_fops = {
        .owner          = THIS_MODULE,
        .open           = audpp_open,
        .unlocked_ioctl = audpp_ioctl,
+       .llseek         = noop_llseek,
 };
 
 struct miscdevice audio_misc = {
index effa96f..911bab4 100644 (file)
@@ -824,6 +824,7 @@ static struct file_operations audio_qcelp_fops = {
        .read = audqcelp_read,
        .write = audqcelp_write,
        .unlocked_ioctl = audqcelp_ioctl,
+       .llseek = noop_llseek,
 };
 
 struct miscdevice audio_qcelp_misc = {
index 922ce67..e5ab86b 100644 (file)
@@ -123,6 +123,7 @@ static int ev_log_open(struct inode *inode, struct file *file)
 static const struct file_operations ev_log_ops = {
        .read = ev_log_read,
        .open = ev_log_open,
+       .llseek = default_llseek,
 };
 
 static int ev_log_init(struct ev_log *log)
index 037d7ff..e0f2f7b 100644 (file)
@@ -247,6 +247,7 @@ static struct file_operations snd_fops = {
        .open           = snd_open,
        .release        = snd_release,
        .unlocked_ioctl = snd_ioctl,
+       .llseek         = noop_llseek,
 };
 
 struct miscdevice snd_misc = {
index 4e52105..689099b 100644 (file)
@@ -641,6 +641,7 @@ static const struct file_operations usb_alphatrack_fops = {
        .open = usb_alphatrack_open,
        .release = usb_alphatrack_release,
        .poll = usb_alphatrack_poll,
+       .llseek = no_llseek,
 };
 
 /*
index eed74f0..3d12c17 100644 (file)
@@ -767,6 +767,7 @@ static const struct file_operations usb_tranzport_fops = {
        .open = usb_tranzport_open,
        .release = usb_tranzport_release,
        .poll = usb_tranzport_poll,
+       .llseek = no_llseek,
 };
 
 /*
index dd4d87a..92a212f 100644 (file)
@@ -349,6 +349,7 @@ static const struct file_operations iio_event_chrdev_fileops = {
        .release = iio_event_chrdev_release,
        .open = iio_event_chrdev_open,
        .owner = THIS_MODULE,
+       .llseek = noop_llseek,
 };
 
 static void iio_event_dev_release(struct device *dev)
index 6ab578e..1c5f672 100644 (file)
@@ -133,6 +133,7 @@ static const struct file_operations iio_ring_fileops = {
        .release = iio_ring_release,
        .open = iio_ring_open,
        .owner = THIS_MODULE,
+       .llseek = noop_llseek,
 };
 
 /**
index 6649325..ed5c5fe 100644 (file)
@@ -115,7 +115,8 @@ static const struct file_operations display_fops = {
        .owner          = THIS_MODULE,
        .open           = &display_open,
        .write          = &vfd_write,
-       .release        = &display_close
+       .release        = &display_close,
+       .llseek         = noop_llseek,
 };
 
 /*
index ec11c0e..543c5c3 100644 (file)
@@ -342,6 +342,7 @@ static const struct file_operations lirc_fops = {
        .unlocked_ioctl = lirc_ioctl,
        .open