]> git.karo-electronics.de Git - linux-beck.git/commitdiff
llseek: automatically add .llseek fop
authorArnd Bergmann <arnd@arndb.de>
Sun, 15 Aug 2010 16:52:59 +0000 (18:52 +0200)
committerArnd Bergmann <arnd@arndb.de>
Fri, 15 Oct 2010 13:53:27 +0000 (15:53 +0200)
All file_operations should get a .llseek operation so we can make
nonseekable_open the default for future file operations without a
.llseek pointer.

The three cases that we can automatically detect are no_llseek, seq_lseek
and default_llseek. For cases where we can we can automatically prove that
the file offset is always ignored, we use noop_llseek, which maintains
the current behavior of not returning an error from a seek.

New drivers should normally not use noop_llseek but instead use no_llseek
and call nonseekable_open at open time.  Existing drivers can be converted
to do the same when the maintainer knows for certain that no user code
relies on calling seek on the device file.

The generated code is often incorrectly indented and right now contains
comments that clarify for each added line why a specific variant was
chosen. In the version that gets submitted upstream, the comments will
be gone and I will manually fix the indentation, because there does not
seem to be a way to do that using coccinelle.

Some amount of new code is currently sitting in linux-next that should get
the same modifications, which I will do at the end of the merge window.

Many thanks to Julia Lawall for helping me learn to write a semantic
patch that does all this.

===== begin semantic patch =====
// This adds an llseek= method to all file operations,
// as a preparation for making no_llseek the default.
//
// The rules are
// - use no_llseek explicitly if we do nonseekable_open
// - use seq_lseek for sequential files
// - use default_llseek if we know we access f_pos
// - use noop_llseek if we know we don't access f_pos,
//   but we still want to allow users to call lseek
//
@ open1 exists @
identifier nested_open;
@@
nested_open(...)
{
<+...
nonseekable_open(...)
...+>
}

@ open exists@
identifier open_f;
identifier i, f;
identifier open1.nested_open;
@@
int open_f(struct inode *i, struct file *f)
{
<+...
(
nonseekable_open(...)
|
nested_open(...)
)
...+>
}

@ read disable optional_qualifier exists @
identifier read_f;
identifier f, p, s, off;
type ssize_t, size_t, loff_t;
expression E;
identifier func;
@@
ssize_t read_f(struct file *f, char *p, size_t s, loff_t *off)
{
<+...
(
   *off = E
|
   *off += E
|
   func(..., off, ...)
|
   E = *off
)
...+>
}

@ read_no_fpos disable optional_qualifier exists @
identifier read_f;
identifier f, p, s, off;
type ssize_t, size_t, loff_t;
@@
ssize_t read_f(struct file *f, char *p, size_t s, loff_t *off)
{
... when != off
}

@ write @
identifier write_f;
identifier f, p, s, off;
type ssize_t, size_t, loff_t;
expression E;
identifier func;
@@
ssize_t write_f(struct file *f, const char *p, size_t s, loff_t *off)
{
<+...
(
  *off = E
|
  *off += E
|
  func(..., off, ...)
|
  E = *off
)
...+>
}

@ write_no_fpos @
identifier write_f;
identifier f, p, s, off;
type ssize_t, size_t, loff_t;
@@
ssize_t write_f(struct file *f, const char *p, size_t s, loff_t *off)
{
... when != off
}

@ fops0 @
identifier fops;
@@
struct file_operations fops = {
 ...
};

@ has_llseek depends on fops0 @
identifier fops0.fops;
identifier llseek_f;
@@
struct file_operations fops = {
...
 .llseek = llseek_f,
...
};

@ has_read depends on fops0 @
identifier fops0.fops;
identifier read_f;
@@
struct file_operations fops = {
...
 .read = read_f,
...
};

@ has_write depends on fops0 @
identifier fops0.fops;
identifier write_f;
@@
struct file_operations fops = {
...
 .write = write_f,
...
};

@ has_open depends on fops0 @
identifier fops0.fops;
identifier open_f;
@@
struct file_operations fops = {
...
 .open = open_f,
...
};

// use no_llseek if we call nonseekable_open
////////////////////////////////////////////
@ nonseekable1 depends on !has_llseek && has_open @
identifier fops0.fops;
identifier nso ~= "nonseekable_open";
@@
struct file_operations fops = {
...  .open = nso, ...
+.llseek = no_llseek, /* nonseekable */
};

@ nonseekable2 depends on !has_llseek @
identifier fops0.fops;
identifier open.open_f;
@@
struct file_operations fops = {
...  .open = open_f, ...
+.llseek = no_llseek, /* open uses nonseekable */
};

// use seq_lseek for sequential files
/////////////////////////////////////
@ seq depends on !has_llseek @
identifier fops0.fops;
identifier sr ~= "seq_read";
@@
struct file_operations fops = {
...  .read = sr, ...
+.llseek = seq_lseek, /* we have seq_read */
};

// use default_llseek if there is a readdir
///////////////////////////////////////////
@ fops1 depends on !has_llseek && !nonseekable1 && !nonseekable2 && !seq @
identifier fops0.fops;
identifier readdir_e;
@@
// any other fop is used that changes pos
struct file_operations fops = {
... .readdir = readdir_e, ...
+.llseek = default_llseek, /* readdir is present */
};

// use default_llseek if at least one of read/write touches f_pos
/////////////////////////////////////////////////////////////////
@ fops2 depends on !fops1 && !has_llseek && !nonseekable1 && !nonseekable2 && !seq @
identifier fops0.fops;
identifier read.read_f;
@@
// read fops use offset
struct file_operations fops = {
... .read = read_f, ...
+.llseek = default_llseek, /* read accesses f_pos */
};

@ fops3 depends on !fops1 && !fops2 && !has_llseek && !nonseekable1 && !nonseekable2 && !seq @
identifier fops0.fops;
identifier write.write_f;
@@
// write fops use offset
struct file_operations fops = {
... .write = write_f, ...
+ .llseek = default_llseek, /* write accesses f_pos */
};

// Use noop_llseek if neither read nor write accesses f_pos
///////////////////////////////////////////////////////////

@ fops4 depends on !fops1 && !fops2 && !fops3 && !has_llseek && !nonseekable1 && !nonseekable2 && !seq @
identifier fops0.fops;
identifier read_no_fpos.read_f;
identifier write_no_fpos.write_f;
@@
// write fops use offset
struct file_operations fops = {
...
 .write = write_f,
 .read = read_f,
...
+.llseek = noop_llseek, /* read and write both use no f_pos */
};

@ depends on has_write && !has_read && !fops1 && !fops2 && !has_llseek && !nonseekable1 && !nonseekable2 && !seq @
identifier fops0.fops;
identifier write_no_fpos.write_f;
@@
struct file_operations fops = {
... .write = write_f, ...
+.llseek = noop_llseek, /* write uses no f_pos */
};

@ depends on has_read && !has_write && !fops1 && !fops2 && !has_llseek && !nonseekable1 && !nonseekable2 && !seq @
identifier fops0.fops;
identifier read_no_fpos.read_f;
@@
struct file_operations fops = {
... .read = read_f, ...
+.llseek = noop_llseek, /* read uses no f_pos */
};

@ depends on !has_read && !has_write && !fops1 && !fops2 && !has_llseek && !nonseekable1 && !nonseekable2 && !seq @
identifier fops0.fops;
@@
struct file_operations fops = {
...
+.llseek = noop_llseek, /* no read or write fn */
};
===== End semantic patch =====

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Julia Lawall <julia@diku.dk>
Cc: Christoph Hellwig <hch@infradead.org>
339 files changed:
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/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/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/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/i830/i830_dma.c
drivers/gpu/drm/i915/i915_debugfs.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/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/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/iwlwifi/iwl-3945-rs.c
drivers/net/wireless/iwlwifi/iwl-agn-rs.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/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/romfs/super.c
fs/signalfd.c
fs/squashfs/dir.c
fs/timerfd.c
fs/ubifs/debug.c
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/rate.c
net/mac80211/rc80211_minstrel_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 33c7077174db118175a1818228b900f56226b45f..30b8878f12026bab4d712d63c479ca3755cf0004 100644 (file)
@@ -314,6 +314,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 b64ba5a98686a2ad8fe85ffdb971d51725b192f5..1e243f46a9699341b9e35310632fcd6ed25fa3b4 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 3b2dd717b788feb315d36cc5ec34cad57b3ebf1b..f91c3b7bc6558f89e918f76e7a790fe28d6d89b9 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 f9e7cdbd000568a562ac4bd062a550df73f3a853..25ad95ba92a43377136077841a4e7ecfd5e19e5c 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 54fbd95cee9b40cc583fa6df49767b2f859a5598..9764a1a1073e933aa1c2d6a73e51483553da2dfa 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 9a4b07594389a6f45f390885f8e62a6365356ded..08c0236acf3c5ab903d5e863b17f8290bd4a8e7a 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 deb2271d09a327a5301cb2aeb97498673126f053..c6a4c8f2d37b8b47b12a6c92dbb4e83c96598675 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 884275629ef7405dfbbb901e0758fdc75594fd3e..95aadb4a8cf1d5849d114a6bfe8379fe698084b9 100644 (file)
@@ -387,6 +387,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 a07b6d25b0c7956eb6e4a6fd36aa070a75a6a140..a276f0811731c8d0b3bb68f30c1bb3173a1c5e75 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 77a94181381981eebebe5760bb9b1ca0c376614e..c413539d4205f929c75382bac787d74893575924 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 7dcb1f85f42b157c93eaaac921381e8ae163ca84..7aa6ff00a117e288f62b2b28c707e9780f51af8a 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 ee2dd4323daf4ee0c901045748714057c738e64f..e501632fa8c263884d6bf51ffa6cb34eb3f95b36 100644 (file)
@@ -250,7 +250,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 b07646a30509680b0ad31c3d3c288de7d78107c8..dcb43fddfb991b1689a3afcafef1c02ff4710529 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 5a3e900c9a78df9cf36c8483655a280c2d91699d..ddb23996f11a8ef56183c155b82c20bd17214b48 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 2dcd27adbad485442f55278119b51e298ddf0687..06b24ebda4108e4eeccf48194c77b802c5a53683 100644 (file)
@@ -893,6 +893,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 5ec8a7d4e7d78db9b1eca0a5e5461414f2c71bb8..0649c8bea6763e92cc7f0a9988b002f96c6e2b3b 100644 (file)
@@ -870,6 +870,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 bef6eb53b1539b9e6974b1e472aa638187e6ca6c..0f7b101ee5ee9a6d751e8c0cbef9d6f5aa043837 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 ca248f3adb800e26403d591b9c72c8cae0c200fa..a2e8a8c39856edc1b56d58915893780d69a1fd2c 100644 (file)
@@ -247,7 +247,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 195ec5fa0dd2a25f14d612e13f18d174756695b4..b82e08615d1bb81960a9010aeba114f522b80657 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 aa8b5fa1a8dec906c19b7ce99d6f721f60bb025b..6f22c40416304f34bbf0d6b2e6f6f60430ec578a 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 fa1eceed0d23addfffb6674061a7ca6504317446..30862c0358cd7a3644f9dd204e203bb2d7efa239 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 cb8617bb194ba638eed418f27aff8fa61a9e1591..1c4d4c7bf4d4a478c938635fbc698c3c0596d6a1 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 11ac6f63967a24ac134e406d253400f3ff496bb0..39c79ebcd18a9dc52614844d925f1a9f6df3ed61 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 26f9b9ab19cc66b020486be6cef3e21cfe347126..557ef72472e08f082e19f068f7d131b93ab9856e 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 2bd2151c586a9c219e3eb1a574f65f0105589774..3eb3cde2f66160c0b4f5aeee889dc9adbfedf823 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 d4ed7a9156f59d847985909de7fe64f788664921..ca35b730d1892e2e425fa74bce388b7a95c3401b 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 50362b6ef6e93d8752ffda779ffaee429e2a054a..b1dd962e247e7ff1ca25021e9fd3373c13a43832 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 67a84d8f118d665ff78d965752ab08dc3152760e..2b442e6c21e62b47409a35959e30d95b330e9f0f 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 638883e23e3a32b5fd9ea30885cd63122a117f97..0438f819fe6b1adf10a16c42f6b32b8b2c75d059 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 33e5fc7334fc508be63b52ce6cae473f24726a6c..42d0a886de0517a93daae17cbb852e223c204391 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 57ddbb43b33ae869854b7ffa2eb27ab036d423df..1de2cbb92303c880cf9c41b4635baf03f13d1a6b 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 80e9e7652a4d1371b0a17032fa4eb4edc7e0fbf1..554457294a2b5c8f4429b6ba4a2f99d26602c022 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 aa819dac2360e946bf4712fc4f56c129a3113355..975e3ab13cb5477b29ac4ffd504d34e6cacd4325 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 1211bb1d2f24c810d11b79ef8d755ff3e8b0e04d..020e51c063d2d4d52c7c2f5a39690197a22979d7 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 ee5ab1a578e75dcf5fb56f30e710ce89a31b0b89..26cf177f6a3a09d90f610d49eaef13175ae5ba8e 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 98a4a4c267a7818765ab88bcbd0c01f11b512a15..74d98670be27023241aff6ba8a2b02c35a052e0b 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 98192261491de90d5951dc95530ba0a666bc02fe..5ad6bc078bfdef7577a69ea958d3c33323707ffa 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 01e6abb769b9ede9d901df10e2161ac0c106cd34..8132dff078fbd2d5e2ee63d7614acd83df729f24 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 2c0046ecc7155592401d56c340c275e2697348a7..52de4a9424e86a781a034770352e8b0b5df2ffac 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 83e85c2e802ad6a075b08d0d0e5dfccb50e81108..6addb914fcc8edca6aae25d0b9210165b9422dde 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 584b965dc82455e16df1597d1abef680c0a1929d..1e54a7843410e57d021dbac9921acf4f39e2f481 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 cfcac1ff4cf20276d19ee8fb137dfc84a6cf8abb..dd1e6f871fe43f03f5828a188d71c3ec5a73b3d5 100644 (file)
@@ -166,6 +166,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 ebc680717e59f69394793eeea1cd6e5e9ae50034..975613b23dcfb9cd0b60d46afa05260e733d90c2 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 7158393b67933371250f029ef0ce7ea1e1c705dc..8501e7d0015c7b301b1e2d4773315dc5eba74e7a 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 4949044773ba78b93797d43701ab751b0a1bce23..981085a93f30c4a48539e81b0cabce905a39de53 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 4c9c67bf09b70e093e784c579b4e95a88e3acac8..fbbc4dadecc4566968d26dbaed45173c15516e3e 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 8a85dd1b1aa1d515e76b1e1cd9fdb213b27a6bcd..1e8d66c1336a177a717a3fa1a1772f0cc5bd31aa 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 ed41562909fe6d368f9f2c50a6c3000c6d9c9f5e..7a35b72d7c039d633bd8a4c9179eb4e4a5b7a549 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 8afd9f321f100de0a8ddc236f1f411d4d98680ad..90fcf62854bbac679eec40879db54df2ed6d09b5 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 fa6551d36c102105c8654c7d4f60f82e65990822..0b3d37e83606b441f69a913a4f919e617b020920 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 312ef0292815f1a3a757c10d3f994d67702b3531..50ac949c7f1c5ee85381bd5ade1a37244a2f98d6 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 1304bcec8ee57d1b15c8cb72aed55cea283d2d5b..7c0fedd98ea0ad215abc436b842e2bf8c27965ed 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 82d58829ba591eeef13a3ed4eca96b8a019c4d85..83e381a26b585fa643f0b939fdba08fa0bcfdb3d 100644 (file)
@@ -968,6 +968,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 5281ddda2777c99c40f0830c1d4e5022cc5b37aa..cbab9b07bf28f7c5e19611bf6a25354fb812a5e0 100644 (file)
@@ -180,6 +180,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 7de27d49c4b9fca8fe773e2444ba8e240417585d..6355b575ee5ac22498b32953e0955cb2811e81ba 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 0e869b3f81ca90ced23d929ad54a9cabd9048d08..411620ef84c2e83811adc73c8cd255f58a99549b 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 d439314a75d8b183f4eecda98a3a6ef4dbcfa7ee..85d908993809d39147ecdc4c9c4bc2203bf28d0e 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 4e2c367fec11df739ff4b19abdc5ebe1c1cd42e9..dfcb33e8d40542dd9d1c3e5439e546b1cf08731a 100644 (file)
@@ -7062,7 +7062,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 4a1b9e7464aa51e0d529ba920bbc597d5f9a381d..32b484ba21bd440006ae6112932ea92c248c6a33 100644 (file)
@@ -265,6 +265,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 c397b3ddba9b8676293bf773edfa90b29cf3101d..aa27cd84f633218e34ff03df6682bc1c7ecafbb1 100644 (file)
@@ -234,6 +234,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 bc5825fdeaabcfa297e9d00ffe1be1e8ade921fe..c372c32e0db30c334bb67446e9165e66768a23a6 100644 (file)
@@ -239,6 +239,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 b1cbeb59bb7622e61f75bc58f373cadf1e822218..6a4642dd8283508b8cdcf7afa80e30c5c66117a7 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 54739b08c3083d413c70981fc0f0ca095cec0716..fd6305bf953e4084c9b7557a26acb002deb101fe 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 3aa7b2a54b6f75b04014847e989bf7215dd41bc5..67c180c2c1e0fbf27951862e30a0787deba4d4a0 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 033e1505fca9fe3ea2fee9b2b064578ad45637f4..5ffa6904ea6bae832f330dfdc3f32caac3b9a453 100644 (file)
@@ -402,6 +402,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 836d4f0a876f5ca53b03f8314acea1a0f23f5ca3..44660f1c484932cc24421372558b5e8ed0049147 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 d5fa113afe3729760b00b5ee6cd048d20a169c27..f6718f05dad4a4ca16465967dd8779984637238e 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 91917133ae0ad7de08d58a9379e943c9ecef2988..a4a6c2f044b539e8472a8398ed712e3191febac3 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 4d830dc482efd7466295d24702da85e65ac045f8..0cf1e5fad9ababdfebca61e37ae7b919318b3a6c 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 170693c93c73d275fceb2c310c41df8a323c9297..4f7aa364167ccccfccb1736289636bf82d572783 100644 (file)
@@ -288,6 +288,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 dbee8688f75ceafddfd80a5be5b7dcf8affd7140..50462b63e51bb8853cc59951349dcee93b5d8a84 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 8a1b28a10ef0af184e4ff4e03e9eaaf4783f97ca..353be4707d9252f70e2059fdb5e9389bede34e2e 100644 (file)
@@ -482,6 +482,7 @@ static const struct file_operations dsp56k_fops = {
        .unlocked_ioctl = dsp56k_ioctl,
        .open           = dsp56k_open,
        .release        = dsp56k_release,
+       .llseek         = noop_llseek,
 };
 
 
