cleanup llseek and splice
Subsystems (133)
v3 cover cleanup llseek and splice
The goal of this patchset is to enable splicing to internal pipes for select chardevs where it makes sense to do so. In the process, however, it was revealed that many regular files are problematic here. The key insight is that splicing to internal pipes is okay so long as the splice operation is rewindable. That means these devices need to be llseekable.
So the series first tries to make llseek a bit tamer, fixing up the long-standing tension between llseek==NULL vs llseek==no_llseek vs ~FMODE_LSEEK.
With FMODE_LSEEK as good information, the series is able to adjust internal pipe splicing to use that.
It is then able to remove no_llseek entirely, and make all checks use FMODE_LSEEK and all invocations use vfs_llseek.
Along the way the series also fixes related bugs in ksmbd, dma-buf, and vfio.
Changes v2->v3:
- Do if (!a) return -error; return 0; rather than if (a) return 0; return -error; for Christophe.
- Drop the ksmbd patch, because Steve already sent it up to Linus.
- Accumuate various acks.
Jason A. Donenfeld (7):
fs: do not set no_llseek in fops
fs: clear or set FMODE_LSEEK based on llseek function
fs: check FMODE_LSEEK to control internal pipe splicing
fs: do not compare against ->llseek
fs: remove no_llseek
dma-buf: remove useless FMODE_LSEEK flag
vfio: do not set FMODE_LSEEK flag
.../watchdog/convert_drivers_to_kernel_api.rst | 1 - arch/parisc/kernel/perf.c | 1 - arch/powerpc/kernel/eeh.c | 4 ---- arch/powerpc/platforms/52xx/mpc52xx_gpt.c | 1 - arch/powerpc/platforms/cell/spufs/file.c | 17 ----------------- arch/powerpc/platforms/powernv/eeh-powernv.c | 1 - arch/powerpc/platforms/pseries/dtl.c | 1 - arch/s390/hypfs/hypfs_dbfs.c | 1 - arch/s390/hypfs/inode.c | 1 - arch/s390/kernel/debug.c | 1 - arch/s390/kernel/perf_cpum_cf.c | 1 - arch/s390/kernel/sysinfo.c | 1 - arch/s390/pci/pci_clp.c | 1 - arch/um/drivers/harddog_kern.c | 1 - arch/um/drivers/hostaudio_kern.c | 2 -- arch/x86/kernel/cpu/mce/dev-mcelog.c | 1 - arch/x86/kernel/cpu/resctrl/pseudo_lock.c | 1 - drivers/acpi/apei/erst-dbg.c | 1 - drivers/auxdisplay/charlcd.c | 1 - drivers/block/mtip32xx/mtip32xx.c | 3 --- drivers/block/pktcdvd.c | 1 - drivers/bluetooth/hci_vhci.c | 1 - drivers/bus/moxtet.c | 2 -- drivers/char/agp/frontend.c | 1 - drivers/char/applicom.c | 1 - drivers/char/ds1620.c | 1 - drivers/char/dtlk.c | 1 - drivers/char/hpet.c | 1 - drivers/char/ipmi/ipmi_watchdog.c | 1 - drivers/char/pc8736x_gpio.c | 1 - drivers/char/pcmcia/cm4000_cs.c | 1 - drivers/char/pcmcia/cm4040_cs.c | 1 - drivers/char/pcmcia/scr24x_cs.c | 1 - drivers/char/ppdev.c | 1 - drivers/char/scx200_gpio.c | 1 - drivers/char/sonypi.c | 1 - drivers/char/tb0219.c | 1 - drivers/char/tpm/tpm-dev.c | 1 - drivers/char/tpm/tpm_vtpm_proxy.c | 1 - drivers/char/tpm/tpmrm-dev.c | 1 - drivers/char/virtio_console.c | 1 - drivers/counter/counter-chrdev.c | 1 - drivers/dma-buf/dma-buf.c | 1 - drivers/firewire/core-cdev.c | 1 - drivers/firmware/efi/capsule-loader.c | 1 - drivers/firmware/efi/test/efi_test.c | 1 - drivers/firmware/turris-mox-rwtm.c | 1 - drivers/gnss/core.c | 1 - drivers/gpio/gpio-mockup.c | 1 - drivers/gpio/gpiolib-cdev.c | 1 - drivers/gpu/drm/drm_file.c | 4 +--- drivers/gpu/drm/i915/i915_perf.c | 1 - drivers/gpu/drm/msm/msm_perf.c | 1 - drivers/gpu/drm/msm/msm_rd.c | 1 - drivers/hid/uhid.c | 1 - drivers/hwmon/asus_atk0110.c | 1 - drivers/hwmon/fschmd.c | 1 - drivers/hwmon/w83793.c | 1 - drivers/hwtracing/coresight/coresight-etb10.c | 1 - .../hwtracing/coresight/coresight-tmc-core.c | 1 - drivers/hwtracing/intel_th/msu.c | 1 - drivers/hwtracing/stm/core.c | 1 - drivers/i2c/i2c-dev.c | 1 - drivers/infiniband/core/ucma.c | 1 - drivers/infiniband/core/user_mad.c | 2 -- drivers/infiniband/core/uverbs_main.c | 4 ---- drivers/infiniband/hw/hfi1/fault.c | 1 - drivers/infiniband/hw/mlx5/devx.c | 2 -- drivers/input/evdev.c | 1 - drivers/input/joydev.c | 1 - drivers/input/keyboard/applespi.c | 1 - drivers/input/misc/uinput.c | 1 - drivers/input/serio/userio.c | 1 - drivers/isdn/capi/capi.c | 1 - drivers/isdn/mISDN/timerdev.c | 1 - drivers/leds/uleds.c | 1 - drivers/macintosh/adb.c | 1 - drivers/macintosh/smu.c | 1 - drivers/media/cec/core/cec-api.c | 1 - drivers/media/mc/mc-devnode.c | 1 - drivers/media/rc/lirc_dev.c | 1 - drivers/media/usb/uvc/uvc_debugfs.c | 1 - drivers/media/v4l2-core/v4l2-dev.c | 1 - drivers/message/fusion/mptctl.c | 1 - drivers/misc/lis3lv02d/lis3lv02d.c | 1 - drivers/misc/mei/main.c | 1 - drivers/misc/phantom.c | 1 - drivers/mmc/core/block.c | 1 - drivers/mtd/ubi/cdev.c | 2 -- drivers/mtd/ubi/debug.c | 1 - drivers/net/netdevsim/fib.c | 1 - drivers/net/tap.c | 1 - drivers/net/tun.c | 1 - .../wireless/broadcom/brcm80211/brcmfmac/core.c | 1 - drivers/net/wireless/intel/iwlwifi/mvm/d3.c | 1 - drivers/pinctrl/pinmux.c | 1 - drivers/platform/chrome/cros_ec_debugfs.c | 1 - drivers/platform/chrome/wilco_ec/debugfs.c | 1 - drivers/platform/chrome/wilco_ec/event.c | 1 - drivers/platform/chrome/wilco_ec/telemetry.c | 1 - .../platform/surface/surface_aggregator_cdev.c | 1 - drivers/platform/surface/surface_dtx.c | 1 - drivers/pps/pps.c | 1 - drivers/rtc/dev.c | 1 - drivers/rtc/rtc-m41t80.c | 1 - drivers/s390/char/fs3270.c | 1 - drivers/s390/char/sclp_ctl.c | 1 - drivers/s390/char/tape_char.c | 1 - drivers/s390/char/uvdevice.c | 1 - drivers/s390/char/vmcp.c | 1 - drivers/s390/char/vmlogrdr.c | 1 - drivers/s390/char/zcore.c | 2 -- drivers/s390/cio/chsc_sch.c | 1 - drivers/s390/cio/css.c | 1 - drivers/s390/crypto/pkey_api.c | 1 - drivers/s390/crypto/zcrypt_api.c | 1 - drivers/sbus/char/openprom.c | 1 - drivers/sbus/char/uctrl.c | 1 - drivers/scsi/sg.c | 1 - drivers/spi/spidev.c | 1 - drivers/staging/pi433/pi433_if.c | 1 - .../intel/int340x_thermal/acpi_thermal_rel.c | 1 - drivers/tty/tty_io.c | 3 --- drivers/usb/gadget/function/f_fs.c | 2 -- drivers/usb/gadget/legacy/inode.c | 2 -- drivers/usb/gadget/legacy/raw_gadget.c | 1 - drivers/usb/gadget/udc/atmel_usba_udc.c | 1 - drivers/usb/misc/ftdi-elan.c | 1 - drivers/usb/misc/ldusb.c | 1 - drivers/usb/mon/mon_bin.c | 1 - drivers/usb/mon/mon_stat.c | 1 - drivers/usb/mon/mon_text.c | 2 -- drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c | 2 -- drivers/vfio/pci/mlx5/main.c | 2 -- drivers/vfio/vfio.c | 2 +- drivers/watchdog/acquirewdt.c | 1 - drivers/watchdog/advantechwdt.c | 1 - drivers/watchdog/alim1535_wdt.c | 1 - drivers/watchdog/alim7101_wdt.c | 1 - drivers/watchdog/ar7_wdt.c | 1 - drivers/watchdog/at91rm9200_wdt.c | 1 - drivers/watchdog/ath79_wdt.c | 1 - drivers/watchdog/cpu5wdt.c | 1 - drivers/watchdog/cpwd.c | 1 - drivers/watchdog/eurotechwdt.c | 1 - drivers/watchdog/gef_wdt.c | 1 - drivers/watchdog/geodewdt.c | 1 - drivers/watchdog/ib700wdt.c | 1 - drivers/watchdog/ibmasr.c | 1 - drivers/watchdog/indydog.c | 1 - drivers/watchdog/it8712f_wdt.c | 1 - drivers/watchdog/m54xx_wdt.c | 1 - drivers/watchdog/machzwd.c | 1 - drivers/watchdog/mixcomwd.c | 1 - drivers/watchdog/mtx-1_wdt.c | 1 - drivers/watchdog/nv_tco.c | 1 - drivers/watchdog/pc87413_wdt.c | 1 - drivers/watchdog/pcwd.c | 2 -- drivers/watchdog/pcwd_pci.c | 2 -- drivers/watchdog/pcwd_usb.c | 2 -- drivers/watchdog/pika_wdt.c | 1 - drivers/watchdog/rc32434_wdt.c | 1 - drivers/watchdog/rdc321x_wdt.c | 1 - drivers/watchdog/riowd.c | 1 - drivers/watchdog/sa1100_wdt.c | 1 - drivers/watchdog/sb_wdog.c | 1 - drivers/watchdog/sbc60xxwdt.c | 1 - drivers/watchdog/sbc7240_wdt.c | 1 - drivers/watchdog/sbc8360.c | 1 - drivers/watchdog/sbc_epx_c3.c | 1 - drivers/watchdog/sbc_fitpc2_wdt.c | 1 - drivers/watchdog/sc1200wdt.c | 1 - drivers/watchdog/sc520_wdt.c | 1 - drivers/watchdog/sch311x_wdt.c | 1 - drivers/watchdog/scx200_wdt.c | 1 - drivers/watchdog/smsc37b787_wdt.c | 1 - drivers/watchdog/w83877f_wdt.c | 1 - drivers/watchdog/w83977f_wdt.c | 1 - drivers/watchdog/wafer5823wdt.c | 1 - drivers/watchdog/wdrtas.c | 2 -- drivers/watchdog/wdt.c | 2 -- drivers/watchdog/wdt285.c | 1 - drivers/watchdog/wdt977.c | 1 - drivers/watchdog/wdt_pci.c | 2 -- drivers/xen/evtchn.c | 1 - drivers/xen/mcelog.c | 1 - drivers/xen/xenbus/xenbus_dev_frontend.c | 1 - fs/coredump.c | 4 ++-- fs/debugfs/file.c | 1 - fs/dlm/debug_fs.c | 1 - fs/efivarfs/file.c | 1 - fs/file_table.c | 2 ++ fs/fsopen.c | 1 - fs/fuse/control.c | 4 ---- fs/fuse/dev.c | 1 - fs/nsfs.c | 1 - fs/open.c | 2 ++ fs/overlayfs/copy_up.c | 3 +-- fs/pipe.c | 1 - fs/read_write.c | 17 +++-------------- fs/splice.c | 10 ++++------ fs/ubifs/debug.c | 2 -- include/linux/debugfs.h | 1 - include/linux/fs.h | 1 - kernel/bpf/bpf_iter.c | 1 - kernel/events/core.c | 1 - kernel/power/user.c | 1 - kernel/relay.c | 1 - kernel/time/posix-clock.c | 1 - kernel/trace/trace.c | 3 --- mm/huge_memory.c | 1 - net/mac80211/rc80211_minstrel_ht_debugfs.c | 2 -- net/rfkill/core.c | 1 - net/socket.c | 1 - net/sunrpc/cache.c | 4 ---- net/sunrpc/rpc_pipe.c | 1 - scripts/coccinelle/api/stream_open.cocci | 1 - sound/core/control.c | 1 - sound/core/oss/mixer_oss.c | 1 - sound/core/oss/pcm_oss.c | 1 - sound/core/pcm_native.c | 2 -- sound/core/rawmidi.c | 1 - sound/core/seq/seq_clientmgr.c | 1 - sound/core/timer.c | 1 - sound/oss/dmasound/dmasound_core.c | 3 --- virt/kvm/kvm_main.c | 1 - 226 files changed, 16 insertions(+), 302 deletions(-)
Signature · 1 line
2.35.1
PATCH v3 1/7 fs: do not set no_llseek in fops
The struct file_operations ->llseek() method is supposed to be called in two places: vfs_llseek() and dump_skip(). Both treat NULL and no_llseek as equivalent.
The value of ->llseek is also examined in __full_proxy_fops_init() and ovl_copy_up_data(). For the former we could as well treat no_llseek as NULL; no need to do a proxy wrapper around the function that fails with -ESPIPE without so much as looking at its arguments. Same for the latter - there no_llseek would end up with skip_hole set true until the first time we look at it. At that point we call vfs_llseek(), observe that it has failed (-ESPIPE), shrug and set skip_hole false. We might as well have done that from the very beginning.
In other words, any place where .llseek is set to no_llseek could just as well set it to NULL.
--- .../watchdog/convert_drivers_to_kernel_api.rst | 1 - arch/parisc/kernel/perf.c | 1 - arch/powerpc/kernel/eeh.c | 4 ---- arch/powerpc/platforms/52xx/mpc52xx_gpt.c | 1 - arch/powerpc/platforms/cell/spufs/file.c | 17 ----------------- arch/powerpc/platforms/powernv/eeh-powernv.c | 1 - arch/powerpc/platforms/pseries/dtl.c | 1 - arch/s390/hypfs/hypfs_dbfs.c | 1 - arch/s390/hypfs/inode.c | 1 - arch/s390/kernel/debug.c | 1 - arch/s390/kernel/perf_cpum_cf.c | 1 - arch/s390/kernel/sysinfo.c | 1 - arch/s390/pci/pci_clp.c | 1 - arch/um/drivers/harddog_kern.c | 1 - arch/um/drivers/hostaudio_kern.c | 2 -- arch/x86/kernel/cpu/mce/dev-mcelog.c | 1 - arch/x86/kernel/cpu/resctrl/pseudo_lock.c | 1 - drivers/acpi/apei/erst-dbg.c | 1 - drivers/auxdisplay/charlcd.c | 1 - drivers/block/mtip32xx/mtip32xx.c | 3 --- drivers/block/pktcdvd.c | 1 - drivers/bluetooth/hci_vhci.c | 1 - drivers/bus/moxtet.c | 2 -- drivers/char/agp/frontend.c | 1 - drivers/char/applicom.c | 1 - drivers/char/ds1620.c | 1 - drivers/char/dtlk.c | 1 - drivers/char/hpet.c | 1 - drivers/char/ipmi/ipmi_watchdog.c | 1 - drivers/char/pc8736x_gpio.c | 1 - drivers/char/pcmcia/cm4000_cs.c | 1 - drivers/char/pcmcia/cm4040_cs.c | 1 - drivers/char/pcmcia/scr24x_cs.c | 1 - drivers/char/ppdev.c | 1 - drivers/char/scx200_gpio.c | 1 - drivers/char/sonypi.c | 1 - drivers/char/tb0219.c | 1 - drivers/char/tpm/tpm-dev.c | 1 - drivers/char/tpm/tpm_vtpm_proxy.c | 1 - drivers/char/tpm/tpmrm-dev.c | 1 - drivers/char/virtio_console.c | 1 - drivers/counter/counter-chrdev.c | 1 - drivers/firewire/core-cdev.c | 1 - drivers/firmware/efi/capsule-loader.c | 1 - drivers/firmware/efi/test/efi_test.c | 1 - drivers/firmware/turris-mox-rwtm.c | 1 - drivers/gnss/core.c | 1 - drivers/gpio/gpio-mockup.c | 1 - drivers/gpio/gpiolib-cdev.c | 1 - drivers/gpu/drm/drm_file.c | 4 +--- drivers/gpu/drm/i915/i915_perf.c | 1 - drivers/gpu/drm/msm/msm_perf.c | 1 - drivers/gpu/drm/msm/msm_rd.c | 1 - drivers/hid/uhid.c | 1 - drivers/hwmon/asus_atk0110.c | 1 - drivers/hwmon/fschmd.c | 1 - drivers/hwmon/w83793.c | 1 - drivers/hwtracing/coresight/coresight-etb10.c | 1 - .../hwtracing/coresight/coresight-tmc-core.c | 1 - drivers/hwtracing/intel_th/msu.c | 1 - drivers/hwtracing/stm/core.c | 1 - drivers/i2c/i2c-dev.c | 1 - drivers/infiniband/core/ucma.c | 1 - drivers/infiniband/core/user_mad.c | 2 -- drivers/infiniband/core/uverbs_main.c | 4 ---- drivers/infiniband/hw/hfi1/fault.c | 1 - drivers/infiniband/hw/mlx5/devx.c | 2 -- drivers/input/evdev.c | 1 - drivers/input/joydev.c | 1 - drivers/input/keyboard/applespi.c | 1 - drivers/input/misc/uinput.c | 1 - drivers/input/serio/userio.c | 1 - drivers/isdn/capi/capi.c | 1 - drivers/isdn/mISDN/timerdev.c | 1 - drivers/leds/uleds.c | 1 - drivers/macintosh/adb.c | 1 - drivers/macintosh/smu.c | 1 - drivers/media/cec/core/cec-api.c | 1 - drivers/media/mc/mc-devnode.c | 1 - drivers/media/rc/lirc_dev.c | 1 - drivers/media/usb/uvc/uvc_debugfs.c | 1 - drivers/media/v4l2-core/v4l2-dev.c | 1 - drivers/message/fusion/mptctl.c | 1 - drivers/misc/lis3lv02d/lis3lv02d.c | 1 - drivers/misc/mei/main.c | 1 - drivers/misc/phantom.c | 1 - drivers/mmc/core/block.c | 1 - drivers/mtd/ubi/cdev.c | 2 -- drivers/mtd/ubi/debug.c | 1 - drivers/net/netdevsim/fib.c | 1 - drivers/net/tap.c | 1 - drivers/net/tun.c | 1 - .../wireless/broadcom/brcm80211/brcmfmac/core.c | 1 - drivers/net/wireless/intel/iwlwifi/mvm/d3.c | 1 - drivers/pinctrl/pinmux.c | 1 - drivers/platform/chrome/cros_ec_debugfs.c | 1 - drivers/platform/chrome/wilco_ec/debugfs.c | 1 - drivers/platform/chrome/wilco_ec/event.c | 1 - drivers/platform/chrome/wilco_ec/telemetry.c | 1 - .../platform/surface/surface_aggregator_cdev.c | 1 - drivers/platform/surface/surface_dtx.c | 1 - drivers/pps/pps.c | 1 - drivers/rtc/dev.c | 1 - drivers/rtc/rtc-m41t80.c | 1 - drivers/s390/char/fs3270.c | 1 - drivers/s390/char/sclp_ctl.c | 1 - drivers/s390/char/tape_char.c | 1 - drivers/s390/char/uvdevice.c | 1 - drivers/s390/char/vmcp.c | 1 - drivers/s390/char/vmlogrdr.c | 1 - drivers/s390/char/zcore.c | 2 -- drivers/s390/cio/chsc_sch.c | 1 - drivers/s390/cio/css.c | 1 - drivers/s390/crypto/pkey_api.c | 1 - drivers/s390/crypto/zcrypt_api.c | 1 - drivers/sbus/char/openprom.c | 1 - drivers/sbus/char/uctrl.c | 1 - drivers/scsi/sg.c | 1 - drivers/spi/spidev.c | 1 - drivers/staging/pi433/pi433_if.c | 1 - .../intel/int340x_thermal/acpi_thermal_rel.c | 1 - drivers/tty/tty_io.c | 3 --- drivers/usb/gadget/function/f_fs.c | 2 -- drivers/usb/gadget/legacy/inode.c | 2 -- drivers/usb/gadget/legacy/raw_gadget.c | 1 - drivers/usb/gadget/udc/atmel_usba_udc.c | 1 - drivers/usb/misc/ftdi-elan.c | 1 - drivers/usb/misc/ldusb.c | 1 - drivers/usb/mon/mon_bin.c | 1 - drivers/usb/mon/mon_stat.c | 1 - drivers/usb/mon/mon_text.c | 2 -- drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c | 2 -- drivers/vfio/pci/mlx5/main.c | 2 -- drivers/watchdog/acquirewdt.c | 1 - drivers/watchdog/advantechwdt.c | 1 - drivers/watchdog/alim1535_wdt.c | 1 - drivers/watchdog/alim7101_wdt.c | 1 - drivers/watchdog/ar7_wdt.c | 1 - drivers/watchdog/at91rm9200_wdt.c | 1 - drivers/watchdog/ath79_wdt.c | 1 - drivers/watchdog/cpu5wdt.c | 1 - drivers/watchdog/cpwd.c | 1 - drivers/watchdog/eurotechwdt.c | 1 - drivers/watchdog/gef_wdt.c | 1 - drivers/watchdog/geodewdt.c | 1 - drivers/watchdog/ib700wdt.c | 1 - drivers/watchdog/ibmasr.c | 1 - drivers/watchdog/indydog.c | 1 - drivers/watchdog/it8712f_wdt.c | 1 - drivers/watchdog/m54xx_wdt.c | 1 - drivers/watchdog/machzwd.c | 1 - drivers/watchdog/mixcomwd.c | 1 - drivers/watchdog/mtx-1_wdt.c | 1 - drivers/watchdog/nv_tco.c | 1 - drivers/watchdog/pc87413_wdt.c | 1 - drivers/watchdog/pcwd.c | 2 -- drivers/watchdog/pcwd_pci.c | 2 -- drivers/watchdog/pcwd_usb.c | 2 -- drivers/watchdog/pika_wdt.c | 1 - drivers/watchdog/rc32434_wdt.c | 1 - drivers/watchdog/rdc321x_wdt.c | 1 - drivers/watchdog/riowd.c | 1 - drivers/watchdog/sa1100_wdt.c | 1 - drivers/watchdog/sb_wdog.c | 1 - drivers/watchdog/sbc60xxwdt.c | 1 - drivers/watchdog/sbc7240_wdt.c | 1 - drivers/watchdog/sbc8360.c | 1 - drivers/watchdog/sbc_epx_c3.c | 1 - drivers/watchdog/sbc_fitpc2_wdt.c | 1 - drivers/watchdog/sc1200wdt.c | 1 - drivers/watchdog/sc520_wdt.c | 1 - drivers/watchdog/sch311x_wdt.c | 1 - drivers/watchdog/scx200_wdt.c | 1 - drivers/watchdog/smsc37b787_wdt.c | 1 - drivers/watchdog/w83877f_wdt.c | 1 - drivers/watchdog/w83977f_wdt.c | 1 - drivers/watchdog/wafer5823wdt.c | 1 - drivers/watchdog/wdrtas.c | 2 -- drivers/watchdog/wdt.c | 2 -- drivers/watchdog/wdt285.c | 1 - drivers/watchdog/wdt977.c | 1 - drivers/watchdog/wdt_pci.c | 2 -- drivers/xen/evtchn.c | 1 - drivers/xen/mcelog.c | 1 - drivers/xen/xenbus/xenbus_dev_frontend.c | 1 - fs/debugfs/file.c | 1 - fs/dlm/debug_fs.c | 1 - fs/efivarfs/file.c | 1 - fs/fsopen.c | 1 - fs/fuse/control.c | 4 ---- fs/fuse/dev.c | 1 - fs/nsfs.c | 1 - fs/pipe.c | 1 - fs/ubifs/debug.c | 2 -- include/linux/debugfs.h | 1 - kernel/bpf/bpf_iter.c | 1 - kernel/events/core.c | 1 - kernel/power/user.c | 1 - kernel/relay.c | 1 - kernel/time/posix-clock.c | 1 - kernel/trace/trace.c | 3 --- mm/huge_memory.c | 1 - net/mac80211/rc80211_minstrel_ht_debugfs.c | 2 -- net/rfkill/core.c | 1 - net/socket.c | 1 - net/sunrpc/cache.c | 4 ---- net/sunrpc/rpc_pipe.c | 1 - scripts/coccinelle/api/stream_open.cocci | 1 - sound/core/control.c | 1 - sound/core/oss/mixer_oss.c | 1 - sound/core/oss/pcm_oss.c | 1 - sound/core/pcm_native.c | 2 -- sound/core/rawmidi.c | 1 - sound/core/seq/seq_clientmgr.c | 1 - sound/core/timer.c | 1 - sound/oss/dmasound/dmasound_core.c | 3 --- virt/kvm/kvm_main.c | 1 - 217 files changed, 1 insertion(+), 275 deletions(-)
Documentation/watchdog/convert_drivers_to_kernel_api.rst +0 -1
@@ -75,7 +75,6 @@ Example conversion:: -static const struct file_operations s3c2410wdt_fops = { - .owner = THIS_MODULE, - - .llseek = no_llseek, - .write = s3c2410wdt_write, - .unlocked_ioctl = s3c2410wdt_ioctl, - .open = s3c2410wdt_open,
arch/parisc/kernel/perf.c +0 -1
@@ -466,7 +466,6 @@ static long perf_ioctl(struct file *file, unsigned int cmd, unsigned long arg) }static const struct file_operations perf_fops = { - .llseek = no_llseek, .read = perf_read, .write = perf_write, .unlocked_ioctl = perf_ioctl,
arch/powerpc/kernel/eeh.c +0 -4
@@ -1689,7 +1689,6 @@ static ssize_t eeh_force_recover_write(struct file *filp,static const struct file_operations eeh_force_recover_fops = { .open = simple_open, - .llseek = no_llseek, .write = eeh_force_recover_write, };
@@ -1733,7 +1732,6 @@ static ssize_t eeh_dev_check_write(struct file *filp,static const struct file_operations eeh_dev_check_fops = { .open = simple_open, - .llseek = no_llseek, .write = eeh_dev_check_write, .read = eeh_debugfs_dev_usage, };
@@ -1853,7 +1851,6 @@ static ssize_t eeh_dev_break_write(struct file *filp,static const struct file_operations eeh_dev_break_fops = { .open = simple_open, - .llseek = no_llseek, .write = eeh_dev_break_write, .read = eeh_debugfs_dev_usage, };
@@ -1900,7 +1897,6 @@ static ssize_t eeh_dev_can_recover(struct file *filp,static const struct file_operations eeh_dev_can_recover_fops = { .open = simple_open, - .llseek = no_llseek, .write = eeh_dev_can_recover, .read = eeh_debugfs_dev_usage, };
arch/powerpc/platforms/52xx/mpc52xx_gpt.c +0 -1
@@ -647,7 +647,6 @@ static int mpc52xx_wdt_release(struct inode *inode, struct file *file)static const struct file_operations mpc52xx_wdt_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = mpc52xx_wdt_write, .unlocked_ioctl = mpc52xx_wdt_ioctl, .compat_ioctl = compat_ptr_ioctl,
arch/powerpc/platforms/cell/spufs/file.c +0 -17
@@ -453,7 +453,6 @@ static const struct file_operations spufs_cntl_fops = { .release = spufs_cntl_release, .read = simple_attr_read, .write = simple_attr_write, - .llseek = no_llseek, .mmap = spufs_cntl_mmap, };
@@ -634,7 +633,6 @@ static ssize_t spufs_mbox_read(struct file *file, char __user *buf,static const struct file_operations spufs_mbox_fops = { .open = spufs_pipe_open, .read = spufs_mbox_read, - .llseek = no_llseek, }; static ssize_t spufs_mbox_stat_read(struct file *file, char __user *buf,
@@ -664,7 +662,6 @@ static ssize_t spufs_mbox_stat_read(struct file *file, char __user *buf,static const struct file_operations spufs_mbox_stat_fops = { .open = spufs_pipe_open, .read = spufs_mbox_stat_read, - .llseek = no_llseek, };/* low-level ibox access function */
@@ -769,7 +766,6 @@ static const struct file_operations spufs_ibox_fops = { .open = spufs_pipe_open, .read = spufs_ibox_read, .poll = spufs_ibox_poll, - .llseek = no_llseek, }; static ssize_t spufs_ibox_stat_read(struct file *file, char __user *buf,
@@ -797,7 +793,6 @@ static ssize_t spufs_ibox_stat_read(struct file *file, char __user *buf,static const struct file_operations spufs_ibox_stat_fops = { .open = spufs_pipe_open, .read = spufs_ibox_stat_read, - .llseek = no_llseek, };/* low-level mailbox write */
@@ -901,7 +896,6 @@ static const struct file_operations spufs_wbox_fops = { .open = spufs_pipe_open, .write = spufs_wbox_write, .poll = spufs_wbox_poll, - .llseek = no_llseek, }; static ssize_t spufs_wbox_stat_read(struct file *file, char __user *buf,
@@ -929,7 +923,6 @@ static ssize_t spufs_wbox_stat_read(struct file *file, char __user *buf,static const struct file_operations spufs_wbox_stat_fops = { .open = spufs_pipe_open, .read = spufs_wbox_stat_read, - .llseek = no_llseek, };static int spufs_signal1_open (struct inode *inode,struct file *file)
@@ -1056,7 +1049,6 @@ static const struct file_operations spufs_signal1_fops = { .read = spufs_signal1_read, .write = spufs_signal1_write, .mmap = spufs_signal1_mmap, - .llseek = no_llseek, };static const struct file_operations spufs_signal1_nosched_fops = {
@@ -1064,7 +1056,6 @@ static const struct file_operations spufs_signal1_nosched_fops = { .release = spufs_signal1_release, .write = spufs_signal1_write, .mmap = spufs_signal1_mmap, - .llseek = no_llseek, };static int spufs_signal2_open (struct inode *inode,struct file *file)
@@ -1195,7 +1186,6 @@ static const struct file_operations spufs_signal2_fops = { .read = spufs_signal2_read, .write = spufs_signal2_write, .mmap = spufs_signal2_mmap, - .llseek = no_llseek, };static const struct file_operations spufs_signal2_nosched_fops = {
@@ -1203,7 +1193,6 @@ static const struct file_operations spufs_signal2_nosched_fops = { .release = spufs_signal2_release, .write = spufs_signal2_write, .mmap = spufs_signal2_mmap, - .llseek = no_llseek, };/*
@@ -1343,7 +1332,6 @@ static const struct file_operations spufs_mss_fops = { .open = spufs_mss_open, .release = spufs_mss_release, .mmap = spufs_mss_mmap, - .llseek = no_llseek, }; static vm_fault_t
@@ -1401,7 +1389,6 @@ static const struct file_operations spufs_psmap_fops = { .open = spufs_psmap_open, .release = spufs_psmap_release, .mmap = spufs_psmap_mmap, - .llseek = no_llseek, };
@@ -1744,7 +1731,6 @@ static const struct file_operations spufs_mfc_fops = { .flush = spufs_mfc_flush, .fsync = spufs_mfc_fsync, .mmap = spufs_mfc_mmap, - .llseek = no_llseek, };static int spufs_npc_set (void *data,u64 val)
@@ -2114,7 +2100,6 @@ static ssize_t spufs_dma_info_read(struct file *file, char __user *buf,static const struct file_operations spufs_dma_info_fops = { .open = spufs_info_open, .read = spufs_dma_info_read, - .llseek = no_llseek, }; static void spufs_get_proxydma_info(struct spu_context *ctx,
@@ -2171,7 +2156,6 @@ static ssize_t spufs_proxydma_info_read(struct file *file, char __user *buf,static const struct file_operations spufs_proxydma_info_fops = { .open = spufs_info_open, .read = spufs_proxydma_info_read, - .llseek = no_llseek, };static int spufs_show_tid (struct seq_file *s,void *private)
@@ -2454,7 +2438,6 @@ static const struct file_operations spufs_switch_log_fops = { .read = spufs_switch_log_read, .poll = spufs_switch_log_poll, .release = spufs_switch_log_release, - .llseek = no_llseek, };/**
arch/powerpc/platforms/powernv/eeh-powernv.c +0 -1
@@ -99,7 +99,6 @@ static ssize_t pnv_eeh_ei_write(struct file *filp,static const struct file_operations pnv_eeh_ei_fops = { .open = simple_open, - .llseek = no_llseek, .write = pnv_eeh_ei_write, };
arch/powerpc/platforms/pseries/dtl.c +0 -1
@@ -315,7 +315,6 @@ static const struct file_operations dtl_fops = { .open = dtl_file_open, .release = dtl_file_release, .read = dtl_file_read, - .llseek = no_llseek, };static struct dentry *dtl_dir;
arch/s390/hypfs/hypfs_dbfs.c +0 -1
@@ -74,7 +74,6 @@ static long dbfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg)static const struct file_operations dbfs_ops = { .read = dbfs_read, - .llseek = no_llseek, .unlocked_ioctl = dbfs_ioctl, };
arch/s390/hypfs/inode.c +0 -1
@@ -443,7 +443,6 @@ static const struct file_operations hypfs_file_ops = { .release = hypfs_release, .read_iter = hypfs_read_iter, .write_iter = hypfs_write_iter, - .llseek = no_llseek, };static struct file_system_type hypfs_type = {
arch/s390/kernel/debug.c +0 -1
@@ -163,7 +163,6 @@ 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;
arch/s390/kernel/perf_cpum_cf.c +0 -1
@@ -1255,7 +1255,6 @@ static const struct file_operations cfset_fops = { .release = cfset_release, .unlocked_ioctl = cfset_ioctl, .compat_ioctl = cfset_ioctl, - .llseek = no_llseek };static struct miscdevice cfset_dev = {
arch/s390/kernel/sysinfo.c +0 -1
@@ -495,7 +495,6 @@ static const struct file_operations stsi_##fc##_##s1##_##s2##_fs_ops = { \ .open = stsi_open_##fc##_##s1##_##s2, \ .release = stsi_release, \ .read = stsi_read, \ - .llseek = no_llseek, \ };static int stsi_release (struct inode *inode,struct file *file)
arch/s390/pci/pci_clp.c +0 -1
@@ -650,7 +650,6 @@ static const struct file_operations clp_misc_fops = { .release = clp_misc_release, .unlocked_ioctl = clp_misc_ioctl, .compat_ioctl = clp_misc_ioctl, - .llseek = no_llseek, };static struct miscdevice clp_misc_device = {
arch/um/drivers/harddog_kern.c +0 -1
@@ -168,7 +168,6 @@ static const struct file_operations harddog_fops = { .compat_ioctl = compat_ptr_ioctl, .open = harddog_open, .release = harddog_release, - .llseek = no_llseek, };static struct miscdevice harddog_miscdev = {
arch/um/drivers/hostaudio_kern.c +0 -2
@@ -291,7 +291,6 @@ static int hostmixer_release(struct inode *inode, struct file *file)static const struct file_operations hostaudio_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .read = hostaudio_read, .write = hostaudio_write, .poll = hostaudio_poll,
@@ -304,7 +303,6 @@ static const struct file_operations hostaudio_fops = {static const struct file_operations hostmixer_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .unlocked_ioctl = hostmixer_ioctl_mixdev, .open = hostmixer_open_mixdev, .release = hostmixer_release,
arch/x86/kernel/cpu/mce/dev-mcelog.c +0 -1
@@ -332,7 +332,6 @@ static const struct file_operations mce_chrdev_ops = { .poll = mce_chrdev_poll, .unlocked_ioctl = mce_chrdev_ioctl, .compat_ioctl = compat_ptr_ioctl, - .llseek = no_llseek, };static struct miscdevice mce_chrdev_device = {
arch/x86/kernel/cpu/resctrl/pseudo_lock.c +0 -1
@@ -1546,7 +1546,6 @@ static int pseudo_lock_dev_mmap(struct file *filp, struct vm_area_struct *vma)static const struct file_operations pseudo_lock_dev_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .read =NULL , .write =NULL , .open = pseudo_lock_dev_open,
drivers/acpi/apei/erst-dbg.c +0 -1
@@ -199,7 +199,6 @@ 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 = {
drivers/auxdisplay/charlcd.c +0 -1
@@ -524,7 +524,6 @@ static const struct file_operations charlcd_fops = { .write = charlcd_write, .open = charlcd_open, .release = charlcd_release, - .llseek = no_llseek, };static struct miscdevice charlcd_dev = {
drivers/block/mtip32xx/mtip32xx.c +0 -3
@@ -2367,21 +2367,18 @@ static const struct file_operations mtip_device_status_fops = { .owner = THIS_MODULE, .open = simple_open, .read = mtip_hw_read_device_status, - .llseek = no_llseek, };static const struct file_operations mtip_regs_fops = { .owner =THIS_MODULE , .open = simple_open, .read = mtip_hw_read_registers, - .llseek = no_llseek, };static const struct file_operations mtip_flags_fops = { .owner =THIS_MODULE , .open = simple_open, .read = mtip_hw_read_flags, - .llseek = no_llseek, };static int mtip_hw_debugfs_init (struct driver_data *dd)
drivers/block/pktcdvd.c +0 -1
@@ -2866,7 +2866,6 @@ 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 = {
drivers/bluetooth/hci_vhci.c +0 -1
@@ -583,7 +583,6 @@ static const struct file_operations vhci_fops = { .poll = vhci_poll, .open = vhci_open, .release = vhci_release, - .llseek = no_llseek, };static struct miscdevice vhci_miscdev = {
drivers/bus/moxtet.c +0 -2
@@ -484,7 +484,6 @@ static const struct file_operations input_fops = { .owner = THIS_MODULE, .open = moxtet_debug_open, .read = input_read, - .llseek = no_llseek, }; static ssize_t output_read(struct file *file, char __user *buf, size_t len,
@@ -549,7 +548,6 @@ static const struct file_operations output_fops = { .open = moxtet_debug_open, .read = output_read, .write = output_write, - .llseek = no_llseek, };static int moxtet_register_debugfs (struct moxtet *moxtet)
drivers/char/agp/frontend.c +0 -1
@@ -1033,7 +1033,6 @@ static long agp_ioctl(struct file *file,static const struct file_operations agp_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .unlocked_ioctl = agp_ioctl, #ifdef CONFIG_COMPAT .compat_ioctl = compat_agp_ioctl,
drivers/char/applicom.c +0 -1
@@ -111,7 +111,6 @@ static irqreturn_t ac_interrupt(int, void *);static const struct file_operations ac_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .read = ac_read, .write = ac_write, .unlocked_ioctl = ac_ioctl,
drivers/char/ds1620.c +0 -1
@@ -353,7 +353,6 @@ 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 = {
drivers/char/dtlk.c +0 -1
@@ -107,7 +107,6 @@ static const struct file_operations dtlk_fops = .unlocked_ioctl = dtlk_ioctl, .open = dtlk_open, .release = dtlk_release, - .llseek = no_llseek, };/* local prototypes */
drivers/char/hpet.c +0 -1
@@ -696,7 +696,6 @@ hpet_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg)static const struct file_operations hpet_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .read = hpet_read, .poll = hpet_poll, .unlocked_ioctl = hpet_ioctl,
drivers/char/ipmi/ipmi_watchdog.c +0 -1
@@ -903,7 +903,6 @@ 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 = {
drivers/char/pc8736x_gpio.c +0 -1
@@ -235,7 +235,6 @@ 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 )
drivers/char/pcmcia/cm4000_cs.c +0 -1
@@ -1852,7 +1852,6 @@ static const struct file_operations cm4000_fops = { .unlocked_ioctl = cmm_ioctl, .open = cmm_open, .release= cmm_close, - .llseek = no_llseek, };static const struct pcmcia_device_id cm4000_ids[] = {
drivers/char/pcmcia/cm4040_cs.c +0 -1
@@ -627,7 +627,6 @@ static const struct file_operations reader_fops = { .open = cm4040_open, .release = cm4040_close, .poll = cm4040_poll, - .llseek = no_llseek, };static const struct pcmcia_device_id cm4040_ids[] = {
drivers/char/pcmcia/scr24x_cs.c +0 -1
@@ -219,7 +219,6 @@ static const struct file_operations scr24x_fops = { .write = scr24x_write, .open = scr24x_open, .release = scr24x_release, - .llseek = no_llseek, };static int scr24x_config_check (struct pcmcia_device *link,void *priv_data)
drivers/char/ppdev.c +0 -1
@@ -777,7 +777,6 @@ static struct class *ppdev_class;static const struct file_operations pp_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .read = pp_read, .write = pp_write, .poll = pp_poll,
drivers/char/scx200_gpio.c +0 -1
@@ -68,7 +68,6 @@ 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 */
drivers/char/sonypi.c +0 -1
@@ -1054,7 +1054,6 @@ static const struct file_operations sonypi_misc_fops = { .release = sonypi_misc_release, .fasync = sonypi_misc_fasync, .unlocked_ioctl = sonypi_misc_ioctl, - .llseek = no_llseek, };static struct miscdevice sonypi_misc_device = {
drivers/char/tb0219.c +0 -1
@@ -249,7 +249,6 @@ 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)
drivers/char/tpm/tpm-dev.c +0 -1
@@ -59,7 +59,6 @@ static int tpm_release(struct inode *inode, struct file *file)const struct file_operations tpm_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .open = tpm_open, .read = tpm_common_read, .write = tpm_common_write,
drivers/char/tpm/tpm_vtpm_proxy.c +0 -1
@@ -243,7 +243,6 @@ static int vtpm_proxy_fops_release(struct inode *inode, struct file *filp)static const struct file_operations vtpm_proxy_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .read = vtpm_proxy_fops_read, .write = vtpm_proxy_fops_write, .poll = vtpm_proxy_fops_poll,
drivers/char/tpm/tpmrm-dev.c +0 -1
@@ -46,7 +46,6 @@ static int tpmrm_release(struct inode *inode, struct file *file)const struct file_operations tpmrm_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .open = tpmrm_open, .read = tpm_common_read, .write = tpm_common_write,
drivers/char/virtio_console.c +0 -1
@@ -1103,7 +1103,6 @@ static const struct file_operations port_fops = { .poll = port_fops_poll, .release = port_fops_release, .fasync = port_fops_fasync, - .llseek = no_llseek, };/*
drivers/counter/counter-chrdev.c +0 -1
@@ -420,7 +420,6 @@ static int counter_chrdev_release(struct inode *inode, struct file *filp)static const struct file_operations counter_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .read = counter_chrdev_read, .poll = counter_chrdev_poll, .unlocked_ioctl = counter_chrdev_ioctl,
drivers/firewire/core-cdev.c +0 -1
@@ -1803,7 +1803,6 @@ static __poll_t fw_device_op_poll(struct file *file, poll_table * pt)const struct file_operations fw_device_ops = { .owner =THIS_MODULE , - .llseek = no_llseek, .open = fw_device_op_open, .read = fw_device_op_read, .unlocked_ioctl = fw_device_op_ioctl,
drivers/firmware/efi/capsule-loader.c +0 -1
@@ -326,7 +326,6 @@ static const struct file_operations efi_capsule_fops = { .write = efi_capsule_write, .flush = efi_capsule_flush, .release = efi_capsule_release, - .llseek = no_llseek, };static struct miscdevice efi_capsule_misc = {
drivers/firmware/efi/test/efi_test.c +0 -1
@@ -750,7 +750,6 @@ static const struct file_operations efi_test_fops = { .unlocked_ioctl = efi_test_ioctl, .open = efi_test_open, .release = efi_test_close, - .llseek = no_llseek, };static struct miscdevice efi_test_dev = {
drivers/firmware/turris-mox-rwtm.c +0 -1
@@ -428,7 +428,6 @@ static const struct file_operations do_sign_fops = { .open = rwtm_debug_open, .read = do_sign_read, .write = do_sign_write, - .llseek = no_llseek, };static int rwtm_register_debugfs (struct mox_rwtm *rwtm)
drivers/gnss/core.c +0 -1
@@ -206,7 +206,6 @@ static const struct file_operations gnss_fops = { .read = gnss_read, .write = gnss_write, .poll = gnss_poll, - .llseek = no_llseek, };static struct class *gnss_class;
drivers/gpio/gpio-mockup.c +0 -1
@@ -337,7 +337,6 @@ static const struct file_operations gpio_mockup_debugfs_ops = { .open = gpio_mockup_debugfs_open, .read = gpio_mockup_debugfs_read, .write = gpio_mockup_debugfs_write, - .llseek = no_llseek, .release = single_release, };
drivers/gpio/gpiolib-cdev.c +0 -1
@@ -2537,7 +2537,6 @@ static const struct file_operations gpio_fileops = { .poll = lineinfo_watch_poll, .read = lineinfo_watch_read, .owner = THIS_MODULE, - .llseek = no_llseek, .unlocked_ioctl = gpio_ioctl, #ifdef CONFIG_COMPAT .compat_ioctl = gpio_ioctl_compat,
drivers/gpu/drm/drm_file.c +1 -3
@@ -126,7 +126,6 @@ bool drm_dev_needs_global_mutex(struct drm_device *dev)* .compat_ioctl = drm_compat_ioctl, // NULL if CONFIG_COMPAT=n * .poll = drm_poll, * .read = drm_read, -* .llseek = no_llseek, * .mmap = drm_gem_mmap, * }; *
@@ -552,8 +551,7 @@ EXPORT_SYMBOL(drm_release_noglobal);* Since events are used by the KMS API for vblank and page flip completion this * means all modern display drivers must use it. * -* @offset is ignored, DRM events are read like a pipe. Therefore drivers also -* must set the &file_operation.llseek to no_llseek(). Polling support is +* @offset is ignored, DRM events are read like a pipe. Polling support is * provided by drm_poll(). * * This function will only ever read a full event. Therefore userspace must
drivers/gpu/drm/i915/i915_perf.c +0 -1
@@ -3374,7 +3374,6 @@ static int i915_perf_release(struct inode *inode, struct file *file)static const struct file_operations fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .release = i915_perf_release, .poll = i915_perf_poll, .read = i915_perf_read,
drivers/gpu/drm/msm/msm_perf.c +0 -1
@@ -192,7 +192,6 @@ static const struct file_operations perf_debugfs_fops = { .owner = THIS_MODULE, .open = perf_open, .read = perf_read, - .llseek = no_llseek, .release = perf_release, };
drivers/gpu/drm/msm/msm_rd.c +0 -1
@@ -229,7 +229,6 @@ static const struct file_operations rd_debugfs_fops = { .owner = THIS_MODULE, .open = rd_open, .read = rd_read, - .llseek = no_llseek, .release = rd_release, };
drivers/hid/uhid.c +0 -1
@@ -804,7 +804,6 @@ static const struct file_operations uhid_fops = { .read = uhid_char_read, .write = uhid_char_write, .poll = uhid_char_poll, - .llseek = no_llseek, };static struct miscdevice uhid_misc = {
drivers/hwmon/asus_atk0110.c +0 -1
@@ -783,7 +783,6 @@ 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)
drivers/hwmon/fschmd.c +0 -1
@@ -948,7 +948,6 @@ static long watchdog_ioctl(struct file *filp, unsigned int cmd,static const struct file_operations watchdog_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .open = watchdog_open, .release = watchdog_release, .write = watchdog_write,
drivers/hwmon/w83793.c +0 -1
@@ -1451,7 +1451,6 @@ static long watchdog_ioctl(struct file *filp, unsigned int cmd,static const struct file_operations watchdog_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .open = watchdog_open, .release = watchdog_close, .write = watchdog_write,
drivers/hwtracing/coresight/coresight-etb10.c +0 -1
@@ -652,7 +652,6 @@ static const struct file_operations etb_fops = { .open = etb_open, .read = etb_read, .release = etb_release, - .llseek = no_llseek, };#define coresight_etb10_reg (name, offset) \
drivers/hwtracing/coresight/coresight-tmc-core.c +0 -1
@@ -215,7 +215,6 @@ static const struct file_operations tmc_fops = { .open = tmc_open, .read = tmc_read, .release = tmc_release, - .llseek = no_llseek, };static enum tmc_mem_intf_width tmc_get_memwidth (u32 devid)
drivers/hwtracing/intel_th/msu.c +0 -1
@@ -1659,7 +1659,6 @@ static const struct file_operations intel_th_msc_fops = { .release = intel_th_msc_release, .read = intel_th_msc_read, .mmap = intel_th_msc_mmap, - .llseek = no_llseek, .owner = THIS_MODULE, };
drivers/hwtracing/stm/core.c +0 -1
@@ -839,7 +839,6 @@ static const struct file_operations stm_fops = { .mmap = stm_char_mmap, .unlocked_ioctl = stm_char_ioctl, .compat_ioctl = compat_ptr_ioctl, - .llseek = no_llseek, };static void stm_device_release (struct device *dev)
drivers/i2c/i2c-dev.c +0 -1
@@ -625,7 +625,6 @@ static int i2cdev_release(struct inode *inode, struct file *file)static const struct file_operations i2cdev_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .read = i2cdev_read, .write = i2cdev_write, .unlocked_ioctl = i2cdev_ioctl,
drivers/infiniband/core/ucma.c +0 -1
@@ -1818,7 +1818,6 @@ static const struct file_operations ucma_fops = { .release = ucma_close, .write = ucma_write, .poll = ucma_poll, - .llseek = no_llseek, };static struct miscdevice ucma_misc = {
drivers/infiniband/core/user_mad.c +0 -2
@@ -1068,7 +1068,6 @@ static const struct file_operations umad_fops = {#endif .open = ib_umad_open, .release = ib_umad_close, - .llseek = no_llseek, };static int ib_umad_sm_open (struct inode *inode,struct file *filp)
@@ -1136,7 +1135,6 @@ static const struct file_operations umad_sm_fops = { .owner = THIS_MODULE, .open = ib_umad_sm_open, .release = ib_umad_sm_close, - .llseek = no_llseek, }; static struct ib_umad_port *get_port(struct ib_device *ibdev,
drivers/infiniband/core/uverbs_main.c +0 -4
@@ -344,7 +344,6 @@ const struct file_operations uverbs_event_fops = { .poll = ib_uverbs_comp_event_poll, .release = uverbs_uobject_fd_release, .fasync = ib_uverbs_comp_event_fasync, - .llseek = no_llseek, };const struct file_operations uverbs_async_event_fops = {
@@ -353,7 +352,6 @@ const struct file_operations uverbs_async_event_fops = { .poll = ib_uverbs_async_event_poll, .release = uverbs_async_event_release, .fasync = ib_uverbs_async_event_fasync, - .llseek = no_llseek, };void ib_uverbs_comp_handler (struct ib_cq *cq,void *cq_context)
@@ -982,7 +980,6 @@ static const struct file_operations uverbs_fops = { .write = ib_uverbs_write, .open = ib_uverbs_open, .release = ib_uverbs_close, - .llseek = no_llseek, .unlocked_ioctl = ib_uverbs_ioctl, .compat_ioctl = compat_ptr_ioctl, };
@@ -993,7 +990,6 @@ static const struct file_operations uverbs_mmap_fops = { .mmap = ib_uverbs_mmap, .open = ib_uverbs_open, .release = ib_uverbs_close, - .llseek = no_llseek, .unlocked_ioctl = ib_uverbs_ioctl, .compat_ioctl = compat_ptr_ioctl, };
drivers/infiniband/hw/hfi1/fault.c +0 -1
@@ -203,7 +203,6 @@ static const struct file_operations __fault_opcodes_fops = { .open = fault_opcodes_open, .read = fault_opcodes_read, .write = fault_opcodes_write, - .llseek = no_llseek };void hfi1_fault_exit_debugfs (struct hfi1_ibdev *ibd)
drivers/infiniband/hw/mlx5/devx.c +0 -2
@@ -2631,7 +2631,6 @@ static const struct file_operations devx_async_cmd_event_fops = { .read = devx_async_cmd_event_read, .poll = devx_async_cmd_event_poll, .release = uverbs_uobject_fd_release, - .llseek = no_llseek, }; static ssize_t devx_async_event_read(struct file *filp, char __user *buf,
@@ -2746,7 +2745,6 @@ static const struct file_operations devx_async_event_fops = { .read = devx_async_event_read, .poll = devx_async_event_poll, .release = uverbs_uobject_fd_release, - .llseek = no_llseek, }; static void devx_async_cmd_event_destroy_uobj(struct ib_uobject *uobj,
drivers/input/evdev.c +0 -1
@@ -1301,7 +1301,6 @@ static const struct file_operations evdev_fops = { .compat_ioctl = evdev_ioctl_compat, #endif .fasync = evdev_fasync, - .llseek = no_llseek, };/*
drivers/input/joydev.c +0 -1
@@ -718,7 +718,6 @@ static const struct file_operations joydev_fops = { .compat_ioctl = joydev_compat_ioctl, #endif .fasync = joydev_fasync, - .llseek = no_llseek, };/*
drivers/input/keyboard/applespi.c +0 -1
@@ -1007,7 +1007,6 @@ static const struct file_operations applespi_tp_dim_fops = { .owner = THIS_MODULE, .open = applespi_tp_dim_open, .read = applespi_tp_dim_read, - .llseek = no_llseek, }; static void report_finger_data(struct input_dev *input, int slot,
drivers/input/misc/uinput.c +0 -1
@@ -1084,7 +1084,6 @@ static const struct file_operations uinput_fops = {#ifdef CONFIG_COMPAT .compat_ioctl = uinput_compat_ioctl,#endif - .llseek = no_llseek, };static struct miscdevice uinput_misc = {
drivers/input/serio/userio.c +0 -1
@@ -267,7 +267,6 @@ static const struct file_operations userio_fops = { .read = userio_char_read, .write = userio_char_write, .poll = userio_char_poll, - .llseek = no_llseek, };static struct miscdevice userio_misc = {
drivers/isdn/capi/capi.c +0 -1
@@ -1022,7 +1022,6 @@ static int capi_release(struct inode *inode, struct file *file)static const struct file_operations capi_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .read = capi_read, .write = capi_write, .poll = capi_poll,
drivers/isdn/mISDN/timerdev.c +0 -1
@@ -266,7 +266,6 @@ static const struct file_operations mISDN_fops = { .unlocked_ioctl = mISDN_ioctl, .open = mISDN_open, .release = mISDN_close, - .llseek = no_llseek, };static struct miscdevice mISDNtimer = {
drivers/leds/uleds.c +0 -1
@@ -200,7 +200,6 @@ static const struct file_operations uleds_fops = { .read = uleds_read, .write = uleds_write, .poll = uleds_poll, - .llseek = no_llseek, };static struct miscdevice uleds_misc = {
drivers/macintosh/adb.c +0 -1
@@ -840,7 +840,6 @@ static ssize_t adb_write(struct file *file, const char __user *buf,static const struct file_operations adb_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .read = adb_read, .write = adb_write, .open = adb_open,
drivers/macintosh/smu.c +0 -1
@@ -1314,7 +1314,6 @@ static int smu_release(struct inode *inode, struct file *file)static const struct file_operations smu_device_fops = { - .llseek = no_llseek, .read = smu_read, .write = smu_write, .poll = smu_fpoll,
drivers/media/cec/core/cec-api.c +0 -1
@@ -695,5 +695,4 @@ const struct file_operations cec_devnode_fops = { .compat_ioctl = cec_ioctl, .release = cec_release, .poll = cec_poll, - .llseek = no_llseek, };
drivers/media/mc/mc-devnode.c +0 -1
@@ -205,7 +205,6 @@ static const struct file_operations media_devnode_fops = {#endif /* CONFIG_COMPAT */ .release = media_release, .poll = media_poll, - .llseek = no_llseek, }; int __must_check media_devnode_register(struct media_device *mdev,
drivers/media/rc/lirc_dev.c +0 -1
@@ -700,7 +700,6 @@ static const struct file_operations lirc_fops = { .poll = lirc_poll, .open = lirc_open, .release = lirc_close, - .llseek = no_llseek, };static void lirc_release_device (struct device *ld)
drivers/media/usb/uvc/uvc_debugfs.c +0 -1
@@ -59,7 +59,6 @@ static int uvc_debugfs_stats_release(struct inode *inode, struct file *file)static const struct file_operations uvc_debugfs_stats_fops = { .owner =THIS_MODULE , .open = uvc_debugfs_stats_open, - .llseek = no_llseek, .read = uvc_debugfs_stats_read, .release = uvc_debugfs_stats_release, };
drivers/media/v4l2-core/v4l2-dev.c +0 -1
@@ -483,7 +483,6 @@ static const struct file_operations v4l2_fops = {#endif .release = v4l2_release, .poll = v4l2_poll, - .llseek = no_llseek, };/**
drivers/message/fusion/mptctl.c +0 -1
@@ -2694,7 +2694,6 @@ mptctl_hp_targetinfo(MPT_ADAPTER *ioc, unsigned long arg)static const struct file_operations mptctl_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .fasync = mptctl_fasync, .unlocked_ioctl = mptctl_ioctl, #ifdef CONFIG_COMPAT
drivers/misc/lis3lv02d/lis3lv02d.c +0 -1
@@ -669,7 +669,6 @@ static int lis3lv02d_misc_fasync(int fd, struct file *file, int on)static const struct file_operations lis3lv02d_misc_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .read = lis3lv02d_misc_read, .open = lis3lv02d_misc_open, .release = lis3lv02d_misc_release,
drivers/misc/mei/main.c +0 -1
@@ -1174,7 +1174,6 @@ static const struct file_operations mei_fops = { .poll = mei_poll, .fsync = mei_fsync, .fasync = mei_fasync, - .llseek = no_llseek };/**
drivers/misc/phantom.c +0 -1
@@ -276,7 +276,6 @@ 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)
drivers/mmc/core/block.c +0 -1
@@ -2629,7 +2629,6 @@ static const struct file_operations mmc_rpmb_fileops = { .release = mmc_rpmb_chrdev_release, .open = mmc_rpmb_chrdev_open, .owner = THIS_MODULE, - .llseek = no_llseek, .unlocked_ioctl = mmc_rpmb_ioctl, #ifdef CONFIG_COMPAT .compat_ioctl = mmc_rpmb_ioctl_compat,
drivers/mtd/ubi/cdev.c +0 -2
@@ -1094,7 +1094,6 @@ const struct file_operations ubi_vol_cdev_operations = {/* UBI character device operations */ const struct file_operations ubi_cdev_operations = { .owner =THIS_MODULE , - .llseek = no_llseek, .unlocked_ioctl = ubi_cdev_ioctl, .compat_ioctl = compat_ptr_ioctl, };
@@ -1104,5 +1103,4 @@ const struct file_operations ubi_ctrl_cdev_operations = { .owner = THIS_MODULE, .unlocked_ioctl = ctrl_cdev_ioctl, .compat_ioctl = compat_ptr_ioctl, - .llseek = no_llseek, };
drivers/mtd/ubi/debug.c +0 -1
@@ -382,7 +382,6 @@ static const struct file_operations dfs_fops = { .read = dfs_file_read, .write = dfs_file_write, .open = simple_open, - .llseek = no_llseek, .owner = THIS_MODULE, };
drivers/net/netdevsim/fib.c +0 -1
@@ -1400,7 +1400,6 @@ static ssize_t nsim_nexthop_bucket_activity_write(struct file *file,static const struct file_operations nsim_nexthop_bucket_activity_fops = { .open = simple_open, .write = nsim_nexthop_bucket_activity_write, - .llseek = no_llseek, .owner =THIS_MODULE , };
drivers/net/tap.c +0 -1
@@ -1139,7 +1139,6 @@ static const struct file_operations tap_fops = { .read_iter = tap_read_iter, .write_iter = tap_write_iter, .poll = tap_poll, - .llseek = no_llseek, .unlocked_ioctl = tap_ioctl, .compat_ioctl = compat_ptr_ioctl, };
drivers/net/tun.c +0 -1
@@ -3470,7 +3470,6 @@ static void tun_chr_show_fdinfo(struct seq_file *m, struct file *file)static const struct file_operations tun_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .read_iter = tun_chr_read_iter, .write_iter = tun_chr_write_iter, .poll = tun_chr_poll,
drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c +0 -1
@@ -1184,7 +1184,6 @@ static ssize_t bus_reset_write(struct file *file, const char __user *user_buf,static const struct file_operations bus_reset_fops = { .open = simple_open, - .llseek = no_llseek, .write = bus_reset_write, };
drivers/net/wireless/intel/iwlwifi/mvm/d3.c +0 -1
@@ -2789,7 +2789,6 @@ static int iwl_mvm_d3_test_release(struct inode *inode, struct file *file) }const struct file_operations iwl_dbgfs_d3_test_ops = { - .llseek = no_llseek, .open = iwl_mvm_d3_test_open, .read = iwl_mvm_d3_test_read, .release = iwl_mvm_d3_test_release,
drivers/pinctrl/pinmux.c +0 -1
@@ -769,7 +769,6 @@ static const struct file_operations pinmux_select_ops = { .owner = THIS_MODULE, .open = pinmux_select_open, .write = pinmux_select, - .llseek = no_llseek, .release = single_release, };
drivers/platform/chrome/cros_ec_debugfs.c +0 -1
@@ -294,7 +294,6 @@ static const struct file_operations cros_ec_console_log_fops = { .owner = THIS_MODULE, .open = cros_ec_console_log_open, .read = cros_ec_console_log_read, - .llseek = no_llseek, .poll = cros_ec_console_log_poll, .release = cros_ec_console_log_release, };
drivers/platform/chrome/wilco_ec/debugfs.c +0 -1
@@ -155,7 +155,6 @@ static const struct file_operations fops_raw = { .owner = THIS_MODULE, .read = raw_read, .write = raw_write, - .llseek = no_llseek, };#define CMD_KB_CHROME 0x88
drivers/platform/chrome/wilco_ec/event.c +0 -1
@@ -404,7 +404,6 @@ static const struct file_operations event_fops = { .poll = event_poll, .read = event_read, .release = event_release, - .llseek = no_llseek, .owner = THIS_MODULE, };
drivers/platform/chrome/wilco_ec/telemetry.c +0 -1
@@ -330,7 +330,6 @@ static const struct file_operations telem_fops = { .write = telem_write, .read = telem_read, .release = telem_release, - .llseek = no_llseek, .owner = THIS_MODULE, };
drivers/platform/surface/surface_aggregator_cdev.c +0 -1
@@ -670,7 +670,6 @@ static const struct file_operations ssam_controller_fops = { .fasync = ssam_cdev_fasync, .unlocked_ioctl = ssam_cdev_device_ioctl, .compat_ioctl = ssam_cdev_device_ioctl, - .llseek = no_llseek, };
drivers/platform/surface/surface_dtx.c +0 -1
@@ -555,7 +555,6 @@ static const struct file_operations surface_dtx_fops = { .fasync = surface_dtx_fasync, .unlocked_ioctl = surface_dtx_ioctl, .compat_ioctl = surface_dtx_ioctl, - .llseek = no_llseek, };
drivers/pps/pps.c +0 -1
@@ -319,7 +319,6 @@ static int pps_cdev_release(struct inode *inode, struct file *file)static const struct file_operations pps_cdev_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .poll = pps_cdev_poll, .fasync = pps_cdev_fasync, .compat_ioctl = pps_cdev_compat_ioctl,
drivers/rtc/dev.c +0 -1
@@ -523,7 +523,6 @@ static int rtc_dev_release(struct inode *inode, struct file *file)static const struct file_operations rtc_dev_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .read = rtc_dev_read, .poll = rtc_dev_poll, .unlocked_ioctl = rtc_dev_ioctl,
drivers/rtc/rtc-m41t80.c +0 -1
@@ -850,7 +850,6 @@ static const struct file_operations wdt_fops = { .write = wdt_write, .open = wdt_open, .release = wdt_release, - .llseek = no_llseek, };static struct miscdevice wdt_dev = {
drivers/s390/char/fs3270.c +0 -1
@@ -522,7 +522,6 @@ static const struct file_operations fs3270_fops = { .compat_ioctl = fs3270_ioctl, /* ioctl */ .open = fs3270_open, /* open */ .release = fs3270_close, /* release */ - .llseek = no_llseek, };static void fs3270_create_cb (int minor)
drivers/s390/char/sclp_ctl.c +0 -1
@@ -115,7 +115,6 @@ static const struct file_operations sclp_ctl_fops = { .open = nonseekable_open, .unlocked_ioctl = sclp_ctl_ioctl, .compat_ioctl = sclp_ctl_ioctl, - .llseek = no_llseek, };/*
drivers/s390/char/tape_char.c +0 -1
@@ -52,7 +52,6 @@ static const struct file_operations tape_fops =#endif .open = tapechar_open, .release = tapechar_release, - .llseek = no_llseek, };static int tapechar_major =TAPECHAR_MAJOR ;
drivers/s390/char/uvdevice.c +0 -1
@@ -228,7 +228,6 @@ static long uvio_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)static const struct file_operations uvio_dev_fops = { .owner =THIS_MODULE , .unlocked_ioctl = uvio_ioctl, - .llseek = no_llseek, };static struct miscdevice uvio_dev_miscdev = {
drivers/s390/char/vmcp.c +0 -1
@@ -242,7 +242,6 @@ 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 = {
drivers/s390/char/vmlogrdr.c +0 -1
@@ -96,7 +96,6 @@ static const struct file_operations vmlogrdr_fops = { .open = vmlogrdr_open, .release = vmlogrdr_release, .read = vmlogrdr_read, - .llseek = no_llseek, };
drivers/s390/char/zcore.c +0 -2
@@ -161,7 +161,6 @@ static const struct file_operations zcore_reipl_fops = { .write = zcore_reipl_write, .open = zcore_reipl_open, .release = zcore_reipl_release, - .llseek = no_llseek, }; static ssize_t zcore_hsa_read(struct file *filp, char __user *buf,
@@ -196,7 +195,6 @@ static const struct file_operations zcore_hsa_fops = { .write = zcore_hsa_write, .read = zcore_hsa_read, .open = nonseekable_open, - .llseek = no_llseek, };static int __init check_sdias (void )
drivers/s390/cio/chsc_sch.c +0 -1
@@ -923,7 +923,6 @@ static const struct file_operations chsc_fops = { .release = chsc_release, .unlocked_ioctl = chsc_ioctl, .compat_ioctl = chsc_ioctl, - .llseek = no_llseek, };static struct miscdevice chsc_misc_device = {
drivers/s390/cio/css.c +0 -1
@@ -1334,7 +1334,6 @@ static ssize_t cio_settle_write(struct file *file, const char __user *buf,static const struct proc_ops cio_settle_proc_ops = { .proc_open = nonseekable_open, .proc_write = cio_settle_write, - .proc_lseek = no_llseek, };static int __init cio_settle_init (void )
drivers/s390/crypto/pkey_api.c +0 -1
@@ -2065,7 +2065,6 @@ static const struct attribute_group *pkey_attr_groups[] = {static const struct file_operations pkey_fops = { .owner =THIS_MODULE , .open = nonseekable_open, - .llseek = no_llseek, .unlocked_ioctl = pkey_unlocked_ioctl, };
drivers/s390/crypto/zcrypt_api.c +0 -1
@@ -2007,7 +2007,6 @@ static const struct file_operations zcrypt_fops = {#endif .open = zcrypt_open, .release = zcrypt_release, - .llseek = no_llseek, };/*
drivers/sbus/char/openprom.c +0 -1
@@ -687,7 +687,6 @@ static int openprom_release(struct inode * inode, struct file * file)static const struct file_operations openprom_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .unlocked_ioctl = openprom_ioctl, .compat_ioctl = openprom_compat_ioctl, .open = openprom_open,
drivers/sbus/char/uctrl.c +0 -1
@@ -221,7 +221,6 @@ static irqreturn_t uctrl_interrupt(int irq, void *dev_id)static const struct file_operations uctrl_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .unlocked_ioctl = uctrl_ioctl, .open = uctrl_open, };
drivers/scsi/sg.c +0 -1
@@ -1424,7 +1424,6 @@ 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;
drivers/spi/spidev.c +0 -1
@@ -670,7 +670,6 @@ static const struct file_operations spidev_fops = { .compat_ioctl = spidev_compat_ioctl, .open = spidev_open, .release = spidev_release, - .llseek = no_llseek, };/*-------------------------------------------------------------------------*/
drivers/staging/pi433/pi433_if.c +0 -1
@@ -1097,7 +1097,6 @@ static const struct file_operations pi433_fops = { .compat_ioctl = compat_ptr_ioctl, .open = pi433_open, .release = pi433_release, - .llseek = no_llseek, };static int pi433_debugfs_regs_show (struct seq_file *m,void *p)
drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.c +0 -1
@@ -346,7 +346,6 @@ static const struct file_operations acpi_thermal_rel_fops = { .open = acpi_thermal_rel_open, .release = acpi_thermal_rel_release, .unlocked_ioctl = acpi_thermal_rel_ioctl, - .llseek = no_llseek, };static struct miscdevice acpi_thermal_rel_misc_device = {
drivers/tty/tty_io.c +0 -3
@@ -469,7 +469,6 @@ static void tty_show_fdinfo(struct seq_file *m, struct file *file) }static const struct file_operations tty_fops = { - .llseek = no_llseek, .read_iter = tty_read, .write_iter = tty_write, .splice_read = generic_file_splice_read,
@@ -484,7 +483,6 @@ static const struct file_operations tty_fops = { };static const struct file_operations console_fops = { - .llseek = no_llseek, .read_iter = tty_read, .write_iter = redirected_tty_write, .splice_read = generic_file_splice_read,
@@ -498,7 +496,6 @@ static const struct file_operations console_fops = { };static const struct file_operations hung_up_tty_fops = { - .llseek = no_llseek, .read_iter = hung_up_tty_read, .write_iter = hung_up_tty_write, .poll = hung_up_tty_poll,
drivers/usb/gadget/function/f_fs.c +0 -2
@@ -693,7 +693,6 @@ static __poll_t ffs_ep0_poll(struct file *file, poll_table *wait) }static const struct file_operations ffs_ep0_operations = { - .llseek = no_llseek, .open = ffs_ep0_open, .write = ffs_ep0_write,
@@ -1368,7 +1367,6 @@ static long ffs_epfile_ioctl(struct file *file, unsigned code, }static const struct file_operations ffs_epfile_operations = { - .llseek = no_llseek, .open = ffs_epfile_open, .write_iter = ffs_epfile_write_iter,
drivers/usb/gadget/legacy/inode.c +0 -2
@@ -697,7 +697,6 @@ static const struct file_operations ep_io_operations = { .open = ep_open, .release = ep_release, - .llseek = no_llseek, .unlocked_ioctl = ep_ioctl, .read_iter = ep_read_iter, .write_iter = ep_write_iter,
@@ -1922,7 +1921,6 @@ gadget_dev_open (struct inode *inode, struct file *fd) }static const struct file_operations ep0_operations = { - .llseek = no_llseek, .open = gadget_dev_open, .read = ep0_read,
drivers/usb/gadget/legacy/raw_gadget.c +0 -1
@@ -1311,7 +1311,6 @@ static const struct file_operations raw_fops = { .unlocked_ioctl = raw_ioctl, .compat_ioctl = raw_ioctl, .release = raw_release, - .llseek = no_llseek, };static struct miscdevice raw_misc_device = {
drivers/usb/gadget/udc/atmel_usba_udc.c +0 -1
@@ -188,7 +188,6 @@ static int regs_dbg_release(struct inode *inode, struct file *file)static const struct file_operations queue_dbg_fops = { .owner =THIS_MODULE , .open = queue_dbg_open, - .llseek = no_llseek, .read = queue_dbg_read, .release = queue_dbg_release, };
drivers/usb/misc/ftdi-elan.c +0 -1
@@ -1132,7 +1132,6 @@ static ssize_t ftdi_elan_write(struct file *file,static const struct file_operations ftdi_elan_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .read = ftdi_elan_read, .write = ftdi_elan_write, .open = ftdi_elan_open,
drivers/usb/misc/ldusb.c +0 -1
@@ -627,7 +627,6 @@ static const struct file_operations ld_usb_fops = { .open = ld_usb_open, .release = ld_usb_release, .poll = ld_usb_poll, - .llseek = no_llseek, };/*
drivers/usb/mon/mon_bin.c +0 -1
@@ -1277,7 +1277,6 @@ static int mon_bin_mmap(struct file *filp, struct vm_area_struct *vma)static const struct file_operations mon_fops_binary = { .owner =THIS_MODULE , .open = mon_bin_open, - .llseek = no_llseek, .read = mon_bin_read,/* .write = mon_text_write, */ .poll = mon_bin_poll,
drivers/usb/mon/mon_stat.c +0 -1
@@ -62,7 +62,6 @@ static int mon_stat_release(struct inode *inode, struct file *file)const struct file_operations mon_fops_stat = { .owner =THIS_MODULE , .open = mon_stat_open, - .llseek = no_llseek, .read = mon_stat_read,/* .write = mon_stat_write, */ /* .poll = mon_stat_poll, */
drivers/usb/mon/mon_text.c +0 -2
@@ -685,7 +685,6 @@ static int mon_text_release(struct inode *inode, struct file *file)static const struct file_operations mon_fops_text_t = { .owner =THIS_MODULE , .open = mon_text_open, - .llseek = no_llseek, .read = mon_text_read_t, .release = mon_text_release, };
@@ -693,7 +692,6 @@ static const struct file_operations mon_fops_text_t = {static const struct file_operations mon_fops_text_u = { .owner =THIS_MODULE , .open = mon_text_open, - .llseek = no_llseek, .read = mon_text_read_u, .release = mon_text_release, };
drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c +0 -2
@@ -739,7 +739,6 @@ static const struct file_operations hisi_acc_vf_resume_fops = { .owner = THIS_MODULE, .write = hisi_acc_vf_resume_write, .release = hisi_acc_vf_release_file, - .llseek = no_llseek, }; static struct hisi_acc_vf_migration_file *
@@ -806,7 +805,6 @@ static const struct file_operations hisi_acc_vf_save_fops = { .owner = THIS_MODULE, .read = hisi_acc_vf_save_read, .release = hisi_acc_vf_release_file, - .llseek = no_llseek, }; static struct hisi_acc_vf_migration_file *
drivers/vfio/pci/mlx5/main.c +0 -2
@@ -220,7 +220,6 @@ static const struct file_operations mlx5vf_save_fops = { .read = mlx5vf_save_read, .poll = mlx5vf_save_poll, .release = mlx5vf_release_file, - .llseek = no_llseek, }; static struct mlx5_vf_migration_file *
@@ -338,7 +337,6 @@ static const struct file_operations mlx5vf_resume_fops = { .owner = THIS_MODULE, .write = mlx5vf_resume_write, .release = mlx5vf_release_file, - .llseek = no_llseek, }; static struct mlx5_vf_migration_file *
drivers/watchdog/acquirewdt.c +0 -1
@@ -218,7 +218,6 @@ static int acq_close(struct inode *inode, struct file *file)static const struct file_operations acq_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = acq_write, .unlocked_ioctl = acq_ioctl, .compat_ioctl = compat_ptr_ioctl,
drivers/watchdog/advantechwdt.c +0 -1
@@ -217,7 +217,6 @@ static int advwdt_close(struct inode *inode, struct file *file)static const struct file_operations advwdt_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = advwdt_write, .unlocked_ioctl = advwdt_ioctl, .compat_ioctl = compat_ptr_ioctl,
drivers/watchdog/alim1535_wdt.c +0 -1
@@ -359,7 +359,6 @@ static int __init ali_find_watchdog(void)static const struct file_operations ali_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = ali_write, .unlocked_ioctl = ali_ioctl, .compat_ioctl = compat_ptr_ioctl,
drivers/watchdog/alim7101_wdt.c +0 -1
@@ -289,7 +289,6 @@ static long fop_ioctl(struct file *file, unsigned int cmd, unsigned long arg)static const struct file_operations wdt_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = fop_write, .open = fop_open, .release = fop_close,
drivers/watchdog/ar7_wdt.c +0 -1
@@ -250,7 +250,6 @@ static const struct file_operations ar7_wdt_fops = { .compat_ioctl = compat_ptr_ioctl, .open = ar7_wdt_open, .release = ar7_wdt_release, - .llseek = no_llseek, };static struct miscdevice ar7_wdt_miscdev = {
drivers/watchdog/at91rm9200_wdt.c +0 -1
@@ -211,7 +211,6 @@ static ssize_t at91_wdt_write(struct file *file, const char *data,static const struct file_operations at91wdt_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .unlocked_ioctl = at91_wdt_ioctl, .compat_ioctl = compat_ptr_ioctl, .open = at91_wdt_open,
drivers/watchdog/ath79_wdt.c +0 -1
@@ -231,7 +231,6 @@ static long ath79_wdt_ioctl(struct file *file, unsigned int cmd,static const struct file_operations ath79_wdt_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = ath79_wdt_write, .unlocked_ioctl = ath79_wdt_ioctl, .compat_ioctl = compat_ptr_ioctl,
drivers/watchdog/cpu5wdt.c +0 -1
@@ -185,7 +185,6 @@ static ssize_t cpu5wdt_write(struct file *file, const char __user *buf,static const struct file_operations cpu5wdt_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .unlocked_ioctl = cpu5wdt_ioctl, .compat_ioctl = compat_ptr_ioctl, .open = cpu5wdt_open,
drivers/watchdog/cpwd.c +0 -1
@@ -507,7 +507,6 @@ static const struct file_operations cpwd_fops = { .write = cpwd_write, .read = cpwd_read, .release = cpwd_release, - .llseek = no_llseek, };static int cpwd_probe (struct platform_device *op)
drivers/watchdog/eurotechwdt.c +0 -1
@@ -368,7 +368,6 @@ static int eurwdt_notify_sys(struct notifier_block *this, unsigned long code,static const struct file_operations eurwdt_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = eurwdt_write, .unlocked_ioctl = eurwdt_ioctl, .compat_ioctl = compat_ptr_ioctl,
drivers/watchdog/gef_wdt.c +0 -1
@@ -245,7 +245,6 @@ static int gef_wdt_release(struct inode *inode, struct file *file)static const struct file_operations gef_wdt_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = gef_wdt_write, .unlocked_ioctl = gef_wdt_ioctl, .compat_ioctl = compat_ptr_ioctl,
drivers/watchdog/geodewdt.c +0 -1
@@ -196,7 +196,6 @@ static long geodewdt_ioctl(struct file *file, unsigned int cmd,static const struct file_operations geodewdt_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = geodewdt_write, .unlocked_ioctl = geodewdt_ioctl, .compat_ioctl = compat_ptr_ioctl,
drivers/watchdog/ib700wdt.c +0 -1
@@ -256,7 +256,6 @@ static int ibwdt_close(struct inode *inode, struct file *file)static const struct file_operations ibwdt_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = ibwdt_write, .unlocked_ioctl = ibwdt_ioctl, .compat_ioctl = compat_ptr_ioctl,
drivers/watchdog/ibmasr.c +0 -1
@@ -341,7 +341,6 @@ static int asr_release(struct inode *inode, struct file *file)static const struct file_operations asr_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = asr_write, .unlocked_ioctl = asr_ioctl, .compat_ioctl = compat_ptr_ioctl,
drivers/watchdog/indydog.c +0 -1
@@ -149,7 +149,6 @@ static int indydog_notify_sys(struct notifier_block *this,static const struct file_operations indydog_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = indydog_write, .unlocked_ioctl = indydog_ioctl, .compat_ioctl = compat_ptr_ioctl,
drivers/watchdog/it8712f_wdt.c +0 -1
@@ -341,7 +341,6 @@ static int it8712f_wdt_release(struct inode *inode, struct file *file)static const struct file_operations it8712f_wdt_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = it8712f_wdt_write, .unlocked_ioctl = it8712f_wdt_ioctl, .compat_ioctl = compat_ptr_ioctl,
drivers/watchdog/m54xx_wdt.c +0 -1
@@ -181,7 +181,6 @@ static int m54xx_wdt_release(struct inode *inode, struct file *file)static const struct file_operations m54xx_wdt_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = m54xx_wdt_write, .unlocked_ioctl = m54xx_wdt_ioctl, .compat_ioctl = compat_ptr_ioctl,
drivers/watchdog/machzwd.c +0 -1
@@ -359,7 +359,6 @@ static int zf_notify_sys(struct notifier_block *this, unsigned long code,static const struct file_operations zf_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = zf_write, .unlocked_ioctl = zf_ioctl, .compat_ioctl = compat_ptr_ioctl,
drivers/watchdog/mixcomwd.c +0 -1
@@ -224,7 +224,6 @@ static long mixcomwd_ioctl(struct file *file,static const struct file_operations mixcomwd_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = mixcomwd_write, .unlocked_ioctl = mixcomwd_ioctl, .compat_ioctl = compat_ptr_ioctl,
drivers/watchdog/mtx-1_wdt.c +0 -1
@@ -177,7 +177,6 @@ static ssize_t mtx1_wdt_write(struct file *file, const char *buf,static const struct file_operations mtx1_wdt_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .unlocked_ioctl = mtx1_wdt_ioctl, .compat_ioctl = compat_ptr_ioctl, .open = mtx1_wdt_open,
drivers/watchdog/nv_tco.c +0 -1
@@ -264,7 +264,6 @@ static long nv_tco_ioctl(struct file *file, unsigned int cmd,static const struct file_operations nv_tco_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = nv_tco_write, .unlocked_ioctl = nv_tco_ioctl, .compat_ioctl = compat_ptr_ioctl,
drivers/watchdog/pc87413_wdt.c +0 -1
@@ -470,7 +470,6 @@ static int pc87413_notify_sys(struct notifier_block *this,static const struct file_operations pc87413_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = pc87413_write, .unlocked_ioctl = pc87413_ioctl, .compat_ioctl = compat_ptr_ioctl,
drivers/watchdog/pcwd.c +0 -2
@@ -749,7 +749,6 @@ static int pcwd_temp_close(struct inode *inode, struct file *file)static const struct file_operations pcwd_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = pcwd_write, .unlocked_ioctl = pcwd_ioctl, .compat_ioctl = compat_ptr_ioctl,
@@ -765,7 +764,6 @@ static struct miscdevice pcwd_miscdev = {static const struct file_operations pcwd_temp_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .read = pcwd_temp_read, .open = pcwd_temp_open, .release = pcwd_temp_close,
drivers/watchdog/pcwd_pci.c +0 -2
@@ -643,7 +643,6 @@ static int pcipcwd_notify_sys(struct notifier_block *this, unsigned long code,static const struct file_operations pcipcwd_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = pcipcwd_write, .unlocked_ioctl = pcipcwd_ioctl, .compat_ioctl = compat_ptr_ioctl,
@@ -659,7 +658,6 @@ static struct miscdevice pcipcwd_miscdev = {static const struct file_operations pcipcwd_temp_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .read = pcipcwd_temp_read, .open = pcipcwd_temp_open, .release = pcipcwd_temp_release,
drivers/watchdog/pcwd_usb.c +0 -2
@@ -547,7 +547,6 @@ static int usb_pcwd_notify_sys(struct notifier_block *this, unsigned long code,static const struct file_operations usb_pcwd_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = usb_pcwd_write, .unlocked_ioctl = usb_pcwd_ioctl, .compat_ioctl = compat_ptr_ioctl,
@@ -563,7 +562,6 @@ static struct miscdevice usb_pcwd_miscdev = {static const struct file_operations usb_pcwd_temperature_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .read = usb_pcwd_temperature_read, .open = usb_pcwd_temperature_open, .release = usb_pcwd_temperature_release,
drivers/watchdog/pika_wdt.c +0 -1
@@ -209,7 +209,6 @@ static long pikawdt_ioctl(struct file *file,static const struct file_operations pikawdt_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .open = pikawdt_open, .release = pikawdt_release, .write = pikawdt_write,
drivers/watchdog/rc32434_wdt.c +0 -1
@@ -242,7 +242,6 @@ static long rc32434_wdt_ioctl(struct file *file, unsigned int cmd,static const struct file_operations rc32434_wdt_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = rc32434_wdt_write, .unlocked_ioctl = rc32434_wdt_ioctl, .compat_ioctl = compat_ptr_ioctl,
drivers/watchdog/rdc321x_wdt.c +0 -1
@@ -197,7 +197,6 @@ static ssize_t rdc321x_wdt_write(struct file *file, const char __user *buf,static const struct file_operations rdc321x_wdt_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .unlocked_ioctl = rdc321x_wdt_ioctl, .compat_ioctl = compat_ptr_ioctl, .open = rdc321x_wdt_open,
drivers/watchdog/riowd.c +0 -1
@@ -160,7 +160,6 @@ static ssize_t riowd_write(struct file *file, const char __user *buf,static const struct file_operations riowd_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .unlocked_ioctl = riowd_ioctl, .compat_ioctl = compat_ptr_ioctl, .open = riowd_open,
drivers/watchdog/sa1100_wdt.c +0 -1
@@ -164,7 +164,6 @@ static long sa1100dog_ioctl(struct file *file, unsigned int cmd,static const struct file_operations sa1100dog_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = sa1100dog_write, .unlocked_ioctl = sa1100dog_ioctl, .compat_ioctl = compat_ptr_ioctl,
drivers/watchdog/sb_wdog.c +0 -1
@@ -234,7 +234,6 @@ static int sbwdog_notify_sys(struct notifier_block *this, unsigned long code,static const struct file_operations sbwdog_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = sbwdog_write, .unlocked_ioctl = sbwdog_ioctl, .compat_ioctl = compat_ptr_ioctl,
drivers/watchdog/sbc60xxwdt.c +0 -1
@@ -275,7 +275,6 @@ static long fop_ioctl(struct file *file, unsigned int cmd, unsigned long arg)static const struct file_operations wdt_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = fop_write, .open = fop_open, .release = fop_close,
drivers/watchdog/sbc7240_wdt.c +0 -1
@@ -205,7 +205,6 @@ static long fop_ioctl(struct file *file, unsigned int cmd, unsigned long arg)static const struct file_operations wdt_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = fop_write, .open = fop_open, .release = fop_close,
drivers/watchdog/sbc8360.c +0 -1
@@ -301,7 +301,6 @@ static int sbc8360_notify_sys(struct notifier_block *this, unsigned long code,static const struct file_operations sbc8360_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = sbc8360_write, .open = sbc8360_open, .release = sbc8360_close,
drivers/watchdog/sbc_epx_c3.c +0 -1
@@ -153,7 +153,6 @@ static int epx_c3_notify_sys(struct notifier_block *this, unsigned long code,static const struct file_operations epx_c3_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = epx_c3_write, .unlocked_ioctl = epx_c3_ioctl, .compat_ioctl = compat_ptr_ioctl,
drivers/watchdog/sbc_fitpc2_wdt.c +0 -1
@@ -183,7 +183,6 @@ static int fitpc2_wdt_release(struct inode *inode, struct file *file)static const struct file_operations fitpc2_wdt_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = fitpc2_wdt_write, .unlocked_ioctl = fitpc2_wdt_ioctl, .compat_ioctl = compat_ptr_ioctl,
drivers/watchdog/sc1200wdt.c +0 -1
@@ -304,7 +304,6 @@ static struct notifier_block sc1200wdt_notifier = {static const struct file_operations sc1200wdt_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = sc1200wdt_write, .unlocked_ioctl = sc1200wdt_ioctl, .compat_ioctl = compat_ptr_ioctl,
drivers/watchdog/sc520_wdt.c +0 -1
@@ -331,7 +331,6 @@ static long fop_ioctl(struct file *file, unsigned int cmd, unsigned long arg)static const struct file_operations wdt_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = fop_write, .open = fop_open, .release = fop_close,
drivers/watchdog/sch311x_wdt.c +0 -1
@@ -334,7 +334,6 @@ static int sch311x_wdt_close(struct inode *inode, struct file *file)static const struct file_operations sch311x_wdt_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = sch311x_wdt_write, .unlocked_ioctl = sch311x_wdt_ioctl, .compat_ioctl = compat_ptr_ioctl,
drivers/watchdog/scx200_wdt.c +0 -1
@@ -198,7 +198,6 @@ static long scx200_wdt_ioctl(struct file *file, unsigned int cmd,static const struct file_operations scx200_wdt_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = scx200_wdt_write, .unlocked_ioctl = scx200_wdt_ioctl, .compat_ioctl = compat_ptr_ioctl,
drivers/watchdog/smsc37b787_wdt.c +0 -1
@@ -502,7 +502,6 @@ static int wb_smsc_wdt_notify_sys(struct notifier_block *this,static const struct file_operations wb_smsc_wdt_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = wb_smsc_wdt_write, .unlocked_ioctl = wb_smsc_wdt_ioctl, .compat_ioctl = compat_ptr_ioctl,
drivers/watchdog/w83877f_wdt.c +0 -1
@@ -299,7 +299,6 @@ static long fop_ioctl(struct file *file, unsigned int cmd, unsigned long arg)static const struct file_operations wdt_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = fop_write, .open = fop_open, .release = fop_close,
drivers/watchdog/w83977f_wdt.c +0 -1
@@ -443,7 +443,6 @@ static int wdt_notify_sys(struct notifier_block *this, unsigned long code,static const struct file_operations wdt_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = wdt_write, .unlocked_ioctl = wdt_ioctl, .compat_ioctl = compat_ptr_ioctl,
drivers/watchdog/wafer5823wdt.c +0 -1
@@ -227,7 +227,6 @@ static int wafwdt_notify_sys(struct notifier_block *this, unsigned long code,static const struct file_operations wafwdt_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = wafwdt_write, .unlocked_ioctl = wafwdt_ioctl, .compat_ioctl = compat_ptr_ioctl,
drivers/watchdog/wdrtas.c +0 -2
@@ -469,7 +469,6 @@ static int wdrtas_reboot(struct notifier_block *this,static const struct file_operations wdrtas_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = wdrtas_write, .unlocked_ioctl = wdrtas_ioctl, .compat_ioctl = compat_ptr_ioctl,
@@ -485,7 +484,6 @@ static struct miscdevice wdrtas_miscdev = {static const struct file_operations wdrtas_temp_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .read = wdrtas_temp_read, .open = wdrtas_temp_open, .release = wdrtas_temp_close,
drivers/watchdog/wdt.c +0 -2
@@ -520,7 +520,6 @@ static int wdt_notify_sys(struct notifier_block *this, unsigned long code,static const struct file_operations wdt_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = wdt_write, .unlocked_ioctl = wdt_ioctl, .compat_ioctl = compat_ptr_ioctl,
@@ -536,7 +535,6 @@ static struct miscdevice wdt_miscdev = {static const struct file_operations wdt_temp_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .read = wdt_temp_read, .open = wdt_temp_open, .release = wdt_temp_release,
drivers/watchdog/wdt285.c +0 -1
@@ -178,7 +178,6 @@ static long watchdog_ioctl(struct file *file, unsigned int cmd,static const struct file_operations watchdog_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = watchdog_write, .unlocked_ioctl = watchdog_ioctl, .compat_ioctl = compat_ptr_ioctl,
drivers/watchdog/wdt977.c +0 -1
@@ -419,7 +419,6 @@ static int wdt977_notify_sys(struct notifier_block *this, unsigned long code,static const struct file_operations wdt977_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = wdt977_write, .unlocked_ioctl = wdt977_ioctl, .compat_ioctl = compat_ptr_ioctl,
drivers/watchdog/wdt_pci.c +0 -2
@@ -563,7 +563,6 @@ static int wdtpci_notify_sys(struct notifier_block *this, unsigned long code,static const struct file_operations wdtpci_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = wdtpci_write, .unlocked_ioctl = wdtpci_ioctl, .compat_ioctl = compat_ptr_ioctl,
@@ -579,7 +578,6 @@ static struct miscdevice wdtpci_miscdev = {static const struct file_operations wdtpci_temp_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .read = wdtpci_temp_read, .open = wdtpci_temp_open, .release = wdtpci_temp_release,
drivers/xen/evtchn.c +0 -1
@@ -671,7 +671,6 @@ static const struct file_operations evtchn_fops = { .fasync = evtchn_fasync, .open = evtchn_open, .release = evtchn_release, - .llseek = no_llseek, };static struct miscdevice evtchn_miscdev = {
drivers/xen/mcelog.c +0 -1
@@ -182,7 +182,6 @@ static const struct file_operations xen_mce_chrdev_ops = { .read = xen_mce_chrdev_read, .poll = xen_mce_chrdev_poll, .unlocked_ioctl = xen_mce_chrdev_ioctl, - .llseek = no_llseek, };static struct miscdevice xen_mce_chrdev_device = {
drivers/xen/xenbus/xenbus_dev_frontend.c +0 -1
@@ -700,7 +700,6 @@ const struct file_operations xen_xenbus_fops = { .open = xenbus_file_open, .release = xenbus_file_release, .poll = xenbus_file_poll, - .llseek = no_llseek, };EXPORT_SYMBOL_GPL (xen_xenbus_fops);
fs/debugfs/file.c +0 -1
@@ -1056,7 +1056,6 @@ static const struct file_operations u32_array_fops = { .open = u32_array_open, .release = u32_array_release, .read = u32_array_read, - .llseek = no_llseek, };/**
fs/dlm/debug_fs.c +0 -1
@@ -856,7 +856,6 @@ static ssize_t dlm_rawmsg_write(struct file *fp, const char __user *user_buf,static const struct file_operations dlm_rawmsg_fops = { .open = simple_open, .write = dlm_rawmsg_write, - .llseek = no_llseek, };void *dlm_create_debug_comms_file (int nodeid,void *data)
fs/efivarfs/file.c +0 -1
@@ -110,5 +110,4 @@ const struct file_operations efivarfs_file_operations = { .open = simple_open, .read = efivarfs_file_read, .write = efivarfs_file_write, - .llseek = no_llseek, };
fs/fsopen.c +0 -1
@@ -78,7 +78,6 @@ static int fscontext_release(struct inode *inode, struct file *file)const struct file_operations fscontext_fops = { .read = fscontext_read, .release = fscontext_release, - .llseek = no_llseek, };/*
fs/fuse/control.c +0 -4
@@ -187,27 +187,23 @@ 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,
fs/fuse/dev.c +0 -1
@@ -2290,7 +2290,6 @@ static long fuse_dev_ioctl(struct file *file, unsigned int cmd,const struct file_operations fuse_dev_operations = { .owner =THIS_MODULE , .open = fuse_dev_open, - .llseek = no_llseek, .read_iter = fuse_dev_read, .splice_read = fuse_dev_splice_read, .write_iter = fuse_dev_write,
fs/nsfs.c +0 -1
@@ -19,7 +19,6 @@ static struct vfsmount *nsfs_mnt;static long ns_ioctl (struct file *filp,unsigned int ioctl,unsigned long arg);static const struct file_operations ns_file_operations = { - .llseek = no_llseek, .unlocked_ioctl = ns_ioctl, };
fs/pipe.c +0 -1
@@ -1217,7 +1217,6 @@ static int fifo_open(struct inode *inode, struct file *filp)const struct file_operations pipefifo_fops = { .open = fifo_open, - .llseek = no_llseek, .read_iter = pipe_read, .write_iter = pipe_write, .poll = pipe_poll,
fs/ubifs/debug.c +0 -2
@@ -2802,7 +2802,6 @@ static const struct file_operations dfs_fops = { .read = dfs_file_read, .write = dfs_file_write, .owner = THIS_MODULE, - .llseek = no_llseek, };/**
@@ -2947,7 +2946,6 @@ static const struct file_operations dfs_global_fops = { .read = dfs_global_file_read, .write = dfs_global_file_write, .owner = THIS_MODULE, - .llseek = no_llseek, };/**
include/linux/debugfs.h +0 -1
@@ -57,7 +57,6 @@ static const struct file_operations __fops = { \ .release = simple_attr_release, \ .read = debugfs_attr_read, \ .write = debugfs_attr_write, \ - .llseek = no_llseek, \ }typedef struct vfsmount *(*debugfs_automount_t )(struct dentry *,void *);
kernel/bpf/bpf_iter.c +0 -1
@@ -274,7 +274,6 @@ static int iter_release(struct inode *inode, struct file *file)const struct file_operations bpf_iter_fops = { .open = iter_open, - .llseek = no_llseek, .read = bpf_seq_read, .release = iter_release, };
kernel/events/core.c +0 -1
@@ -6376,7 +6376,6 @@ static int perf_fasync(int fd, struct file *filp, int on) }static const struct file_operations perf_fops = { - .llseek = no_llseek, .release = perf_release, .read = perf_read, .poll = perf_poll,
kernel/power/user.c +0 -1
@@ -430,7 +430,6 @@ static const struct file_operations snapshot_fops = { .release = snapshot_release, .read = snapshot_read, .write = snapshot_write, - .llseek = no_llseek, .unlocked_ioctl = snapshot_ioctl, #ifdef CONFIG_COMPAT .compat_ioctl = snapshot_compat_ioctl,
kernel/relay.c +0 -1
@@ -1242,7 +1242,6 @@ const struct file_operations relay_file_operations = { .poll = relay_file_poll, .mmap = relay_file_mmap, .read = relay_file_read, - .llseek = no_llseek, .release = relay_file_release, .splice_read = relay_file_splice_read, };
kernel/time/posix-clock.c +0 -1
@@ -148,7 +148,6 @@ static int posix_clock_release(struct inode *inode, struct file *fp)static const struct file_operations posix_clock_file_operations = { .owner =THIS_MODULE , - .llseek = no_llseek, .read = posix_clock_read, .poll = posix_clock_poll, .unlocked_ioctl = posix_clock_ioctl,
kernel/trace/trace.c +0 -3
@@ -7574,7 +7574,6 @@ static const struct file_operations tracing_pipe_fops = { .read = tracing_read_pipe, .splice_read = tracing_splice_read_pipe, .release = tracing_release_pipe, - .llseek = no_llseek, };static const struct file_operations tracing_entries_fops = {
@@ -7639,7 +7638,6 @@ static const struct file_operations snapshot_raw_fops = { .read = tracing_buffers_read, .release = tracing_buffers_release, .splice_read = tracing_buffers_splice_read, - .llseek = no_llseek, };#endif /* CONFIG_TRACER_SNAPSHOT */
@@ -8317,7 +8315,6 @@ static const struct file_operations tracing_buffers_fops = { .poll = tracing_buffers_poll, .release = tracing_buffers_release, .splice_read = tracing_buffers_splice_read, - .llseek = no_llseek, }; static ssize_t
mm/huge_memory.c +0 -1
@@ -3072,7 +3072,6 @@ static ssize_t split_huge_pages_write(struct file *file, const char __user *buf,static const struct file_operations split_huge_pages_fops = { .owner =THIS_MODULE , .write = split_huge_pages_write, - .llseek = no_llseek, };static int __init split_huge_pages_debugfs (void )
net/mac80211/rc80211_minstrel_ht_debugfs.c +0 -2
@@ -187,7 +187,6 @@ static const struct file_operations minstrel_ht_stat_fops = { .open = minstrel_ht_stats_open, .read = minstrel_stats_read, .release = minstrel_stats_release, - .llseek = no_llseek, }; static char *
@@ -323,7 +322,6 @@ static const struct file_operations minstrel_ht_stat_csv_fops = { .open = minstrel_ht_stats_csv_open, .read = minstrel_stats_read, .release = minstrel_stats_release, - .llseek = no_llseek, };void
net/rfkill/core.c +0 -1
@@ -1379,7 +1379,6 @@ static const struct file_operations rfkill_fops = { .release = rfkill_fop_release, .unlocked_ioctl = rfkill_fop_ioctl, .compat_ioctl = compat_ptr_ioctl, - .llseek = no_llseek, };#define RFKILL_NAME "rfkill"
net/socket.c +0 -1
@@ -150,7 +150,6 @@ static void sock_show_fdinfo(struct seq_file *m, struct file *f)static const struct file_operations socket_file_ops = { .owner =THIS_MODULE , - .llseek = no_llseek, .read_iter = sock_read_iter, .write_iter = sock_write_iter, .poll = sock_poll,
net/sunrpc/cache.c +0 -4
@@ -1596,7 +1596,6 @@ static int cache_release_procfs(struct inode *inode, struct file *filp) }static const struct proc_ops cache_channel_proc_ops = { - .proc_lseek = no_llseek, .proc_read = cache_read_procfs, .proc_write = cache_write_procfs, .proc_poll = cache_poll_procfs,
@@ -1662,7 +1661,6 @@ static const struct proc_ops cache_flush_proc_ops = { .proc_read = read_flush_procfs, .proc_write = write_flush_procfs, .proc_release = release_flush_procfs, - .proc_lseek = no_llseek, };static void remove_cache_proc_entries (struct cache_detail *cd)
@@ -1815,7 +1813,6 @@ static int cache_release_pipefs(struct inode *inode, struct file *filp)const struct file_operations cache_file_operations_pipefs = { .owner =THIS_MODULE , - .llseek = no_llseek, .read = cache_read_pipefs, .write = cache_write_pipefs, .poll = cache_poll_pipefs,
@@ -1881,7 +1878,6 @@ 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,
net/sunrpc/rpc_pipe.c +0 -1
@@ -385,7 +385,6 @@ rpc_pipe_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)static const struct file_operations rpc_pipe_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .read = rpc_pipe_read, .write = rpc_pipe_write, .poll = rpc_pipe_poll,
scripts/coccinelle/api/stream_open.cocci +0 -1
@@ -131,7 +131,6 @@ identifier llseek_f; identifier fops0.fops; @@ struct file_operations fops = { - .llseek = no_llseek, }; @ has_noop_llseek @
sound/core/control.c +0 -1
@@ -2128,7 +2128,6 @@ static const struct file_operations snd_ctl_f_ops = .read = snd_ctl_read, .open = snd_ctl_open, .release = snd_ctl_release, - .llseek = no_llseek, .poll = snd_ctl_poll, .unlocked_ioctl = snd_ctl_ioctl, .compat_ioctl = snd_ctl_ioctl_compat,
sound/core/oss/mixer_oss.c +0 -1
@@ -426,7 +426,6 @@ static const struct file_operations snd_mixer_oss_f_ops = .owner = THIS_MODULE, .open = snd_mixer_oss_open, .release = snd_mixer_oss_release, - .llseek = no_llseek, .unlocked_ioctl = snd_mixer_oss_ioctl, .compat_ioctl = snd_mixer_oss_ioctl_compat, };
sound/core/oss/pcm_oss.c +0 -1
@@ -3126,7 +3126,6 @@ static const struct file_operations snd_pcm_oss_f_reg = .write = snd_pcm_oss_write, .open = snd_pcm_oss_open, .release = snd_pcm_oss_release, - .llseek = no_llseek, .poll = snd_pcm_oss_poll, .unlocked_ioctl = snd_pcm_oss_ioctl, .compat_ioctl = snd_pcm_oss_ioctl_compat,
sound/core/pcm_native.c +0 -2
@@ -4107,7 +4107,6 @@ const struct file_operations snd_pcm_f_ops[2] = { .write_iter = snd_pcm_writev, .open = snd_pcm_playback_open, .release = snd_pcm_release, - .llseek = no_llseek, .poll = snd_pcm_poll, .unlocked_ioctl = snd_pcm_ioctl, .compat_ioctl = snd_pcm_ioctl_compat,
@@ -4121,7 +4120,6 @@ const struct file_operations snd_pcm_f_ops[2] = { .read_iter = snd_pcm_readv, .open = snd_pcm_capture_open, .release = snd_pcm_release, - .llseek = no_llseek, .poll = snd_pcm_poll, .unlocked_ioctl = snd_pcm_ioctl, .compat_ioctl = snd_pcm_ioctl_compat,
sound/core/rawmidi.c +0 -1
@@ -1711,7 +1711,6 @@ static const struct file_operations snd_rawmidi_f_ops = { .write = snd_rawmidi_write, .open = snd_rawmidi_open, .release = snd_rawmidi_release, - .llseek = no_llseek, .poll = snd_rawmidi_poll, .unlocked_ioctl = snd_rawmidi_ioctl, .compat_ioctl = snd_rawmidi_ioctl_compat,
sound/core/seq/seq_clientmgr.c +0 -1
@@ -2512,7 +2512,6 @@ static const struct file_operations snd_seq_f_ops = .write = snd_seq_write, .open = snd_seq_open, .release = snd_seq_release, - .llseek = no_llseek, .poll = snd_seq_poll, .unlocked_ioctl = snd_seq_ioctl, .compat_ioctl = snd_seq_ioctl_compat,
sound/core/timer.c +0 -1
@@ -2276,7 +2276,6 @@ static const struct file_operations snd_timer_f_ops = .read = snd_timer_user_read, .open = snd_timer_user_open, .release = snd_timer_user_release, - .llseek = no_llseek, .poll = snd_timer_user_poll, .unlocked_ioctl = snd_timer_user_ioctl, .compat_ioctl = snd_timer_user_ioctl_compat,
sound/oss/dmasound/dmasound_core.c +0 -3
@@ -380,7 +380,6 @@ static long mixer_unlocked_ioctl(struct file *file, u_int cmd, u_long arg)static const struct file_operations mixer_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .unlocked_ioctl = mixer_unlocked_ioctl, .compat_ioctl = compat_ptr_ioctl, .open = mixer_open,
@@ -1154,7 +1153,6 @@ static long sq_unlocked_ioctl(struct file *file, u_int cmd, u_long arg)static const struct file_operations sq_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .write = sq_write, .poll = sq_poll, .unlocked_ioctl = sq_unlocked_ioctl,
@@ -1350,7 +1348,6 @@ static ssize_t state_read(struct file *file, char __user *buf, size_t count,static const struct file_operations state_fops = { .owner =THIS_MODULE , - .llseek = no_llseek, .read = state_read, .open = state_open, .release = state_release,
virt/kvm/kvm_main.c +0 -1
@@ -5405,7 +5405,6 @@ static const struct file_operations stat_fops_per_vm = { .release = kvm_debugfs_release, .read = simple_attr_read, .write = simple_attr_write, - .llseek = no_llseek, };static int vm_stat_get (void *_offset,u64 *val)
Signature · 1 line
2.35.1
PATCH v3 2/7 fs: clear or set FMODE_LSEEK based on llseek function
In reply to Jason A. DonenfeldThis helps unify a longstanding wart where FMODE_LSEEK hasn't been uniformly unset when it should be.
--- fs/file_table.c | 2 ++ fs/open.c | 2 ++ 2 files changed, 4 insertions(+)
fs/file_table.c +2 -0
@@ -243,6 +243,8 @@ static struct file *alloc_file(const struct path *path, int flags, file->f_mode |=FMODE_CAN_WRITE ; file->f_mode |=FMODE_OPENED ; file->f_op = fop; +if (file->f_op->llseek) + file->f_mode |=FMODE_LSEEK ;if ((file->f_mode & (FMODE_READ |FMODE_WRITE )) ==FMODE_READ )i_readcount_inc (path->dentry->d_inode);return file;
fs/open.c +2 -0
@@ -858,6 +858,8 @@ static int do_dentry_open(struct file *f,if ((f->f_mode &FMODE_WRITE ) &&likely (f->f_op->write || f->f_op->write_iter)) f->f_mode |=FMODE_CAN_WRITE ; +if ((f->f_mode &FMODE_LSEEK ) && !f->f_op->llseek) + f->f_mode &= ~FMODE_LSEEK ;if (f->f_mapping->a_ops && f->f_mapping->a_ops->direct_IO) f->f_mode |=FMODE_CAN_ODIRECT ;
Signature · 1 line
2.35.1
PATCH v3 3/7 fs: check FMODE_LSEEK to control internal pipe splicing
In reply to Jason A. DonenfeldThe original direct splicing mechanism from Jens required the input to be a regular file because it was avoiding the special socket case. It also recognized blkdevs as being close enough to a regular file. But it forgot about chardevs, which behave the same way and work fine here.
This is an okayish heuristic, but it doesn't totally work. For example, a few chardevs should be spliceable here. And a few regular files shouldn't. This patch fixes this by instead checking whether FMODE_LSEEK is set, which represents decently enough what we need rewinding for when splicing to internal pipes.
--- fs/splice.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-)
fs/splice.c +4 -6
@@ -814,17 +814,15 @@ ssize_t splice_direct_to_actor(struct file *in, struct splice_desc *sd, {struct pipe_inode_info *pipe;long ret, bytes; -umode_t i_mode;size_t len;int i, flags, more;/* -* We require the input being a regular file, as we don't want to -* randomly drop data for eg socket -> socket splicing. Use the -* piped splicing for that! +* We require the input to be seekable, as we don't want to randomly +* drop data for eg socket -> socket splicing. Use the piped splicing +* for that! */ - i_mode =file_inode (in)->i_mode; -if (unlikely (!S_ISREG (i_mode) && !S_ISBLK (i_mode))) +if (unlikely (!(in->f_mode &FMODE_LSEEK )))return -EINVAL ;/*
Signature · 1 line
2.35.1
PATCH v3 4/7 fs: do not compare against ->llseek
In reply to Jason A. DonenfeldNow we can rely on llseek being functional (via vfs_llseek) if FMODE_LSEEK is set, so remove the old broken comparisons.
--- fs/coredump.c | 4 ++-- fs/overlayfs/copy_up.c | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-)
fs/coredump.c +2 -2
@@ -816,9 +816,9 @@ static int __dump_skip(struct coredump_params *cprm, size_t nr) {static char zeroes[PAGE_SIZE ];struct file *file = cprm->file; -if (file->f_op->llseek && file->f_op->llseek != no_llseek) { +if (file->f_mode &FMODE_LSEEK ) {if (dump_interrupted () || - file->f_op->llseek (file, nr,SEEK_CUR ) <0 ) +vfs_llseek (file, nr,SEEK_CUR ) <0 )return 0 ; cprm->pos += nr;return 1 ;
fs/overlayfs/copy_up.c +1 -2
@@ -226,8 +226,7 @@ static int ovl_copy_up_data(struct ovl_fs *ofs, struct path *old,/* Couldn't clone, so now we try to copy the data */ /* Check if lower fs supports seek operation */ -if (old_file->f_mode &FMODE_LSEEK && - old_file->f_op->llseek) +if (old_file->f_mode &FMODE_LSEEK ) skip_hole = true;while (len) {
Signature · 1 line
2.35.1
PATCH v3 5/7 fs: remove no_llseek
In reply to Jason A. DonenfeldNow that all callers of ->llseek are going through vfs_llseek(), we don't gain anything by keeping no_llseek around. Nothing compares it or calls it.
--- fs/read_write.c | 17 +++-------------- include/linux/fs.h | 1 - 2 files changed, 3 insertions(+), 15 deletions(-)
fs/read_write.c +3 -14
@@ -227,12 +227,6 @@ loff_t noop_llseek(struct file *file, loff_t offset, int whence) }EXPORT_SYMBOL (noop_llseek); -loff_t no_llseek (struct file *file,loff_t offset,int whence) -{ -return -ESPIPE ; -} -EXPORT_SYMBOL (no_llseek); -loff_t default_llseek (struct file *file,loff_t offset,int whence) {struct inode *inode =file_inode (file);
@@ -290,14 +284,9 @@ EXPORT_SYMBOL(default_llseek);loff_t vfs_llseek (struct file *file,loff_t offset,int whence) { -loff_t (*fn)(struct file *,loff_t ,int ); - - fn = no_llseek; -if (file->f_mode &FMODE_LSEEK ) { -if (file->f_op->llseek) - fn = file->f_op->llseek; - } -return fn (file, offset, whence); +if (!(file->f_mode &FMODE_LSEEK ) || !file->f_op->llseek) +return -ESPIPE ; +return file->f_op->llseek (file, offset, whence); }EXPORT_SYMBOL (vfs_llseek);
include/linux/fs.h +0 -1
@@ -3022,7 +3022,6 @@ extern long do_splice_direct(struct file *in, loff_t *ppos, struct file *out,extern void file_ra_state_init (struct file_ra_state *ra,struct address_space *mapping);extern loff_t noop_llseek (struct file *file,loff_t offset,int whence); -extern loff_t no_llseek (struct file *file,loff_t offset,int whence);extern loff_t vfs_setpos (struct file *file,loff_t offset,loff_t maxsize);extern loff_t generic_file_llseek (struct file *file,loff_t offset,int whence); extern loff_t generic_file_llseek_size(struct file *file, loff_t offset,
Signature · 1 line
2.35.1
PATCH v3 6/7 dma-buf: remove useless FMODE_LSEEK flag
In reply to Jason A. DonenfeldThis is already set by anon_inode_getfile(), since dma_buf_fops has non-NULL ->llseek, so we don't need to set it here too.
--- drivers/dma-buf/dma-buf.c | 1 - 1 file changed, 1 deletion(-)
drivers/dma-buf/dma-buf.c +0 -1
@@ -549,7 +549,6 @@ struct dma_buf *dma_buf_export(const struct dma_buf_export_info *exp_info) goto err_dmabuf; } - file->f_mode |=FMODE_LSEEK ; dmabuf->file = file;mutex_init (&dmabuf->lock);
Signature · 1 line
2.35.1
PATCH v3 7/7 vfio: do not set FMODE_LSEEK flag
In reply to Jason A. DonenfeldThis file does not support llseek, so don't set the flag advertising it.
--- drivers/vfio/vfio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/vfio/vfio.c +1 -1
@@ -1129,7 +1129,7 @@ static struct file *vfio_device_open(struct vfio_device *device)* Appears to be missing by lack of need rather than * explicitly prevented. Now there's need. */ - filep->f_mode |= (FMODE_LSEEK |FMODE_PREAD |FMODE_PWRITE ); + filep->f_mode |= (FMODE_PREAD |FMODE_PWRITE );if (device->group->type ==VFIO_NO_IOMMU ) dev_warn(device->dev, "vfio-noiommu device opened by user "
Signature · 1 line
2.35.1
Re: [PATCH v3 5/7] fs: remove no_llseek
In reply to Jason A. DonenfeldQuoted 30 lines · Jason A. Donenfeld
Now that all callers of ->llseek are going through
vfs_llseek(), we don't gain anything by keepingno_llseekaround. Nothing compares it or calls it.Signed-off-by Jason A. Donenfeld <[email protected]>--- fs/read_write.c | 17 +++-------------- include/linux/fs.h | 1 - 2 files changed, 3 insertions(+), 15 deletions(-)fs/read_write.c +0
-6@@ -227,12 +227,6 @@ loff_t noop_llseek(struct file *file, loff_t offset, int whence) }EXPORT_SYMBOL (noop_llseek); -loff_t no_llseek (struct file *file,loff_t offset,int whence) -{ -return -ESPIPE ; -} -EXPORT_SYMBOL (no_llseek); -loff_t default_llseek (struct file *file,loff_t offset,int whence) {struct inode *inode =file_inode (file);@@ -290,14 +284,9 @@ EXPORT_SYMBOL(default_llseek);loff_t vfs_llseek (struct file *file,loff_t offset,int whence)
fs/read_write.c EXPORT_SYMBOL(default_llseek); · line 287
Quoted 10 lines
fs/read_write.c +1
-8{ -loff_t (*fn)(struct file *,loff_t ,int ); - - fn = no_llseek; -if (file->f_mode &FMODE_LSEEK ) { -if (file->f_op->llseek) - fn = file->f_op->llseek; - } -return fn (file, offset, whence); +if (!(file->f_mode &FMODE_LSEEK ) || !file->f_op->llseek)
Is it not sufficient here to just check for the presence of FMODE_LSEEK? NULL llseek shall result in FMODE_LSEEK not being set when the file is opened?
Quoted 17 lines
fs/read_write.c +2
-0+return -ESPIPE ; +return file->f_op->llseek (file, offset, whence); }EXPORT_SYMBOL (vfs_llseek);include/linux/fs.h +0
-1@@ -3022,7 +3022,6 @@ extern long do_splice_direct(struct file *in, loff_t *ppos, struct file *out,extern void file_ra_state_init (struct file_ra_state *ra,struct address_space *mapping);extern loff_t noop_llseek (struct file *file,loff_t offset,int whence); -extern loff_t no_llseek (struct file *file,loff_t offset,int whence);extern loff_t vfs_setpos (struct file *file,loff_t offset,loff_t maxsize);extern loff_t generic_file_llseek (struct file *file,loff_t offset,int whence); extern loff_t generic_file_llseek_size(struct file *file, loff_t offset,
Re: [PATCH v3 5/7] fs: remove no_llseek
Hi Nikolay,
Quoted 32 lines · Nikolay Borisov
Quoted 29 lines · Jason A. Donenfeld
Now that all callers of ->llseek are going through
vfs_llseek(), we don't gain anything by keepingno_llseekaround. Nothing compares it or calls it.Signed-off-by Jason A. Donenfeld <[email protected]>--- fs/read_write.c | 17 +++-------------- include/linux/fs.h | 1 - 2 files changed, 3 insertions(+), 15 deletions(-)fs/read_write.c +0
-6@@ -227,12 +227,6 @@ loff_t noop_llseek(struct file *file, loff_t offset, int whence) }EXPORT_SYMBOL (noop_llseek); -loff_t no_llseek (struct file *file,loff_t offset,int whence) -{ -return -ESPIPE ; -} -EXPORT_SYMBOL (no_llseek); -loff_t default_llseek (struct file *file,loff_t offset,int whence) {struct inode *inode =file_inode (file);@@ -290,14 +284,9 @@ EXPORT_SYMBOL(default_llseek);
Quoted 15 lines
fs/read_write.c EXPORT_SYMBOL(default_llseek); · line 287
Quoted 11 lines
fs/read_write.c +1
-8loff_t vfs_llseek (struct file *file,loff_t offset,int whence) { -loff_t (*fn)(struct file *,loff_t ,int ); - - fn = no_llseek; -if (file->f_mode &FMODE_LSEEK ) { -if (file->f_op->llseek) - fn = file->f_op->llseek; - } -return fn (file, offset, whence); +if (!(file->f_mode &FMODE_LSEEK ) || !file->f_op->llseek)Is it not sufficient here to just check for the presence of
FMODE_LSEEK? NULL llseek shall result inFMODE_LSEEKnot being set when the file is opened?
Yes, that's probably fine. I did this out of an abundance of caution, but I have a feeling Al might agree with you that useless is useless. I can send a v4 changing that.
Al, what do you think?
Jason