index e3859d4eaead6e67552cdc3d2f24412a8a31067b..007eca3ed77cb5e499faf674c20cbf87216da275 100644 (file)
@@ -105,6 +105,7 @@ static const struct file_operations dtlk_fops =
        .unlocked_ioctl = dtlk_ioctl,
        .open           = dtlk_open,
        .release        = dtlk_release,
+       .llseek         = no_llseek,
 };
 
 /* local prototypes */
index b6c2cc167c11fd39ce485f72281c79fa4e98bdd7..eaa0e4264e16daa2c8c9519cf3edda7f1482bb11 100644 (file)
@@ -497,6 +497,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 3d9c61e5acbf2adb354a70e0a8ba532568ef06d0..788da05190ccf865ab47f0e53848c70faa8f5d33 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 d4b71e8d0d23a13648be2e55f60f606f55b99edd..2e49e515d8e7037b5dd2edbca23db380db58717a 100644 (file)
@@ -236,6 +236,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 d8ec92a38980b451d70d454e04d20bf931d9f858..c6709d6b0fd07f33a3747589cca71807d2e22300 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 654d566ca57c676ae6b6aa4cd2edb3f66d20f448..da041f88f64a4b6b85b68bb478dedbb8d53789d3 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 be28391adb79b7de338594ad0a9cd5d865de5fdf..667abd23ad6ab91b81fa957f3c80260e9c7735a6 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 938a3a2738866c71e42b7d8112b29966cdf3417c..d2344117eaf5d0e454d61a3c542c0b0f2b4dc069 100644 (file)
@@ -748,6 +748,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 a398ecdbd758058104e81223f1cbdfe7057e9a4b..8ebd232132fd8daa0ed0051931f7a73949da3564 100644 (file)
@@ -804,6 +804,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
 
@@ -830,6 +831,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 {
@@ -881,6 +883,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 abdafd48898029324d21153637bb3af4925e0fe3..778273c93242f5efbd1629a0f7c9d102ed907b4a 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 ea7c99fa978f9e8d2877ba8a783daeef5214cc5c..1c4070ced066466623817616ee6466dbd6c7f93b 100644 (file)
@@ -72,6 +72,7 @@ static const struct file_operations mmtimer_fops = {
        .owner = THIS_MODULE,
        .mmap = mmtimer_mmap,
        .unlocked_ioctl = mmtimer_ioctl,
+       .llseek = noop_llseek,
 };
 
 /*
index ecb89d798e3553bffe2044cd27e0ed7aa608729b..966a95bc974b2c0489c7c4f33b52d1b3872238a0 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 a4ec50c950722410e9cd6dc99b72b76edf11fb2b..0464822eac5373be779e0782ba700a8a85e1ed6c 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 2604246501e499eda6568527e4c64d8b5a13bc48..8994ce32e6c70046c2658d69a4bc4e828636c43a 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 8ecbcc174c150b5deccde7ca3f5ab0c199781b0f..b304ec05250124e55183fe59f55d1f99e9e33356 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 ec73d9f6d9ed92c9fa527718ff44871bd7d64669..c99f6997e5e7bee3945eb97f8e98b5b0d6e322a3 100644 (file)
@@ -1880,6 +1880,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 815cde1d0570e86d4ba0e8970ef60248997a3302..9ecc58baa8f3e63f378fa752fadf637c12eff975 100644 (file)
@@ -650,6 +650,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 caef35a468908046be61975611ea7728661ed32c..5a1aa64f4e76c5b9178dbb9d3ef4fe9285ed8791 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 d58c2eb07f07aaad25a568095ccaab7d3e53f686..1e87a93164bfcd18db17c0a1dda111e9e5eeb36c 100644 (file)
@@ -241,6 +241,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 99e5272e3c53e1ef1aa32f0733b1bbf0e9f2487e..0bc135b9b16fa680d0111aa932eb4cc39ce36ee8 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 32b74de18f5face7e590ac25fc955aef373c6247..444ce17ac7223a9e3eb6dfffe2d8f562ab3093cf 100644 (file)
@@ -357,6 +357,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 f2167f8e5aab631acbf56cd91338bdd60644942e..8ef16490810c6abb92e17022ebc42c9e6e5d1025 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 5b24db4ff7f102f1b2af7b154f1690cf71b29c39..e53f16865397c491fa4afac65988c49b0f391ff9 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 ef31bb81e8438a83462a48d4fa6ee0bf5cff7faf..f3019f53e8752becb85b459cc6ad5bc902b986ab 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 cad4eb65f13de1cc22e0301c9c30c22227d7804b..ad264185eb10a0fb43d1c67ed86a7cbab9b70381 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 80ea6bcfffdc4136c07a79483d4ad65d11556302..d087532b29d76d0c2385d25a011d8273d2718048 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 f8bc79f6de34875cba7ac1e74e9110ff3c236d53..3d6e9617245327130c7e1003a2de8b9f71fa9885 100644 (file)
@@ -95,6 +95,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 c7072ba14f48130d8f04977232bb38ed8dbe067e..493b47a0d511bd1a01dcd8985b76666f66a03971 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 b663d573aad99ed5257f9ab324d566309e70ac37..be6d6fb47cc53d020d7d4605383b10c72195c7c6 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 557e2272e5b3195a70525c5c955fa6c4dab0ba0b..ae2b8714d19058cfc3371d7b7cc587b56fb2afbc 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 8528b10763eddcd2253a5dca8e1222969bb76c1b..bf184fb59a5e4329ca11a391cefdc011ea050dfd 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 84da748555bc824379d1b49733db1444f33fc8d5..ff6690f4fc87a2593c4e350bad8aaf030daee164 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 61b4caf220fa83bd15815ea0f82b627f2d773727..00f1bdaa65cdf0217c1084dc5e8bdfc8d94def26 100644 (file)
@@ -119,6 +119,7 @@ static const struct file_operations i810_buffer_fops = {
        .unlocked_ioctl = drm_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 671aa18415ac52d17164e79b4c2a9f287b02da0d..5c6eb65f4e5157b04e319326e255a0a00c8958c5 100644 (file)
@@ -121,6 +121,7 @@ static const struct file_operations i830_buffer_fops = {
        .unlocked_ioctl = drm_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 5e43d70767896e80400c96c628f2960270e1f2c4..048149748fdc9457f48ee5884f74d5cb849e43c0 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 b87569e96b163c04fb35790ef8c457999480e3f3..3b7e0acf8164799968d07ed2fedf4376769ed332 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 850d02a7a92539056d85b0b18eba88f8cb73cb38..61a3e572224aa4b578002e5699a37dfc26a7d243 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 f6e80c7ca61e53c0f9655778306ffc3e82a28b9f..5a6879e235ac5264482fe94d3c8976231dbc6c36 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 47d70c523d93474a658bbaa5aa5b1cfb327f194b..bb98fa87aa86c4eb171ca889aea8f5630865ed9a 100644 (file)
@@ -329,6 +329,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 0a29c51114aaf0d36c64f6c8c25195db5e2f3747..e8f45d7ef3b24fd98bc6d37d9a8eb7c6ef952d7e 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 653db1bda9348ebaa62d8f17f93c46a4b8cdadda..23b8555215d2fa61e52e2e08f85935fdd0ca2860 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 6d622cb5ac8160c57c372bc0c0d30f5ee912d6e0..23d1d1c5587c0538a8175037168c42ec48c2ce32 100644 (file)
@@ -1903,6 +1903,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 15341fc1c68b0600e769141562bf08897c1718fe..c976285d313eea4a6b5e2916c73a56350eeb3074 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 d4ce8b63e19eba275cc2e11235dc751ed438e1f1..daef61d5e5bb58afaf224da91a9789869a1224ce 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 65eb8929db22c69da11950ef0ee5e80913a9cc52..6078992da3f04d6de686838c46ccfd61f6f43922 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 2fca70836daea5d4f24f16ecc65d32f1a4249099..d13e72685dcfa17388c274a62df80f88f68b558f 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 05dcf0d9a7d31a253267010e51d4a3e20fb02edc..204c4dd9dce0608eecfcfa74822e837d9e895916 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 6b11645edf35532506edc38076148b3ccb85c6df..aa2be214270fcfc12a9d33d20f3c4054d8b8dc02 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 9f989c0ba9d302fd7d643d4a5389e012d44559a5..a0e6613e8be6151d3fdc00efc3005ad8c6f22ebd 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 c908c5f83645c901f87823e2a587ba65d9b5ee97..51330363c0ebc3cd956b60b8ed963b4e4573daee 100644 (file)
@@ -761,7 +761,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 ab6982056518e3c086c57738f360574b211108aa..7919c25372257e0baa922903565f55fd94effb29 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 d85bd8a7967d2ee26aff8e5313c67a0cd7290532..502b2f73b43439f6505c191ae8cd0f2e71c21fdc 100644 (file)
@@ -736,6 +736,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 0d4266a533a524564adcc85cc546736248753628..2771ea778d340df2a8c8003da295f8c988512be0 100644 (file)
@@ -804,6 +804,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 d528a2dba06418eb5e80097552463e9abec5db05..31ec7265aac63806060a665278afc70d6e18946f 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 998664854440005cd62d0fdcbab339dd55e968f3..cd82bb12591593be230f06fbf89aa2a52f6b73b2 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 de43c8c70ad082451bbce7e7545a234c0043b836..859c81e9483bd760cf48d401457d06c07efadfd4 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 85b714df8eae8d8ef372f74bedeb4497eab1f8d7..3c781cdddda97f52f10b7daa72d5bd41e1436fc4 100644 (file)
@@ -514,6 +514,7 @@ static const struct file_operations lguest_fops = {
        .release = close,
        .write   = write,
        .read    = read,
+       .llseek  = default_llseek,
 };
 
 /*
index a3d25da2f275f0fa3023f1338073ecdc717bede8..1a57e88a38f7554ef3c09199090ce52575d041ef 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 2d17e76066bd0b640890d8a0e0ddc5ac7170ec85..44d171cc225234c8105a0cb0b40fbdd608540480 100644 (file)
@@ -2398,6 +2398,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 3e39193e5036e709665e08345ba242d83662c606..4b54618b4159368eed4e3febee680b2ff94724df 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 c185422ef28c8c31f1c67d0718773614a4e0fc73..faed5a332c718f0720bd87b44dbb8f09f0d5b5fb 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 5b145e8672fea0d561a27f00d68db1c76998d943..0acf6396e068212d14bb36d240f62304d9087565 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)
index cf87051628458efd1035b172d22c40f3b3e00c8a..7ed74dfc6b928d3858b3084a1567a218e5852209 100644 (file)
@@ -694,7 +694,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 0042306ea11b8539eeba3a8f41f73fd970e6e5f7..75c20ac82c0f3e81b29ac2f0e7564f6d5f603f46 100644 (file)
@@ -1150,6 +1150,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 = {
@@ -1225,6 +1226,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 cb97e6b8543295971d30f8b21c233791a725f26e..ff8921dd737f83d18bcd0fc0602ef39492346670 100644 (file)
@@ -1628,6 +1628,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 4d45b7d6b3fb248f267f4754601120c591e8bcb3..970c9b8882d4445eecbc42961255d45c31486341 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 6c3a8a06ccab03ed30fcf4481958a1d532f7fbcf..82636f517b9e8108a04b31f0c63b061ba4de93b7 100644 (file)
@@ -1475,6 +1475,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 b915c39d782f1edc994472d8788aaedc0b722b8c..774b40e4f58967cfbbfdd1e0e2d0d8a1c67e3af8 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 d3c2cf60de7613ff7ba44a93c811d7273d5cff07..8ffb565f0704112cb10c63edc6cafb0aed6a3cd0 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 a6be529eec5ca72e3dd8f965e334b956b4911557..893fbc57c72f59a6b3e1c8e2d58fff86031bed5c 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 13efba942dac42579eafb43870ee3fc5d85082c9..6ef3996565adb3455b3cd4d141d9f2d25106ce01 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 4eba35a018e3de051db314ea573e9400ff2fd816..43f61f2eca986a7542c6f5d827fc4a0fdf815df1 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 b070e88d8c6b3b7e14ae83dad807f2d33b259b1f..908f272fe26cc0b1c6ad8c4517c8342b1a94a44a 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 66379b413906a3ed5147370040ed7ccffd0b5068..b048ecc56db9ca75ad79f1ebf63c75181344fc43 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 557a8c2a73367e579e8db86fbc3487702aae16a4..69c1f2fca1415a9f18fb71fc47cf4a7a9197e944 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 75ee0d3f6f457707d79cbf5f5d021469710eb06d..6b38b596429440426d3ff7baff966c98e0ec7457 100644 (file)
@@ -279,6 +279,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 cb3b4d228475905fbdc25bc00605188e2afc53c4..28852dfa310dbfe60122ce6fce90597164a05d2a 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 53cb380c0987d9d5e460828c801e2f25790c1f40..46bc6d7551a3e7ea7b6398a9bc44d74f5fac8c6f 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 3d2d1a69e9a084b01c43ed2b23c75679cdebcaef..af9fb0ff8210d5b3d34c3a2e788123b2a7745aaf 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 f5058ff2b210da07dd1411bdd8a12f1dafe9ddb2..8427533fe313c35cb38727e533cd77dd35cdb4af 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 c327527fbbc854d6cf4f63d0457221cf434869e6..e2bf10d90add64cb445545c570df20021b75d326 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 6695a51e09e9b86340aa0cee342f2fb8d99e1159..323e81e9e80849d0bbca3293096e907cf6c75826 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 b1aec3e1892f3953a1f1c7af5e839685eb7f1f3b..9c70b5fa3f51e03b0ea51c84d844df4c22089ad3 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 1d05445d4ba397cb04545d1ba105e1040c864176..ce77575e88b3182b0ad06592ba391488d5ca228f 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 4cccc29964f6ddd0c7665369b034651d099a90cc..fb339c3852ee6859b327a5d366165b1c45d8eea5 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 54aae931424e69aa5cecc534ee0b8f03303383c7..cf500bf25ad578d6c205c63bd70a9d281a72a7b5 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 7d09b4b17bbd4b5e1146fa295ea6a22ffb571014..bc2ca7d898e9c269c565cd71c0eaa6928fde4f21 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 8e84a08ff9519ae28031853c62cf3941adf0e93e..293e1dbc166c4cb5027ad3cef324d07ab1f1164a 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 23e5c42e7d7eb31798aa72f7e995f3537d98a86f..a4378ba31ef6c8092d7a9830ae6956a022ea1eea 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 53b0b7711f02a4c595d95fd0a92ef62753b33f65..0a0cc9667cd667c6468e7a749d0ab2de9fa89991 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 edcb52330cf5ebbfca816cf6975b49221a1a0a4d..56383e7be8350757dca6f7cafcd7b81a657e7529 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 74e94cc10e01dd87f12b9d229a07b0f5bb3661c2..fbf3b0332bb76c4957d066f90478106ae001d42a 100644 (file)
@@ -962,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 88560d0ae50a2457d1373103db85b98ebb61211e..dab30a8c747033e0682f1feb7751f0b16fc8e089 100644 (file)
@@ -2802,6 +2802,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,
@@ -2835,6 +2836,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 7d6f19a2805e138d4ac2ed7d4b90da44c2b2d252..cea81e4c5c82d7b40c9a6987f36b749b9c69ecc7 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
 
@@ -543,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 a4ae7c4d94b5d3fbe6d2d9edc5d1cac5f67553f6..fa620a5e53036a148ad0a99369b4a4dc3b8cc8de 100644 (file)
@@ -238,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,
@@ -259,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 6e25303a8e7ff78fc3e6242fd55e394286de0a26..66c2b90ddfd461df7471aef34e7c3335c84a360b 100644 (file)
@@ -239,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,
@@ -293,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 bbd7516e0869461c141659004580d509ec5e97a5..9bb4d4bdc237be4b5797e4bcea4bcccf70dbfb04 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
@@ -93,7 +94,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,
 };
 
 
@@ -105,6 +107,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,
 };
 
 
@@ -116,6 +119,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,
 };
 
 
@@ -151,6 +155,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,
 };
 
 
@@ -163,6 +168,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 2766a6d3c2e9c8fe2f7ab2a2d1f3457275693f80..6b6a1f71957d13efab64ce9bd88a19ad2404c9a1 100644 (file)
@@ -117,12 +117,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,
 };
 
 
@@ -183,6 +185,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 909924692b8aeeb7a49c103cd31d2159e347eb9f..b3cf6223f63acdb80114cbaedf139800998ad3a9 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 e3154ff7a39febe1c5021352f431f2d5fa243064..f200677851b8bcc508cdee1f350c3c829d31a12d 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 d60557cae8ef4fdadadb10b343125f174cb7508d..ef151ce044303b3e460ad0dc81a6703e282a9571 100644 (file)
@@ -748,6 +748,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 7158f9528eccd74a238b85b783a094240d4de6af..c71d89dba302cd1024ec3c167e5a168c390224c9 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 857dfcb7b35999c694bcd740d51bbb51e4bf7ecb..eb28fb01a38ad86e23580b53acf81f6a7d719745 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 e021ec663ef9bf140283ebe5a7b698f01438bfb6..5b8b8592d311b4a0c3e7df7ecdb0842821907640 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 572a1e7fd099f5da539f070a1ba3475f26ad338d..e0702d3ea33ba669223b5237f3a60acba8cfa35e 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 539045acaad42875e03f7225f0249b55251c8e30..883e2db02bd3c8351e8195b5b45b12e84dd44fbf 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 04e532eec032083912e05784f7c29d71f2244104..0e7cb1a841519cdeacedcb40a2eae43d36e71b62 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 e40a1b89286667d02329800f64c03d2fa35cfdda..0d6dc4b92cc2daacc90a2a8e5210d84b560e7a72 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 e13508c98b1a754c38509f5cb89ce06eb2044e44..12ef9121d4f0fb9027118943ac177e3585a50cc7 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 f5ea3384a4b977ca6646fbd0e37bfd168928892b..3b94044027c2c0229df51a7c6e05f4519eb00df6 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 a83877c664a654108791d785526f22f7de4e7043..f2b77e7bfc6f389aa11061a2c9986edfd98ff735 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 ac94ac7514590ea1f15c4ff560f61ddcbbf8df17..ca8e1c240c3c29b9dd7be4cda58be76cbaa49c63 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 41e0aaefafd5bfce4fb13422eadadec736732386..f5221749d18069dcbb7f917b0bbd09ccadba8dcc 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 fcbd2b756da4caf97f32c72348281110c1716d8b..1838cda68ba8ac3258129646081a6f1cdb62b724 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 1690e53fb84a80e220f32a1cfb0f066b2f47282e..55f71ea9c4180c853148314c13e31df8cd608cea 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 078e5f4520effe3a9e75c3249495574c1de0dff8..8ce414e39489495f9da40f84fa08630ac2beb215 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 e20b7bdd4c78e2409fc2783ad38e3fbb10e62e55..67aad69cfbc27e3eccf3c2f3276bab681bd971cb 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 f481e734aad488f762bf16e3289f72ec42105508..7afac93d889fda72404f8b2962f28c02401c6457 100644 (file)
@@ -890,7 +890,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 30d735ad35b5ee9a4909c686be1b6b7d0172a559..5a23373060376f84e6b4202f3700ebcd8ae0ffc8 100644 (file)
@@ -1059,7 +1059,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 cad6f9abaeb9cc274ae61ce006788ca236eae4cc..13af86eec96e7198c49369373e01d0bc417fc632 100644 (file)
@@ -1039,6 +1039,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 d6532187f616fefe0095ae11e071abaaddbb79b4..e40c9f7a002a19d12cb24552f885a81598a0009c 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 ffc1edf5e80da4bb9158caa312a395029539a29c..7a61206ed1c038ad2e42133b464bd2cd65f724b4 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 b860d650a563dfd6689815bce2e908c474181610..9886586df01fb9c3169ee1410565911dca0ef52b 100644 (file)
@@ -372,6 +372,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 0b6e3228610ae08371ec9189ae95511b20e186d4..aac80f7bb999056f5d973092c5ab27927d58cbef 100644 (file)
@@ -101,6 +101,7 @@ static const struct file_operations megadev_fops = {
        .owner          = THIS_MODULE,
        .unlocked_ioctl = megadev_unlocked_ioctl,
        .open           = megadev_open,
+       .llseek         = noop_llseek,
 };
 
 /*
index 41f82f76d8845ad92b7bfa765936ca513f325dee..ab801232d77736155c4336a2b2ffa203631260ca 100644 (file)
@@ -75,6 +75,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 99e4478c3f3ed4efc8d018ee2cc5f3b98d941514..209cc87b9a32387382e5661867507835cc8d0a95 100644 (file)
@@ -3957,6 +3957,7 @@ static const struct file_operations megasas_mgmt_fops = {
 #ifdef CONFIG_COMPAT
        .compat_ioctl = megasas_mgmt_compat_ioctl,
 #endif
+       .llseek = noop_llseek,
 };
 
 /*
index b774973f07658a3346fa10239846ee74fc3783cf..9a4e584ae3ccf1fb9949ca4fa0fd74362868e275 100644 (file)
@@ -2952,6 +2952,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 ffdd9fdb9995bcd158ae293e353fbaf99a19171f..b31a8e3841d795154672cad902ec628bafb59c6f 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 ecc45c8b4e6bd47d851c79f82c69af9447861b25..4b8765785aeb0cb3020acdb51b1b0218e42bac34 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 1e4bff695254b4fb6a4adbc1008ba4a999352088..9946fac542556567bea18e0c8f3ae252267fc81b 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 a87e21c35ef269ecae82f68e49ee235dd3d0eced..bbb02f6e917c550ca8bcc382c33d5fb4ac740b80 100644 (file)
@@ -333,6 +333,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 78d616315d8e18e1de032cc895d65801ef81a54a..00baea1e2dbf1b973783cf868c3b742d6b23624c 100644 (file)
@@ -1351,6 +1351,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 bc9af503907f4b24ac0845068701b2de1474a105..6703f3e802a2d8948d036739f5218d36ceecf3b6 100644 (file)
@@ -227,12 +227,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 d256cb00604c55db5cc2ce25233b8d8e189c69be..a32aa66d66bfe2f4e9f3025104dcf5df928afe64 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 ea1bec3c9a13359a4058a762e9f2f8de7755cc36..4e6245e67995b0b41395b63207e8edda43638b4b 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 14091313cebbe66c419b73453ccd0b158d89c1da..fecb89e8c66365dd00cd7ed14f9012f064cf3160 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 fbb80f09a3d9213f85b8091c965a2c2e5642886d..af258991fe7fc8f653ecc5d862adb8fb59161257 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 81bd71fd816ee69a56d928b9122dc50fa34fa129..de4ab61efd4b72b75f62bef0fb3259a491a7f65f 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 7d6bbadd7fc72164d3d879dd3a4a147b614287fe..3640d1f2376d62cf4c7d57802675a7a27c8f40fd 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 8197765aae1e8d8b173ff120473e3f9eda421385..28a6f8da94777c43440089a886e979775ffd958c 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 a373f3522384aba567ba33213aad568ee55d8a5a..45f4c78ab6e777d855761e7881382ffb887b1826 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 07b79d5836e5e984ac834f77695b7ee7596c80ce..402bbc13281a566e5915e85ff56d95ea1d9d5542 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 ad989ee87690a13dd53ed8f05f2c65c6bd868d2d..24a8926473702bc4b2919c93618eae8751ba5d54 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 6ae48e72d1459cdb938a062bed40a9ed5b05c6a3..b51fa096074e3949ed2fef6104c8b9cd217149d5 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 530e1f35eed35946a799800ec28386a691b0ef4a..409a19ce6039ecc2bcc4e755c01661da41014c04 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 76d7fa5667d549dcfab4f8d921dee15a52a5ae12..d20e895415676146cb2a1802114968074bf5ab85 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 effa96f34fdceddfe020fce8b656b4e4faa6d23e..911bab416b853ca43f27267de82e63742c51c6ac 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 922ce670a32a40276835c98fff78dfcba0ac123b..e5ab86b9dd7c80b246f3ecb9bf3048ddfaaade5b 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 037d7ffb7e67030519bd92283cdb09b44893cada..e0f2f7bca29e11836586c0836a786c069b6c2768 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 4e52105e6070a9776c051311bd5df2fbb8a425d1..689099b57fd2244ccd6d37798b87a203859013db 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 eed74f0fe0b634c9d2f8cea5a6ad9df5ce41eed8..3d12c1737edce5e3d5c9e0971bf988cab6063c9e 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 dd4d87a8bcaf1f101cc40ca4949eaafb1cecc3db..92a212f064bdfcfa319d5e4cfe030317b3684e17 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 6ab578e4f5f36c99ffa9c938204dc06c84a40952..1c5f67253b823ba53291764d8e7dd7b757b317bb 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 66493253042e8ccedfa7be8e21c317f8845c7093..ed5c5fe022c9f6a197e358059962f3d3bfc6b848 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 ec11c0e949a059476ff252c6ac7daeff4e75d414..543c5c3bf90715f7fa2a87afee2da18772217183 100644 (file)
@@ -342,6 +342,7 @@ static const struct file_operations lirc_fops = {
        .unlocked_ioctl = lirc_ioctl,
        .open           = lirc_open,
        .release        = lirc_close,
+       .llseek         = noop_llseek,
 };
 
 static int set_use_inc(void *data)
index 73166c3f581fd3ed8b7ef805fd27613212817c43..8f72a84f34ec5ef0d98c330a2fb68d6206206626 100644 (file)
@@ -125,6 +125,7 @@ static const struct file_operations vfd_fops = {
        .write          = &vfd_write,
        .unlocked_ioctl = &vfd_ioctl,
        .release        = &vfd_close,
+       .llseek         = noop_llseek,
 };
 
 /* USB Device ID for Sasem USB Control Board */
index a98b3f1f11e00a11293c548b2389ed684714c818..cfcaa8e5b8e619a8a1bfb4baa131c1a0fad49a7e 100644 (file)
@@ -890,6 +890,7 @@ static const struct file_operations memrar_fops = {
        .mmap           = memrar_mmap,
        .open           = memrar_open,
        .release        = memrar_release,
+       .llseek         = no_llseek,
 };
 
 static struct miscdevice memrar_miscdev = {
index 3221814a856ea3b8dab8befa616ab03f50da0fbf..6885f9a46609e05a549ce5fc4a57662de855b4d4 100644 (file)
@@ -1631,6 +1631,7 @@ static const struct file_operations keypad_fops = {
        .read    = keypad_read,         /* read */
        .open    = keypad_open,         /* open */
        .release = keypad_release,      /* close */
+       .llseek  = default_llseek,
 };
 
 static struct miscdevice keypad_dev = {
index 7ee89492a755564ca0947622cc2663a72a5c2d37..7b3a7d04a1095adbcad1d6ec1470884f1ce027f5 100644 (file)
@@ -144,6 +144,7 @@ static const struct file_operations bridge_fops = {
        .release = bridge_release,
        .unlocked_ioctl = bridge_ioctl,
        .mmap = bridge_mmap,
+       .llseek = noop_llseek,
 };
 
 #ifdef CONFIG_PM
index b53deee25d74d525faa4692e3539af0cd3ceb369..5c6239e5aa2147a61fb4dac69ca78de1b70a0df1 100644 (file)
@@ -6676,7 +6676,8 @@ static const struct file_operations ixj_fops =
         .poll           = ixj_poll,
         .unlocked_ioctl = ixj_ioctl,
         .release        = ixj_release,
-        .fasync         = ixj_fasync
+        .fasync         = ixj_fasync,
+        .llseek         = default_llseek,
 };
 
 static int ixj_linetest(IXJ *j)
index f3873f650bb43f7f68f79ee87a8c8cdf13784b3a..1915af2011757d581cee0e163052fd4b94c35e45 100644 (file)
@@ -130,6 +130,7 @@ static const struct file_operations phone_fops =
 {
        .owner          = THIS_MODULE,
        .open           = phone_open,
+       .llseek         = noop_llseek,
 };
 
 /*
index bff1afbde5a4b0ad01d0314b1661d43c972c3d84..4d3a6fd1a152901a91f45d3f64e72e3b080e3ad3 100644 (file)
@@ -740,6 +740,7 @@ static const struct file_operations uio_fops = {
        .mmap           = uio_mmap,
        .poll           = uio_poll,
        .fasync         = uio_fasync,
+       .llseek         = noop_llseek,
 };
 
 static int uio_major_init(void)
index 094c76b5de17114e83a886b872ec4e58579220da..6ee4451bfe2d204ebc8ecba57c7129fd494308e8 100644 (file)
@@ -584,7 +584,8 @@ static const struct file_operations wdm_fops = {
        .open =         wdm_open,
        .flush =        wdm_flush,
        .release =      wdm_release,
-       .poll =         wdm_poll
+       .poll =         wdm_poll,
+       .llseek =       noop_llseek,
 };
 
 static struct usb_class_driver wdm_class = {
index e325162859b0b50722e5c107854636843a9d54e1..9eca4053312efa320cea4b63325dd839b46f4185 100644 (file)
@@ -1043,6 +1043,7 @@ static const struct file_operations usblp_fops = {
        .compat_ioctl =         usblp_ioctl,
        .open =         usblp_open,
        .release =      usblp_release,
+       .llseek =       noop_llseek,
 };
 
 static char *usblp_devnode(struct device *dev, mode_t *mode)
index 3e7c1b800ebb03e8668ac6a506cc137d26bcf41a..6a54634ab823df7628b1a52c2cf1542233cf5696 100644 (file)
@@ -987,6 +987,7 @@ static const struct file_operations fops = {
        .open           = usbtmc_open,
        .release        = usbtmc_release,
        .unlocked_ioctl = usbtmc_ioctl,
+       .llseek         = default_llseek,
 };
 
 static struct usb_class_driver usbtmc_class = {
index f06f5dbc8cdc22fbedfa463c05b18672cbb99516..580bcd396839a7b502ab1500e86829ae796b303f 100644 (file)
@@ -59,6 +59,7 @@ static int usb_open(struct inode * inode, struct file * file)
 static const struct file_operations usb_fops = {
        .owner =        THIS_MODULE,
        .open =         usb_open,
+       .llseek =       noop_llseek,
 };
 
 static struct usb_class {
index 53e120208e990c5a423b76dfa5578b5991aabf17..2b98bd26364b45f6edda06d5582540b151af934e 100644 (file)
@@ -451,6 +451,7 @@ const struct file_operations f_hidg_fops = {
        .write          = f_hidg_write,
        .read           = f_hidg_read,
        .poll           = f_hidg_poll,
+       .llseek         = noop_llseek,
 };
 
 static int __init hidg_bind(struct usb_configuration *c, struct usb_function *f)
index cf241c371a71ffba80b55ef213d9d1f3019aa608..327a92a137b4613d76b1838e742177d7f931c6fe 100644 (file)
@@ -884,7 +884,8 @@ static const struct file_operations printer_io_operations = {
        .fsync =        printer_fsync,
        .poll =         printer_poll,
        .unlocked_ioctl = printer_ioctl,
-       .release =      printer_close
+       .release =      printer_close,
+       .llseek =       noop_llseek,
 };
 
 /*-------------------------------------------------------------------------*/
index 76b7fd2d838a32a9abdaae48d8c862090b3a0ed9..86afdc73322f21787bf0d1e003acbe563f8f316e 100644 (file)
@@ -369,18 +369,21 @@ static const struct file_operations debug_async_fops = {
        .open           = debug_async_open,
        .read           = debug_output,
        .release        = debug_close,
+       .llseek         = default_llseek,
 };
 static const struct file_operations debug_periodic_fops = {
        .owner          = THIS_MODULE,
        .open           = debug_periodic_open,
        .read           = debug_output,
        .release        = debug_close,
+       .llseek         = default_llseek,
 };
 static const struct file_operations debug_registers_fops = {
        .owner          = THIS_MODULE,
        .open           = debug_registers_open,
        .read           = debug_output,
        .release        = debug_close,
+       .llseek         = default_llseek,
 };
 static const struct file_operations debug_lpm_fops = {
        .owner          = THIS_MODULE,
@@ -388,6 +391,7 @@ static const struct file_operations debug_lpm_fops = {
        .read           = debug_lpm_read,
        .write          = debug_lpm_write,
        .release        = debug_lpm_close,
+       .llseek         = noop_llseek,
 };
 
 static struct dentry *ehci_debug_root;
index 36abd2baa3ea6671d185a62cbf2918d15410c1df..d7d34492934a55532eb200da71c93a2975dbdd7a 100644 (file)
@@ -413,18 +413,21 @@ static const struct file_operations debug_async_fops = {
        .open           = debug_async_open,
        .read           = debug_output,
        .release        = debug_close,
+       .llseek         = default_llseek,
 };
 static const struct file_operations debug_periodic_fops = {
        .owner          = THIS_MODULE,
        .open           = debug_periodic_open,
        .read           = debug_output,
        .release        = debug_close,
+       .llseek         = default_llseek,
 };
 static const struct file_operations debug_registers_fops = {
        .owner          = THIS_MODULE,
        .open           = debug_registers_open,
        .read           = debug_output,
        .release        = debug_close,
+       .llseek         = default_llseek,
 };
 
 static struct dentry *ohci_debug_root;
index e192e8f7c5601cdc7eda7c4ac72a1e425729a46b..575b56c79e9724b120bf00638eda3333da583f4f 100644 (file)
@@ -963,6 +963,7 @@ static const struct file_operations mdc800_device_ops =
        .write =        mdc800_device_write,
        .open =         mdc800_device_open,
        .release =      mdc800_device_release,
+       .llseek =       noop_llseek,
 };
 
 
index 801324af9470a08d5b42011bfa397a03d97cb99d..44f8b922505465b4d3dc1f7cfc6e983a0ded5cfe 100644 (file)
@@ -679,6 +679,7 @@ static const struct file_operations adu_fops = {
        .write = adu_write,
        .open = adu_open,
        .release = adu_release,
+       .llseek = noop_llseek,
 };
 
 /*
index a54c3cb804ce4a5e6cf315aa03508ac3231ee0c8..c6184b4d169551d8c3795971377d8069d81fccf2 100644 (file)
@@ -105,6 +105,7 @@ static const struct file_operations idmouse_fops = {
        .read = idmouse_read,
        .open = idmouse_open,
        .release = idmouse_release,
+       .llseek = default_llseek,
 };
 
 /* class driver information */
index bc88c79875a146712cae5fcb7461325501f20ad7..9b50db2570194404313c2b894227cc0dd3dba4c8 100644 (file)
@@ -730,6 +730,7 @@ static const struct file_operations iowarrior_fops = {
        .open = iowarrior_open,
        .release = iowarrior_release,
        .poll = iowarrior_poll,
+       .llseek = noop_llseek,
 };
 
 static char *iowarrior_devnode(struct device *dev, mode_t *mode)
index dd41d871004353b5e8bccba16b8899d4aa53aa5a..edffef6423375e44ada7e0088287ddd97dda34e1 100644 (file)
@@ -613,6 +613,7 @@ static const struct file_operations ld_usb_fops = {
        .open =         ld_usb_open,
        .release =      ld_usb_release,
        .poll =         ld_usb_poll,
+       .llseek =       no_llseek,
 };
 
 /*
index cc13ae61712a2a81915e6f0582ecc174ac8c90ed..4e23d3841b43df3a2ddd914181f6ccb581715c78 100644 (file)
@@ -439,6 +439,7 @@ static const struct file_operations usb_rio_fops = {
        .unlocked_ioctl = ioctl_rio,
        .open =         open_rio,
        .release =      close_rio,
+       .llseek =       noop_llseek,
 };
 
 static struct usb_class_driver usb_rio_class = {
index d00dde19194ca45560046493c880779f5534b8c0..51648154bb44c418309b8f573da7f3f644755853 100644 (file)
@@ -282,6 +282,7 @@ static const struct file_operations lcd_fops = {
         .open =         lcd_open,
        .unlocked_ioctl = lcd_ioctl,
         .release =      lcd_release,
+        .llseek =       noop_llseek,
 };
 
 /*
index 552679b8dbd194406d2ee4a39932d8aa2c8bd784..e24ce31230712e4ee4f4fa1f439cab445c6917c5 100644 (file)
@@ -507,6 +507,7 @@ static const struct file_operations skel_fops = {
        .open =         skel_open,
        .release =      skel_release,
        .flush =        skel_flush,
+       .llseek =       noop_llseek,
 };
 
 /*
index 29e850a7a2f9871b7c9658e0717f8926dc5bc4ac..c8523ce2e4c625c8e3afb20729d7dbd77fc5ec70 100644 (file)
@@ -869,6 +869,7 @@ static const struct file_operations vhost_net_fops = {
        .compat_ioctl   = vhost_net_compat_ioctl,
 #endif
        .open           = vhost_net_open,
+       .llseek         = noop_llseek,
 };
 
 static struct miscdevice vhost_net_misc = {
index b06647517c0e6a9523a690460c7b56ba61e89252..42e303ff862a43199172f8479eedecfb1bc11394 100644 (file)
@@ -1439,6 +1439,7 @@ static const struct file_operations fb_fops = {
 #ifdef CONFIG_FB_DEFERRED_IO
        .fsync =        fb_deferred_io_fsync,
 #endif
+       .llseek =       default_llseek,
 };
 
 struct class *fb_class;
index ecad96524570882b143827c9cfc10aa29c0b9a97..12dec7634c5548b4c10c5ba88c0c1d0acb1fa4d5 100644 (file)
@@ -175,36 +175,42 @@ static const struct file_operations sysconf_fops = {
        .read = sysconf_read_file,
        .write = write_file_dummy,
        .open = open_file_generic,
+       .llseek = default_llseek,
 };
 
 static const struct file_operations clock_fops = {
        .read = clock_read_file,
        .write = write_file_dummy,
        .open = open_file_generic,
+       .llseek = default_llseek,
 };
 
 static const struct file_operations display_fops = {
        .read = display_read_file,
        .write = write_file_dummy,
        .open = open_file_generic,
+       .llseek = default_llseek,
 };
 
 static const struct file_operations gsctl_fops = {
        .read = gsctl_read_file,
        .write = write_file_dummy,
        .open = open_file_generic,
+       .llseek = default_llseek,
 };
 
 static const struct file_operations sdram_fops = {
        .read = sdram_read_file,
        .write = write_file_dummy,
        .open = open_file_generic,
+       .llseek = default_llseek,
 };
 
 static const struct file_operations misc_fops = {
        .read = misc_read_file,
        .write = write_file_dummy,
        .open = open_file_generic,
+       .llseek = default_llseek,
 };
 
 static void __devinit mbxfb_debugfs_init(struct fb_info *fbi)
index c764c52412e4054e6d40bd0e558991714aea9b49..b29221783598f7ab2cfc2030d702b6263089a719 100644 (file)
@@ -267,6 +267,7 @@ static const struct file_operations ar7_wdt_fops = {
        .unlocked_ioctl = ar7_wdt_ioctl,
        .open           = ar7_wdt_open,
        .release        = ar7_wdt_release,
+       .llseek         = no_llseek,
 };
 
 static struct miscdevice ar7_wdt_miscdev = {
index 566343b3c131fc3f6d3ce17b6bc7bd1e2c724ac4..51ae4e84f4f9efe9bedcdd30a9a090f43b60e35b 100644 (file)
@@ -524,6 +524,7 @@ static const struct file_operations cpwd_fops = {
        .write =                cpwd_write,
        .read =                 cpwd_read,
        .release =              cpwd_release,
+       .llseek =               no_llseek,
 };
 
 static int __devinit cpwd_probe(struct platform_device *op,
index 59359c9a5e01aafaaa43cba6c8a3fd1ca4842e1c..726b7df61fd08b366a728fb5be0c793235b4d585 100644 (file)
@@ -188,6 +188,7 @@ static const struct file_operations ep93xx_wdt_fops = {
        .unlocked_ioctl = ep93xx_wdt_ioctl,
        .open           = ep93xx_wdt_open,
        .release        = ep93xx_wdt_release,
+       .llseek         = no_llseek,
 };
 
 static struct miscdevice ep93xx_wdt_miscdev = {
index 76b58abf445182d6708e39f7801c77c062004769..81e3d610089439c7f6a168f56c5227781453729f 100644 (file)
@@ -258,6 +258,7 @@ static const struct file_operations omap_wdt_fops = {
        .unlocked_ioctl = omap_wdt_ioctl,
        .open = omap_wdt_open,
        .release = omap_wdt_release,
+       .llseek = no_llseek,
 };
 
 static int __devinit omap_wdt_probe(struct platform_device *pdev)
index 66e185cfe92fa8bb70c29d27de013fed1685c6d2..fec6ba3c08a8e885d663ce3ac9c8b031ff971273 100644 (file)
@@ -467,6 +467,7 @@ static const struct file_operations evtchn_fops = {
        .fasync  = evtchn_fasync,
        .open    = evtchn_open,
        .release = evtchn_release,
+       .llseek = noop_llseek,
 };
 
 static struct miscdevice evtchn_miscdev = {
index 78bfab0700baf187f8482dcb5a62af1e7507bc31..bd96340063c1d6175f633fa507e8c7e2bf34ba93 100644 (file)
@@ -35,6 +35,7 @@ static ssize_t capabilities_read(struct file *file, char __user *buf,
 
 static const struct file_operations capabilities_file_ops = {
        .read = capabilities_read,
+       .llseek = default_llseek,
 };
 
 static int xenfs_fill_super(struct super_block *sb, void *data, int silent)
index 3b39c3752e21812976f10e393c8d0c6ecd15ea9a..1c1236087f785a20b1351e375b6ea4b9e1d1444e 100644 (file)
@@ -594,4 +594,5 @@ const struct file_operations xenbus_file_ops = {
        .open = xenbus_file_open,
        .release = xenbus_file_release,
        .poll = xenbus_file_poll,
+       .llseek = no_llseek,
 };
index 6d552686c498fae427e2b9408bd03e96e1153699..6153417caf57e2b9219bbfdd40970c262b65fdcf 100644 (file)
@@ -29,6 +29,7 @@ static void afs_mntpt_expiry_timed_out(struct work_struct *work);
 
 const struct file_operations afs_mntpt_file_operations = {
        .open           = afs_mntpt_open,
+       .llseek         = noop_llseek,
 };
 
 const struct inode_operations afs_mntpt_inode_operations = {
index ba4a38b9c22ff63d9897ad59c30c1479a0c54fed..eff9a419469a3d1661f4ad64d674b8db4370ae09 100644 (file)
@@ -724,6 +724,7 @@ static const struct file_operations _dev_ioctl_fops = {
        .unlocked_ioctl  = autofs_dev_ioctl,
        .compat_ioctl = autofs_dev_ioctl_compat,
        .owner   = THIS_MODULE,
+       .llseek = noop_llseek,
 };
 
 static struct miscdevice _autofs_dev_ioctl_misc = {
index fd0cc0bf9a40396a150ad77b69bf5284531d6125..139fc8083f53cbd9351b3c4ebeeedc79f30102b4 100644 (file)
@@ -576,6 +576,7 @@ static ssize_t bm_entry_write(struct file *file, const char __user *buffer,
 static const struct file_operations bm_entry_operations = {
        .read           = bm_entry_read,
        .write          = bm_entry_write,
+       .llseek         = default_llseek,
 };
 
 /* /register */
@@ -643,6 +644,7 @@ out:
 
 static const struct file_operations bm_register_operations = {
        .write          = bm_register_write,
+       .llseek         = noop_llseek,
 };
 
 /* /status */
@@ -680,6 +682,7 @@ static ssize_t bm_status_write(struct file * file, const char __user * buffer,
 static const struct file_operations bm_status_operations = {
        .read           = bm_status_read,
        .write          = bm_status_write,
+       .llseek         = default_llseek,
 };
 
 /* Superblock handling */
index 1776dbd8dc9815cfd9af60929b41f773032c1f10..144f8a5730f56991cda69558daadfaf1eb458081 100644 (file)
@@ -815,6 +815,7 @@ static const struct file_operations btrfs_ctl_fops = {
        .unlocked_ioctl  = btrfs_control_ioctl,
        .compat_ioctl = btrfs_control_ioctl,
        .owner   = THIS_MODULE,
+       .llseek = noop_llseek,
 };
 
 static struct miscdevice btrfs_misc = {
index 727caedcdd921142323e62eaf56c8cdeee5afed4..0a1467b15516521569110c18e517a64ae07237e1 100644 (file)
@@ -55,6 +55,7 @@ const struct file_operations cachefiles_daemon_fops = {
        .read           = cachefiles_daemon_read,
        .write          = cachefiles_daemon_write,
        .poll           = cachefiles_daemon_poll,
+       .llseek         = noop_llseek,
 };
 
 struct cachefiles_daemon_cmd {
index f80a4f25123c3fa912daa1eb4080e69dab3d58fb..e4a3318b812ad3c8da8c90ba97b752147d0229bf 100644 (file)
@@ -454,6 +454,7 @@ static void cdev_purge(struct cdev *cdev)
  */
 const struct file_operations def_chr_fops = {
        .open = chrdev_open,
+       .llseek = noop_llseek,
 };
 
 static struct kobject *exact_match(dev_t dev, int *part, void *data)
index ca25d96d45c9a51caa6d63d33f6670eaa769fcbc..028a9a0f588b2664cee7ab65a3a7f8ccc88af61c 100644 (file)
@@ -39,6 +39,7 @@ const struct inode_operations coda_ioctl_inode_operations = {
 const struct file_operations coda_ioctl_operations = {
        .owner          = THIS_MODULE,
        .unlocked_ioctl = coda_pioctl,
+       .llseek         = noop_llseek,
 };
 
 /* the coda pioctl inode ops */
index de89645777c7c2b06cb62b3657cd72b26a9c4f9e..9fa280bfcffe17f4208b67435f09687ec21bf194 100644 (file)
@@ -346,6 +346,7 @@ static const struct file_operations coda_psdev_fops = {
        .unlocked_ioctl = coda_psdev_ioctl,
        .open           = coda_psdev_open,
        .release        = coda_psdev_release,
+       .llseek         = noop_llseek,
 };
 
 static int init_coda_psdev(void)
index 0210898458b27286e403266e705ec1cd3396218b..89d394d8fe24c5b35fbdf71cfbef4bade56415b3 100644 (file)
@@ -43,6 +43,7 @@ const struct file_operations debugfs_file_operations = {
        .read =         default_read_file,
        .write =        default_write_file,
        .open =         default_open,
+       .llseek =       noop_llseek,
 };
 
 static void *debugfs_follow_link(struct dentry *dentry, struct nameidata *nd)
@@ -454,6 +455,7 @@ static const struct file_operations fops_bool = {
        .read =         read_file_bool,
        .write =        write_file_bool,
        .open =         default_open,
+       .llseek =       default_llseek,
 };
 
 /**
@@ -498,6 +500,7 @@ static ssize_t read_file_blob(struct file *file, char __user *user_buf,
 static const struct file_operations fops_blob = {
        .read =         read_file_blob,
        .open =         default_open,
+       .llseek =       default_llseek,
 };
 
 /**
index c6cf251587467dc9af1c12c7391c6e529fa4249a..6b42ba807dfda1747f7cae9fa0ecf7a3c400b5f2 100644 (file)
@@ -643,7 +643,8 @@ static ssize_t waiters_read(struct file *file, char __user *userbuf,
 static const struct file_operations waiters_fops = {
        .owner   = THIS_MODULE,
        .open    = waiters_open,
-       .read    = waiters_read
+       .read    = waiters_read,
+       .llseek  = default_llseek,
 };
 
 void dlm_delete_debug_file(struct dlm_ls *ls)
index d45c02db694393a1989119ec510709b653dd76e9..30d8b85febbf1eb413333bddac0b365b29b676d3 100644 (file)
@@ -412,7 +412,8 @@ static const struct file_operations dev_fops = {
        .read    = dev_read,
        .write   = dev_write,
        .poll    = dev_poll,
-       .owner   = THIS_MODULE
+       .owner   = THIS_MODULE,
+       .llseek  = noop_llseek,
 };
 
 static struct miscdevice plock_dev_misc = {
index b6272853130c5c04b6562bc185170324155cc2e9..66d6c16bf440b480c57b11ca8cf4ada22f7c65fc 100644 (file)
@@ -1009,6 +1009,7 @@ static const struct file_operations device_fops = {
        .write   = device_write,
        .poll    = device_poll,
        .owner   = THIS_MODULE,
+       .llseek  = noop_llseek,
 };
 
 static const struct file_operations ctl_device_fops = {
@@ -1017,6 +1018,7 @@ static const struct file_operations ctl_device_fops = {
        .read    = device_read,
        .write   = device_write,
        .owner   = THIS_MODULE,
+       .llseek  = noop_llseek,
 };
 
 static struct miscdevice ctl_device = {
@@ -1029,6 +1031,7 @@ static const struct file_operations monitor_device_fops = {
        .open    = monitor_device_open,
        .release = monitor_device_close,
        .owner   = THIS_MODULE,
+       .llseek  = noop_llseek,
 };
 
 static struct miscdevice monitor_device = {
index 622c95140802c33d18713e16eb29b7f23c498104..86e9da1c787e72f3e709332042f54dd0ebaf6dc7 100644 (file)
@@ -332,6 +332,7 @@ const struct file_operations ecryptfs_dir_fops = {
        .fsync = ecryptfs_fsync,
        .fasync = ecryptfs_fasync,
        .splice_read = generic_file_splice_read,
+       .llseek = default_llseek,
 };
 
 const struct file_operations ecryptfs_main_fops = {
index 00208c3d7e926cf799974ef23d5bdaebd72151c8..940a82e63dc3fcdc52797f9176842fdbf391d272 100644 (file)
@@ -482,6 +482,7 @@ static const struct file_operations ecryptfs_miscdev_fops = {
        .read    = ecryptfs_miscdev_read,
        .write   = ecryptfs_miscdev_write,
        .release = ecryptfs_miscdev_release,
+       .llseek  = noop_llseek,
 };
 
 static struct miscdevice ecryptfs_miscdev = {
index 6bd3f76fdf881ffc4973bc2d7a0d8346a3464bba..e0194b3e14d6ba28d42d0ae7352923d7102760cb 100644 (file)
@@ -293,6 +293,7 @@ static const struct file_operations eventfd_fops = {
        .poll           = eventfd_poll,
        .read           = eventfd_read,
        .write          = eventfd_write,
+       .llseek         = noop_llseek,
 };
 
 /**
index 3817149919cb81fa298686f183f67e0c86fe1c50..256bb7bb102a0d2221fe4b9b8d2b533949d069c1 100644 (file)
@@ -674,7 +674,8 @@ static unsigned int ep_eventpoll_poll(struct file *file, poll_table *wait)
 /* File callbacks that implement the eventpoll file behaviour */
 static const struct file_operations eventpoll_fops = {
        .release        = ep_eventpoll_release,
-       .poll           = ep_eventpoll_poll
+       .poll           = ep_eventpoll_poll,
+       .llseek         = noop_llseek,
 };
 
 /* Fast test to see if the file is an evenpoll file */
index 5d6606ffc2d28de7b94c4dc3bb04367ac6a57f93..4e303c22d5ee53613682530bd1705a0a3cec8382 100644 (file)
--- a/fs/fifo.c
+++ b/fs/fifo.c
@@ -151,4 +151,5 @@ err_nocleanup:
  */
 const struct file_operations def_fifo_fops = {
        .open           = fifo_open,    /* will set read_ or write_pipefifo_fops */
+       .llseek         = noop_llseek,
 };
index 3773fd63d2f9f66ebf4b5424211f9879ee05a360..7367e177186f4b0efb96d1281134860058050e6d 100644 (file)
@@ -179,23 +179,27 @@ static ssize_t fuse_conn_congestion_threshold_write(struct file *file,
 static const struct file_operations fuse_ctl_abort_ops = {
        .open = nonseekable_open,
        .write = fuse_conn_abort_write,
+       .llseek = no_llseek,
 };
 
 static const struct file_operations fuse_ctl_waiting_ops = {
        .open = nonseekable_open,
        .read = fuse_conn_waiting_read,
+       .llseek = no_llseek,
 };
 
 static const struct file_operations fuse_conn_max_background_ops = {
        .open = nonseekable_open,
        .read = fuse_conn_max_background_read,
        .write = fuse_conn_max_background_write,
+       .llseek = no_llseek,
 };
 
 static const struct file_operations fuse_conn_congestion_threshold_ops = {
        .open = nonseekable_open,
        .read = fuse_conn_congestion_threshold_read,
        .write = fuse_conn_congestion_threshold_write,
+       .llseek = no_llseek,
 };
 
 static struct dentry *fuse_ctl_add_dentry(struct dentry *parent,
index e1f8171278bdeac8b5ba7f5b71abfe1d9984c307..3e87cce5837d6df9f0db0f476a9ca58c3a269231 100644 (file)
@@ -182,6 +182,7 @@ static const struct file_operations cuse_frontend_fops = {
        .unlocked_ioctl         = cuse_file_ioctl,
        .compat_ioctl           = cuse_file_compat_ioctl,
        .poll                   = fuse_file_poll,
+       .llseek         = noop_llseek,
 };
 
 
index 4edd662c8232b2c24d1f1767b937f258071f8211..55d25a68b4961bfc42bd8f1b234c31e96e00052e 100644 (file)
@@ -771,6 +771,7 @@ const struct file_operations gfs2_dir_fops = {
        .fsync          = gfs2_fsync,
        .lock           = gfs2_lock,
        .flock          = gfs2_flock,
+       .llseek         = default_llseek,
 };
 
 #endif /* CONFIG_GFS2_FS_LOCKING_DLM */
@@ -797,5 +798,6 @@ const struct file_operations gfs2_dir_fops_nolock = {
        .open           = gfs2_open,
        .release        = gfs2_close,
        .fsync          = gfs2_fsync,
+       .llseek         = default_llseek,
 };
 
index 7b027720d8209b1c041de80e01e4be5aa7cd0ec2..4e2a45ea6140ddde677446d52f022eadbe020395 100644 (file)
@@ -598,6 +598,7 @@ static const struct file_operations hppfs_dir_fops = {
        .readdir        = hppfs_readdir,
        .open           = hppfs_dir_open,
        .fsync          = hppfs_fsync,
+       .llseek         = default_llseek,
 };
 
 static int hppfs_statfs(struct dentry *dentry, struct kstatfs *sf)
index 6e5bd42f38604dd1573992bb16aad0076a03be03..113eba3d3c386e139453abedb72f1da8dc844097 100644 (file)
@@ -674,6 +674,7 @@ const struct file_operations hugetlbfs_file_operations = {
        .mmap                   = hugetlbfs_file_mmap,
        .fsync                  = noop_fsync,
        .get_unmapped_area      = hugetlb_get_unmapped_area,
+       .llseek         = default_llseek,
 };
 
 static const struct inode_operations hugetlbfs_dir_inode_operations = {
index 9777eb5b552248410bd3331f97fb89e853149866..1eb4e89e045b082d9f02d6d005edd3f61e5c48c8 100644 (file)
@@ -827,4 +827,5 @@ const struct file_operations logfs_dir_fops = {
        .unlocked_ioctl = logfs_ioctl,
        .readdir        = logfs_readdir,
        .read           = generic_read_dir,
+       .llseek         = default_llseek,
 };
index b53b1d042f1ff3190b6696876da88cf355277b5a..06fa87e52e8243cc46a41d5f861aa91388581d7b 100644 (file)
@@ -137,6 +137,7 @@ static const struct file_operations transaction_ops = {
        .write          = nfsctl_transaction_write,
        .read           = nfsctl_transaction_read,
        .release        = simple_transaction_release,
+       .llseek         = default_llseek,
 };
 
 static int exports_open(struct inode *inode, struct file *file)
index d269a93d3467a03235585d55ac34bc5786277e93..6e40e42a43de57b1586413b90fc897cf3d457617 100644 (file)
@@ -19,4 +19,5 @@ static int no_blkdev_open(struct inode * inode, struct file * filp)
 
 const struct file_operations def_blk_fops = {
        .open           = no_blkdev_open,
+       .llseek         = noop_llseek,
 };
index 5ed8e58d7bfc316f44c056e6208c3787dbc5f445..bbcb98e7fcc611d692e9d85c4c74dd742d417507 100644 (file)
@@ -433,6 +433,7 @@ static const struct file_operations fanotify_fops = {
        .release        = fanotify_release,
        .unlocked_ioctl = fanotify_ioctl,
        .compat_ioctl   = fanotify_ioctl,
+       .llseek         = noop_llseek,
 };
 
 static void fanotify_free_mark(struct fsnotify_mark *fsn_mark)
index bf7f6d776c31a22e71573ef86e00516c195e95e6..24edc1185d53fd1b2a0d61e646d02f4bd7fc0afb 100644 (file)
@@ -344,6 +344,7 @@ static const struct file_operations inotify_fops = {
        .release        = inotify_release,
        .unlocked_ioctl = inotify_ioctl,
        .compat_ioctl   = inotify_ioctl,
+       .llseek         = noop_llseek,
 };
 
 
index c2903b84bb7a8ccbc0ea099e4a8585559d3fcf67..a7ebd9d42dc8853e89dd381af65afeab3e5df8fe 100644 (file)
@@ -612,6 +612,7 @@ static const struct file_operations dlmfs_file_operations = {
        .poll           = dlmfs_file_poll,
        .read           = dlmfs_file_read,
        .write          = dlmfs_file_write,
+       .llseek         = default_llseek,
 };
 
 static const struct inode_operations dlmfs_dir_inode_operations = {
index 2dc57bca0688165366364d88448d1e884ef6dd9f..0dbc6dae1de83d043e0d3c153a3c374134cbcf1d 100644 (file)
@@ -628,6 +628,7 @@ static const struct file_operations ocfs2_control_fops = {
        .read    = ocfs2_control_read,
        .write   = ocfs2_control_write,
        .owner   = THIS_MODULE,
+       .llseek  = default_llseek,
 };
 
 static struct miscdevice ocfs2_control_device = {
index a1c43e7c8a7be4ce70c729f3338eae09097f4025..bc307d7a5b7677a3c81845cf5e13ebf5273f1ffe 100644 (file)
@@ -1151,6 +1151,7 @@ static ssize_t oom_score_adj_write(struct file *file, const char __user *buf,
 static const struct file_operations proc_oom_score_adj_operations = {
        .read           = oom_score_adj_read,
        .write          = oom_score_adj_write,
+       .llseek         = default_llseek,
 };
 
 #ifdef CONFIG_AUDITSYSCALL
@@ -2039,11 +2040,13 @@ static ssize_t proc_fdinfo_read(struct file *file, char __user *buf,
 static const struct file_operations proc_fdinfo_file_operations = {
        .open           = nonseekable_open,
        .read           = proc_fdinfo_read,
+       .llseek         = no_llseek,
 };
 
 static const struct file_operations proc_fd_operations = {
        .read           = generic_read_dir,
        .readdir        = proc_readfd,
+       .llseek         = default_llseek,
 };
 
 /*
@@ -2112,6 +2115,7 @@ static int proc_readfdinfo(struct file *filp, void *dirent, filldir_t filldir)
 static const struct file_operations proc_fdinfo_operations = {
        .read           = generic_read_dir,
        .readdir        = proc_readfdinfo,
+       .llseek         = default_llseek,
 };
 
 /*
@@ -2343,6 +2347,7 @@ static int proc_attr_dir_readdir(struct file * filp,
 static const struct file_operations proc_attr_dir_operations = {
        .read           = generic_read_dir,
        .readdir        = proc_attr_dir_readdir,
+       .llseek         = default_llseek,
 };
 
 static struct dentry *proc_attr_dir_lookup(struct inode *dir,
@@ -2751,6 +2756,7 @@ static int proc_tgid_base_readdir(struct file * filp,
 static const struct file_operations proc_tgid_base_operations = {
        .read           = generic_read_dir,
        .readdir        = proc_tgid_base_readdir,
+       .llseek         = default_llseek,
 };
 
 static struct dentry *proc_tgid_base_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd){
@@ -3088,6 +3094,7 @@ static struct dentry *proc_tid_base_lookup(struct inode *dir, struct dentry *den
 static const struct file_operations proc_tid_base_operations = {
        .read           = generic_read_dir,
        .readdir        = proc_tid_base_readdir,
+       .llseek         = default_llseek,
 };
 
 static const struct inode_operations proc_tid_base_inode_operations = {
@@ -3324,4 +3331,5 @@ static const struct inode_operations proc_task_inode_operations = {
 static const struct file_operations proc_task_operations = {
        .read           = generic_read_dir,
        .readdir        = proc_task_readdir,
+       .llseek         = default_llseek,
 };
index 5be436ea088eeea37ab8a440e64a32f0b879fb7c..2fc52552271d91cf904213ee98576e20237ec1da 100644 (file)
@@ -364,6 +364,7 @@ static int proc_sys_getattr(struct vfsmount *mnt, struct dentry *dentry, struct
 static const struct file_operations proc_sys_file_operations = {
        .read           = proc_sys_read,
        .write          = proc_sys_write,
+       .llseek         = default_llseek,
 };
 
 static const struct file_operations proc_sys_dir_file_operations = {
index 4258384ed22d9afa22fe579dd7c4242039e8ab8e..93d99b316325164758ed1d48a740f65ef9a59e9b 100644 (file)
@@ -179,6 +179,7 @@ static int proc_root_readdir(struct file * filp,
 static const struct file_operations proc_root_operations = {
        .read            = generic_read_dir,
        .readdir         = proc_root_readdir,
+       .llseek         = default_llseek,
 };
 
 /*
index 271afc48b9a5d58dd2874d41f8a08dfcae644481..aa56920df3358431f533464901ff272ffc89d0cf 100644 (file)
@@ -539,6 +539,7 @@ static ssize_t clear_refs_write(struct file *file, const char __user *buf,
 
 const struct file_operations proc_clear_refs_operations = {
        .write          = clear_refs_write,
+       .llseek         = noop_llseek,
 };
 
 struct pagemapread {
index 42d213546894a3b412bea8634f7c9535f25cdb19..268580535c92ba462a1af5983618ab0d11a321a7 100644 (file)
@@ -282,6 +282,7 @@ error:
 static const struct file_operations romfs_dir_operations = {
        .read           = generic_read_dir,
        .readdir        = romfs_readdir,
+       .llseek         = default_llseek,
 };
 
 static const struct inode_operations romfs_dir_inode_operations = {
index 1c5a6add779d07c1da65aa644d2300ef89dfe7d8..74047304b01a4300bf7f781ad4d2838dc3bc316b 100644 (file)
@@ -206,6 +206,7 @@ static const struct file_operations signalfd_fops = {
        .release        = signalfd_release,
        .poll           = signalfd_poll,
        .read           = signalfd_read,
+       .llseek         = noop_llseek,
 };
 
 SYSCALL_DEFINE4(signalfd4, int, ufd, sigset_t __user *, user_mask,
index 12b933ac6585d7d0291608cf3253754223a07fd4..0dc340aa2be97d5373e719f74c84d866e00ef465 100644 (file)
@@ -230,5 +230,6 @@ failed_read:
 
 const struct file_operations squashfs_dir_ops = {
        .read = generic_read_dir,
-       .readdir = squashfs_readdir
+       .readdir = squashfs_readdir,
+       .llseek = default_llseek,
 };
index b86ab8eff79ac8f36ace73c604e554cb4efa8820..8c4fc1425b3eff171bd37b9e1bed290b93473e11 100644 (file)
@@ -144,6 +144,7 @@ static const struct file_operations timerfd_fops = {
        .release        = timerfd_release,
        .poll           = timerfd_poll,
        .read           = timerfd_read,
+       .llseek         = noop_llseek,
 };
 
 static struct file *timerfd_fget(int fd)
index c2a68baa782f8d4b4331f689c594a2db640e6d0f..c6c553fd0b3d452b7a2589d651d644df42e6619c 100644 (file)
@@ -2625,6 +2625,7 @@ static const struct file_operations dfs_fops = {
        .open = open_debugfs_file,
        .write = write_debugfs_file,
        .owner = THIS_MODULE,
+       .llseek = default_llseek,
 };
 
 /**
index c60e519e2917671860efdd7c7f6cac53abd97e70..e1e7b9635f5da7c986dfd18426bce94c177d6630 100644 (file)
@@ -1219,6 +1219,7 @@ static const struct file_operations mqueue_file_operations = {
        .flush = mqueue_flush_file,
        .poll = mqueue_poll_file,
        .read = mqueue_read_file,
+       .llseek = default_llseek,
 };
 
 static const struct super_operations mqueue_super_ops = {
index 52ed77eb9713a932804cc8bb2b430ce4cdff4750..7bc46a9fe1f8709cadae67f329f57b0943403832 100644 (file)
--- a/ipc/shm.c
+++ b/ipc/shm.c
@@ -298,6 +298,7 @@ static const struct file_operations shm_file_operations = {
 #ifndef CONFIG_MMU
        .get_unmapped_area      = shm_get_unmapped_area,
 #endif
+       .llseek         = noop_llseek,
 };
 
 static const struct file_operations shm_file_operations_huge = {
@@ -305,6 +306,7 @@ static const struct file_operations shm_file_operations_huge = {
        .fsync          = shm_fsync,
        .release        = shm_release,
        .get_unmapped_area      = shm_get_unmapped_area,
+       .llseek         = noop_llseek,
 };
 
 int is_file_shm_hugepages(struct file *file)
index abaee684ecbf95fe1d47426d7b47b77e6ed91fab..b4066b44a99d09996555b8a233855cc3e637559a 100644 (file)
@@ -66,6 +66,7 @@ ikconfig_read_current(struct file *file, char __user *buf,
 static const struct file_operations ikconfig_file_ops = {
        .owner = THIS_MODULE,
        .read = ikconfig_read_current,
+       .llseek = default_llseek,
 };
 
 static int __init ikconfig_init(void)
index f83972b16564d00676154900f09d3c70affd773c..9bd0934f6c33b31a3432b4d0e4adab9790ed0a6c 100644 (file)
@@ -561,6 +561,7 @@ static ssize_t reset_read(struct file *file, char __user *addr, size_t len,
 static const struct file_operations gcov_reset_fops = {
        .write  = reset_write,
        .read   = reset_read,
+       .llseek = noop_llseek,
 };
 
 /*
index 282035f3ae964e1e288f352c370be8edd11d3078..8b5ff2655ae07ce80f84fec60ec3737a7112ff27 100644 (file)
@@ -1992,6 +1992,7 @@ static ssize_t write_enabled_file_bool(struct file *file,
 static const struct file_operations fops_kp = {
        .read =         read_enabled_file_bool,
        .write =        write_enabled_file_bool,
+       .llseek =       default_llseek,
 };
 
 static int __kprobes debugfs_kprobe_init(void)
index 645e541a45f6c9a9667c054bd7f5230ecaef67a3..a96b850ba08a6a47dc9c9bd624849c4fbfe99349 100644 (file)
@@ -110,6 +110,7 @@ static const struct file_operations pm_qos_power_fops = {
        .write = pm_qos_power_write,
        .open = pm_qos_power_open,
        .release = pm_qos_power_release,
+       .llseek = noop_llseek,
 };
 
 /* unlocked internal variant */
index b22a899934cc4fe1669f4599f50ce8f54ca46632..66f841b7fbd38fd0fcca92d62c4f70860b24bbb2 100644 (file)
@@ -555,6 +555,7 @@ static ssize_t write_profile(struct file *file, const char __user *buf,
 static const struct file_operations proc_profile_operations = {
        .read           = read_profile,
        .write          = write_profile,
+       .llseek         = default_llseek,
 };
 
 #ifdef CONFIG_SMP
index 959f8d6c8cc1ddad9b994dc08d096be6738fca64..2d5f3a757316b3c0520f4e9f91c064f1067c11a6 100644 (file)
@@ -326,6 +326,7 @@ static const struct file_operations blk_dropped_fops = {
        .owner =        THIS_MODULE,
        .open =         blk_dropped_open,
        .read =         blk_dropped_read,
+       .llseek =       default_llseek,
 };
 
 static int blk_msg_open(struct inode *inode, struct file *filp)
@@ -365,6 +366,7 @@ static const struct file_operations blk_msg_fops = {
        .owner =        THIS_MODULE,
        .open =         blk_msg_open,
        .write =        blk_msg_write,
+       .llseek =       noop_llseek,
 };
 
 /*
index fa7ece649fe1bcad7b0db621fa8579e91860fb04..5e1ad476309060b6b697b6475f7fc5de96bbc5a2 100644 (file)
@@ -800,6 +800,7 @@ static const struct file_operations ftrace_profile_fops = {
        .open           = tracing_open_generic,
        .read           = ftrace_profile_read,
        .write          = ftrace_profile_write,
+       .llseek         = default_llseek,
 };
 
 /* used to initialize the real stat files */
@@ -2632,6 +2633,7 @@ static const struct file_operations ftrace_graph_fops = {
        .read           = seq_read,
        .write          = ftrace_graph_write,
        .release        = ftrace_graph_release,
+       .llseek         = seq_lseek,
 };
 #endif /* CONFIG_FUNCTION_GRAPH_TRACER */
 
index 492197e2f86cda2792603186b59ad3fdd17c448d..3aea966d16de8c7f81b6fd7536b8a6a353b214fa 100644 (file)
@@ -3965,6 +3965,7 @@ static const struct file_operations rb_simple_fops = {
        .open           = tracing_open_generic,
        .read           = rb_simple_read,
        .write          = rb_simple_write,
+       .llseek         = default_llseek,
 };
 
 
index 4c758f146328f18ce82a318fb60a0413006aca8f..0369c5e099849ea8961a8bdb5818f3eb739b20ec 100644 (file)
@@ -951,6 +951,7 @@ static const struct file_operations ftrace_enable_fops = {
        .open = tracing_open_generic,
        .read = event_enable_read,
        .write = event_enable_write,
+       .llseek = default_llseek,
 };
 
 static const struct file_operations ftrace_event_format_fops = {
@@ -963,29 +964,34 @@ static const struct file_operations ftrace_event_format_fops = {
 static const struct file_operations ftrace_event_id_fops = {
        .open = tracing_open_generic,
        .read = event_id_read,
+       .llseek = default_llseek,
 };
 
 static const struct file_operations ftrace_event_filter_fops = {
        .open = tracing_open_generic,
        .read = event_filter_read,
        .write = event_filter_write,
+       .llseek = default_llseek,
 };
 
 static const struct file_operations ftrace_subsystem_filter_fops = {
        .open = tracing_open_generic,
        .read = subsystem_filter_read,
        .write = subsystem_filter_write,
+       .llseek = default_llseek,
 };
 
 static const struct file_operations ftrace_system_enable_fops = {
        .open = tracing_open_generic,
        .read = system_enable_read,
        .write = system_enable_write,
+       .llseek = default_llseek,
 };
 
 static const struct file_operations ftrace_show_header_fops = {
        .open = tracing_open_generic,
        .read = show_header,
+       .llseek = default_llseek,
 };
 
 static struct dentry *event_trace_events_dir(void)
index a6b7e0e0f3eb092aac06e8bc017dcf5ea80105af..4c5dead0c239fc7d47d23065cf033669d036efb1 100644 (file)
@@ -195,6 +195,7 @@ static const struct file_operations stack_max_size_fops = {
        .open           = tracing_open_generic,
        .read           = stack_max_size_read,
        .write          = stack_max_size_write,
+       .llseek         = default_llseek,
 };
 
 static void *
index 01e64270e246bef1070c9e68a3603051b02bf919..4bfb0471f10684f230e4351db489a1292b83f414 100644 (file)
@@ -590,6 +590,7 @@ out_unlock:
 static const struct file_operations filter_fops = {
        .read  = filter_read,
        .write = filter_write,
+       .llseek = default_llseek,
 };
 
 static int dma_debug_fs_init(void)
index 6262aeae398e8a242eae84f70287b7f07f5768c3..f85da0779e5ee162015ae88aa00e48e2114aa5e3 100644 (file)
@@ -38,6 +38,7 @@ static ssize_t proc_dev_atm_read(struct file *file, char __user *buf,
 static const struct file_operations proc_atm_dev_ops = {
        .owner =        THIS_MODULE,
        .read =         proc_dev_atm_read,
+       .llseek =       noop_llseek,
 };
 
 static void add_stats(struct seq_file *seq, const char *aal,
index 078e48d442fd2df6c5e500b2db4958df7a82a534..33d0e6297c213810a71beeb29f17c3c928727ff3 100644 (file)
@@ -149,6 +149,7 @@ static const struct file_operations dccpprobe_fops = {
        .owner   = THIS_MODULE,
        .open    = dccpprobe_open,
        .read    = dccpprobe_read,
+       .llseek  = noop_llseek,
 };
 
 static __init int dccpprobe_init(void)
index f8efada580e8fed87b33ea52f27f415034a4d62e..6211e211417396f9c17dedf805998db731b4a27c 100644 (file)
@@ -214,6 +214,7 @@ static const struct file_operations tcpprobe_fops = {
        .owner   = THIS_MODULE,
        .open    = tcpprobe_open,
        .read    = tcpprobe_read,
+       .llseek  = noop_llseek,
 };
 
 static __init int tcpprobe_init(void)
index 4a4d35c750c6c589a3b4a5046fca850eca81cf73..b8b0ae79a74390568707a29b5a98747f5573e1fa 100644 (file)
@@ -102,7 +102,8 @@ static ssize_t tsf_write(struct file *file,
 static const struct file_operations tsf_ops = {
        .read = tsf_read,
        .write = tsf_write,
-       .open = mac80211_open_file_generic
+       .open = mac80211_open_file_generic,
+       .llseek = default_llseek,
 };
 
 static ssize_t reset_write(struct file *file, const char __user *user_buf,
@@ -121,6 +122,7 @@ static ssize_t reset_write(struct file *file, const char __user *user_buf,
 static const struct file_operations reset_ops = {
        .write = reset_write,
        .open = mac80211_open_file_generic,
+       .llseek = noop_llseek,
 };
 
 static ssize_t noack_read(struct file *file, char __user *user_buf,
@@ -156,7 +158,8 @@ static ssize_t noack_write(struct file *file,
 static const struct file_operations noack_ops = {
        .read = noack_read,
        .write = noack_write,
-       .open = mac80211_open_file_generic
+       .open = mac80211_open_file_generic,
+       .llseek = default_llseek,
 };
 
 static ssize_t uapsd_queues_read(struct file *file, char __user *user_buf,
@@ -202,7 +205,8 @@ static ssize_t uapsd_queues_write(struct file *file,
 static const struct file_operations uapsd_queues_ops = {
        .read = uapsd_queues_read,
        .write = uapsd_queues_write,
-       .open = mac80211_open_file_generic
+       .open = mac80211_open_file_generic,
+       .llseek = default_llseek,
 };
 
 static ssize_t uapsd_max_sp_len_read(struct file *file, char __user *user_buf,
@@ -248,7 +252,8 @@ static ssize_t uapsd_max_sp_len_write(struct file *file,
 static const struct file_operations uapsd_max_sp_len_ops = {
        .read = uapsd_max_sp_len_read,
        .write = uapsd_max_sp_len_write,
-       .open = mac80211_open_file_generic
+       .open = mac80211_open_file_generic,
+       .llseek = default_llseek,
 };
 
 static ssize_t channel_type_read(struct file *file, char __user *user_buf,
@@ -280,7 +285,8 @@ static ssize_t channel_type_read(struct file *file, char __user *user_buf,
 
 static const struct file_operations channel_type_ops = {
        .read = channel_type_read,
-       .open = mac80211_open_file_generic
+       .open = mac80211_open_file_generic,
+       .llseek = default_llseek,
 };
 
 static ssize_t queues_read(struct file *file, char __user *user_buf,
@@ -303,7 +309,8 @@ static ssize_t queues_read(struct file *file, char __user *user_buf,
 
 static const struct file_operations queues_ops = {
        .read = queues_read,
-       .open = mac80211_open_file_generic
+       .open = mac80211_open_file_generic,
+       .llseek = default_llseek,
 };
 
 /* statistics stuff */
index be04d46110fe8cdccc5e07eb810b67ee39c5c20f..334cbd3d2aae9ceffb708f6c2c4b361b6e6359d4 100644 (file)
@@ -145,6 +145,7 @@ static ssize_t rcname_read(struct file *file, char __user *userbuf,
 static const struct file_operations rcname_ops = {
        .read = rcname_read,
        .open = mac80211_open_file_generic,
+       .llseek = default_llseek,
 };
 #endif
 
index 241e76f3fdf2974a3a476c31d267eaa0d7c77db5..a290ad231d772b23ca6cf7d2c1377736ae77f4ad 100644 (file)
@@ -122,6 +122,7 @@ static const struct file_operations minstrel_stat_fops = {
        .open = minstrel_stats_open,
        .read = minstrel_stats_read,
        .release = minstrel_stats_release,
+       .llseek = default_llseek,
 };
 
 void
index 47438b4a9af52d33589e9cc1a695f77a8461d987..7905f79cc2e43197e644a5e44931de4cd735e6a0 100644 (file)
@@ -206,6 +206,7 @@ static const struct file_operations rc_pid_fop_events = {
        .poll = rate_control_pid_events_poll,
        .open = rate_control_pid_events_open,
        .release = rate_control_pid_events_release,
+       .llseek = noop_llseek,
 };
 
 void rate_control_pid_add_sta_debugfs(void *priv, void *priv_sta,
index 76aec6a44762df7de9a371ea61bab9925c933be8..d2ff15a2412b3335b016e2598d10cb9e2d31eabe 100644 (file)
@@ -567,6 +567,7 @@ static const struct file_operations recent_mt_fops = {
        .write   = recent_mt_proc_write,
        .release = seq_release_private,
        .owner   = THIS_MODULE,
+       .llseek = seq_lseek,
 };
 
 static int __net_init recent_proc_net_init(struct net *net)
index 92e76640c7cd65146dd6aed382698174f7a0f2a2..b1a73fda9c12ed4225f13b3b9ce4051950510025 100644 (file)
@@ -22,4 +22,5 @@ static int sock_no_open(struct inode *irrelevant, struct file *dontcare)
 const struct file_operations bad_sock_fops = {
        .owner = THIS_MODULE,
        .open = sock_no_open,
+       .llseek = noop_llseek,
 };
index 51875a0c5d48c489899e1bcb71c3fd2a2fd3c91c..04f599089e6d1bdc64d3625c288fc132b3cd621a 100644 (file)
@@ -1241,6 +1241,7 @@ static const struct file_operations rfkill_fops = {
        .unlocked_ioctl = rfkill_fop_ioctl,
        .compat_ioctl   = rfkill_fop_ioctl,
 #endif
+       .llseek         = no_llseek,
 };
 
 static struct miscdevice rfkill_miscdev = {
index db3a42b8b34962594b7c8fe3e38b45cb68b19f83..289b1ba62cac6623886f8bf47c50b74cc86cd66e 100644 (file)
@@ -117,6 +117,7 @@ static const struct file_operations sctpprobe_fops = {
        .owner  = THIS_MODULE,
        .open   = sctpprobe_open,
        .read   = sctpprobe_read,
+       .llseek = noop_llseek,
 };
 
 sctp_disposition_t jsctp_sf_eat_sack(const struct sctp_endpoint *ep,
index 2270b941bcc76ec0e52cc0d1321d8572164299e1..9eac5c3941340c60343233402886780117aa93d3 100644 (file)
@@ -502,6 +502,7 @@ static int sock_no_open(struct inode *irrelevant, struct file *dontcare)
 const struct file_operations bad_sock_fops = {
        .owner = THIS_MODULE,
        .open = sock_no_open,
+       .llseek = noop_llseek,
 };
 
 /**
index 2b06410e584e10d3f557b3b4bb58d0c660f56283..6bc692582de59087d077eb230f4a7a8466ad433c 100644 (file)
@@ -1441,6 +1441,7 @@ static const struct file_operations cache_flush_operations_procfs = {
        .read           = read_flush_procfs,
        .write          = write_flush_procfs,
        .release        = release_flush_procfs,
+       .llseek         = no_llseek,
 };
 
 static void remove_cache_proc_entries(struct cache_detail *cd)
@@ -1646,6 +1647,7 @@ const struct file_operations cache_flush_operations_pipefs = {
        .read           = read_flush_pipefs,
        .write          = write_flush_pipefs,
        .release        = release_flush_pipefs,
+       .llseek         = no_llseek,
 };
 
 int sunrpc_cache_register_pipefs(struct dentry *parent,
index 3f9a57e96508224404354031339c0384f1ace106..39765bcfb472c7299d0bb45dd0c6dc1627fc283c 100644 (file)
@@ -103,6 +103,7 @@ static ssize_t ht40allow_map_read(struct file *file,
 static const struct file_operations ht40allow_map_ops = {
        .read = ht40allow_map_read,
        .open = cfg80211_open_file_generic,
+       .llseek = default_llseek,
 };
 
 #define DEBUGFS_ADD(name)                                              \
index 178061e87ffe47d39ac97a247071d896ff080e8a..cfe40addda764f9a1353cb29eb6a11b551a1eec9 100644 (file)
@@ -148,6 +148,7 @@ static const struct file_operations fifo_fops = {
        .owner          = THIS_MODULE,
        .read           = fifo_read,
        .write          = fifo_write,
+       .llseek         = noop_llseek,
 };
 
 static int __init example_init(void)
index 71b2aabca96aa4d41af62d391a5b6f620fbd6d51..6f8e79e76c9e43aa6d181698c281e5b83b80a529 100644 (file)
@@ -141,6 +141,7 @@ static const struct file_operations fifo_fops = {
        .owner          = THIS_MODULE,
        .read           = fifo_read,
        .write          = fifo_write,
+       .llseek         = noop_llseek,
 };
 
 static int __init example_init(void)
index e68bd16a5da43d010f315264931c40132e84632a..2d7529eeb2940a8d6f92cc2104e0f8379dcb74ca 100644 (file)
@@ -155,6 +155,7 @@ static const struct file_operations fifo_fops = {
        .owner          = THIS_MODULE,
        .read           = fifo_read,
        .write          = fifo_write,
+       .llseek         = noop_llseek,
 };
 
 static int __init example_init(void)
index 26fab33ffa8cccc13a02e9d3b4573c974f71e86e..f4d89e008c32adeb7ff02baf572a6edb36707205 100644 (file)
@@ -30,6 +30,7 @@ static int my_open(struct inode *inode, struct file *file)
 
 static const struct file_operations mark_ops = {
        .open = my_open,
+       .llseek = noop_llseek,
 };
 
 static int __init sample_init(void)
index 7320331b44aba5bd52eac6b2a97302ad21a4ca5f..a27086d16f05a23b950adea0a987ae47bda1ee54 100644 (file)
@@ -86,7 +86,8 @@ static ssize_t profile_load(struct file *f, const char __user *buf, size_t size,
 }
 
 static const struct file_operations aa_fs_profile_load = {
-       .write = profile_load
+       .write = profile_load,
+       .llseek = default_llseek,
 };
 
 /* .replace file hook fn to load and/or replace policy */
@@ -107,7 +108,8 @@ static ssize_t profile_replace(struct file *f, const char __user *buf,
 }
 
 static const struct file_operations aa_fs_profile_replace = {
-       .write = profile_replace
+       .write = profile_replace,
+       .llseek = default_llseek,
 };
 
 /* .remove file hook fn to remove loaded policy */
@@ -134,7 +136,8 @@ static ssize_t profile_remove(struct file *f, const char __user *buf,
 }
 
 static const struct file_operations aa_fs_profile_remove = {
-       .write = profile_remove
+       .write = profile_remove,
+       .llseek = default_llseek,
 };
 
 /** Base file system setup **/
index 8c777f022ad132eca07eed38503ea1af716f8dfd..88839866cbcd029a52422b51cf163ec8167a4034 100644 (file)
@@ -53,6 +53,7 @@ static const struct file_operations default_file_ops = {
        .read =         default_read_file,
        .write =        default_write_file,
        .open =         default_open,
+       .llseek =       noop_llseek,
 };
 
 static struct inode *get_inode(struct super_block *sb, int mode, dev_t dev)
index a2b72d77f9265f7553c4bffb225644baf4bd44d0..7512502d0162b6be0afc54f874e88f407b8470c6 100644 (file)
@@ -968,6 +968,7 @@ static ssize_t smk_write_doi(struct file *file, const char __user *buf,
 static const struct file_operations smk_doi_ops = {
        .read           = smk_read_doi,
        .write          = smk_write_doi,
+       .llseek         = default_llseek,
 };
 
 /**
@@ -1031,6 +1032,7 @@ static ssize_t smk_write_direct(struct file *file, const char __user *buf,
 static const struct file_operations smk_direct_ops = {
        .read           = smk_read_direct,
        .write          = smk_write_direct,
+       .llseek         = default_llseek,
 };
 
 /**
@@ -1112,6 +1114,7 @@ static ssize_t smk_write_ambient(struct file *file, const char __user *buf,
 static const struct file_operations smk_ambient_ops = {
        .read           = smk_read_ambient,
        .write          = smk_write_ambient,
+       .llseek         = default_llseek,
 };
 
 /**
@@ -1191,6 +1194,7 @@ static ssize_t smk_write_onlycap(struct file *file, const char __user *buf,
 static const struct file_operations smk_onlycap_ops = {
        .read           = smk_read_onlycap,
        .write          = smk_write_onlycap,
+       .llseek         = default_llseek,
 };
 
 /**
@@ -1255,6 +1259,7 @@ static ssize_t smk_write_logging(struct file *file, const char __user *buf,
 static const struct file_operations smk_logging_ops = {
        .read           = smk_read_logging,
        .write          = smk_write_logging,
+       .llseek         = default_llseek,
 };
 /**
  * smk_fill_super - fill the /smackfs superblock
index f25e3cc7ddfa53b4aa9244abe3fdf776146d7958..a1f1a2f00ccb6f1398a17bcab473908420b82a24 100644 (file)
@@ -220,6 +220,7 @@ static const struct file_operations seq_oss_f_ops =
        .poll =         odev_poll,
        .unlocked_ioctl =       odev_ioctl,
        .compat_ioctl = odev_ioctl_compat,
+       .llseek =       noop_llseek,
 };
 
 static int __init
index ac42af42b78709d367713e49626440c116ba3ca2..62a093efb453cc5d9657e4a3ce822ce42ca07748 100644 (file)
@@ -184,7 +184,8 @@ static int snd_open(struct inode *inode, struct file *file)
 static const struct file_operations snd_fops =
 {
        .owner =        THIS_MODULE,
-       .open =         snd_open
+       .open =         snd_open,
+       .llseek =       noop_llseek,
 };
 
 #ifdef CONFIG_SND_DYNAMIC_MINORS
index 2e48b17667d0f661671dfdfd0a3f30bd7b641b95..ca942f7cd2313c38c95d091f20c78658b36b36b7 100644 (file)
@@ -1117,6 +1117,7 @@ static const struct file_operations dev_fileops = {
        .unlocked_ioctl = dev_ioctl,
        .open           = dev_open,
        .release        = dev_release,
+       .llseek         = noop_llseek,
 };
 
 static int reset_dsp(void)
index acc91daa1c5509df6a7844f684a0640ff7198109..4057d35343bbbbd434e6a2f99bf0398aeac2a75e 100644 (file)
@@ -223,6 +223,7 @@ static const struct file_operations codec_reg_fops = {
        .open = codec_reg_open_file,
        .read = codec_reg_read_file,
        .write = codec_reg_write_file,
+       .llseek = default_llseek,
 };
 
 static void soc_init_codec_debugfs(struct snd_soc_codec *codec)
index 03cb7c05ebec2f26800fd7dc35e4798a811fcea1..72a53d0a41e934972120efe156902d4d42290533 100644 (file)
@@ -1089,6 +1089,7 @@ static ssize_t dapm_widget_power_read_file(struct file *file,
 static const struct file_operations dapm_widget_power_fops = {
        .open = dapm_widget_power_open_file,
        .read = dapm_widget_power_read_file,
+       .llseek = default_llseek,
 };
 
 void snd_soc_dapm_debugfs_init(struct snd_soc_codec *codec)
index cb61317df509690fd597cb0385647af63d5a0e06..c03bbaefdbc36c623e3f5b76cea86f6ad59e46cc 100644 (file)
@@ -165,6 +165,7 @@ static const struct file_operations soundcore_fops =
        /* We must have an owner or the module locking fails */
        .owner  = THIS_MODULE,
        .open   = soundcore_open,
+       .llseek = noop_llseek,
 };
 
 /*
index d4853a54771a04a2bb3e126b1aa54ec13e5c29d0..e039f641d66bd6250ec78c157434f7d4f92b3f0f 100644 (file)
@@ -1305,6 +1305,7 @@ static struct file_operations kvm_vcpu_fops = {
        .unlocked_ioctl = kvm_vcpu_ioctl,
        .compat_ioctl   = kvm_vcpu_ioctl,
        .mmap           = kvm_vcpu_mmap,
+       .llseek         = noop_llseek,
 };
 
 /*
@@ -1774,6 +1775,7 @@ static struct file_operations kvm_vm_fops = {
        .compat_ioctl   = kvm_vm_compat_ioctl,
 #endif
        .mmap           = kvm_vm_mmap,
+       .llseek         = noop_llseek,
 };
 
 static int kvm_dev_ioctl_create_vm(void)
@@ -1867,6 +1869,7 @@ out:
 static struct file_operations kvm_chardev_ops = {
        .unlocked_ioctl = kvm_dev_ioctl,
        .compat_ioctl   = kvm_dev_ioctl,
+       .llseek         = noop_llseek,
 };
 
 static struct miscdevice kvm_dev = {