diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-22 13:52:56 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-22 13:52:56 -0400 |
| commit | 092e0e7e520a1fca03e13c9f2d157432a8657ff2 (patch) | |
| tree | 451897252c4c08c4b5a8ef535da156f1e817e80b /drivers/gpu | |
| parent | 79f14b7c56d3b3ba58f8b43d1f70b9b71477a800 (diff) | |
| parent | 776c163b1b93c8dfa5edba885bc2bfbc2d228a5f (diff) | |
Merge branch 'llseek' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl
* 'llseek' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl:
vfs: make no_llseek the default
vfs: don't use BKL in default_llseek
llseek: automatically add .llseek fop
libfs: use generic_file_llseek for simple_attr
mac80211: disallow seeks in minstrel debug code
lirc: make chardev nonseekable
viotape: use noop_llseek
raw: use explicit llseek file operations
ibmasmfs: use generic_file_llseek
spufs: use llseek in all file operations
arm/omap: use generic_file_llseek in iommu_debug
lkdtm: use generic_file_llseek in debugfs
net/wireless: use generic_file_llseek in debugfs
drm: use noop_llseek
Diffstat (limited to 'drivers/gpu')
| -rw-r--r-- | drivers/gpu/drm/drm_drv.c | 3 | ||||
| -rw-r--r-- | drivers/gpu/drm/i810/i810_dma.c | 1 | ||||
| -rw-r--r-- | drivers/gpu/drm/i810/i810_drv.c | 1 | ||||
| -rw-r--r-- | drivers/gpu/drm/i830/i830_dma.c | 1 | ||||
| -rw-r--r-- | drivers/gpu/drm/i830/i830_drv.c | 1 | ||||
| -rw-r--r-- | drivers/gpu/drm/i915/i915_debugfs.c | 1 | ||||
| -rw-r--r-- | drivers/gpu/drm/i915/i915_drv.c | 1 | ||||
| -rw-r--r-- | drivers/gpu/drm/mga/mga_drv.c | 1 | ||||
| -rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_drv.c | 1 | ||||
| -rw-r--r-- | drivers/gpu/drm/r128/r128_drv.c | 1 | ||||
| -rw-r--r-- | drivers/gpu/drm/radeon/radeon_drv.c | 1 | ||||
| -rw-r--r-- | drivers/gpu/drm/savage/savage_drv.c | 1 | ||||
| -rw-r--r-- | drivers/gpu/drm/sis/sis_drv.c | 1 | ||||
| -rw-r--r-- | drivers/gpu/drm/tdfx/tdfx_drv.c | 1 | ||||
| -rw-r--r-- | drivers/gpu/drm/via/via_drv.c | 1 | ||||
| -rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 1 | ||||
| -rw-r--r-- | drivers/gpu/vga/vgaarb.c | 1 |
17 files changed, 18 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c index 84da748555bc..ff6690f4fc87 100644 --- a/drivers/gpu/drm/drm_drv.c +++ b/drivers/gpu/drm/drm_drv.c | |||
| @@ -284,7 +284,8 @@ EXPORT_SYMBOL(drm_exit); | |||
| 284 | /** File operations structure */ | 284 | /** File operations structure */ |
| 285 | static const struct file_operations drm_stub_fops = { | 285 | static const struct file_operations drm_stub_fops = { |
| 286 | .owner = THIS_MODULE, | 286 | .owner = THIS_MODULE, |
| 287 | .open = drm_stub_open | 287 | .open = drm_stub_open, |
| 288 | .llseek = noop_llseek, | ||
| 288 | }; | 289 | }; |
| 289 | 290 | ||
| 290 | static int __init drm_core_init(void) | 291 | static int __init drm_core_init(void) |
diff --git a/drivers/gpu/drm/i810/i810_dma.c b/drivers/gpu/drm/i810/i810_dma.c index fb07e73581e8..ff33e53bbbf8 100644 --- a/drivers/gpu/drm/i810/i810_dma.c +++ b/drivers/gpu/drm/i810/i810_dma.c | |||
| @@ -119,6 +119,7 @@ static const struct file_operations i810_buffer_fops = { | |||
| 119 | .unlocked_ioctl = i810_ioctl, | 119 | .unlocked_ioctl = i810_ioctl, |
| 120 | .mmap = i810_mmap_buffers, | 120 | .mmap = i810_mmap_buffers, |
| 121 | .fasync = drm_fasync, | 121 | .fasync = drm_fasync, |
| 122 | .llseek = noop_llseek, | ||
| 122 | }; | 123 | }; |
| 123 | 124 | ||
| 124 | static int i810_map_buffer(struct drm_buf *buf, struct drm_file *file_priv) | 125 | static int i810_map_buffer(struct drm_buf *buf, struct drm_file *file_priv) |
diff --git a/drivers/gpu/drm/i810/i810_drv.c b/drivers/gpu/drm/i810/i810_drv.c index b4250b2cac1f..fe69914ce507 100644 --- a/drivers/gpu/drm/i810/i810_drv.c +++ b/drivers/gpu/drm/i810/i810_drv.c | |||
| @@ -63,6 +63,7 @@ static struct drm_driver driver = { | |||
| 63 | .mmap = drm_mmap, | 63 | .mmap = drm_mmap, |
| 64 | .poll = drm_poll, | 64 | .poll = drm_poll, |
| 65 | .fasync = drm_fasync, | 65 | .fasync = drm_fasync, |
| 66 | .llseek = noop_llseek, | ||
| 66 | }, | 67 | }, |
| 67 | 68 | ||
| 68 | .pci_driver = { | 69 | .pci_driver = { |
diff --git a/drivers/gpu/drm/i830/i830_dma.c b/drivers/gpu/drm/i830/i830_dma.c index cc92c7e6236f..ca6f31ff0eec 100644 --- a/drivers/gpu/drm/i830/i830_dma.c +++ b/drivers/gpu/drm/i830/i830_dma.c | |||
| @@ -121,6 +121,7 @@ static const struct file_operations i830_buffer_fops = { | |||
| 121 | .unlocked_ioctl = i830_ioctl, | 121 | .unlocked_ioctl = i830_ioctl, |
| 122 | .mmap = i830_mmap_buffers, | 122 | .mmap = i830_mmap_buffers, |
| 123 | .fasync = drm_fasync, | 123 | .fasync = drm_fasync, |
| 124 | .llseek = noop_llseek, | ||
| 124 | }; | 125 | }; |
| 125 | 126 | ||
| 126 | static int i830_map_buffer(struct drm_buf *buf, struct drm_file *file_priv) | 127 | static int i830_map_buffer(struct drm_buf *buf, struct drm_file *file_priv) |
diff --git a/drivers/gpu/drm/i830/i830_drv.c b/drivers/gpu/drm/i830/i830_drv.c index a5c66aa82f0c..5b6298b24e24 100644 --- a/drivers/gpu/drm/i830/i830_drv.c +++ b/drivers/gpu/drm/i830/i830_drv.c | |||
| @@ -74,6 +74,7 @@ static struct drm_driver driver = { | |||
| 74 | .mmap = drm_mmap, | 74 | .mmap = drm_mmap, |
| 75 | .poll = drm_poll, | 75 | .poll = drm_poll, |
| 76 | .fasync = drm_fasync, | 76 | .fasync = drm_fasync, |
| 77 | .llseek = noop_llseek, | ||
| 77 | }, | 78 | }, |
| 78 | 79 | ||
| 79 | .pci_driver = { | 80 | .pci_driver = { |
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 5e43d7076789..048149748fdc 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c | |||
| @@ -782,6 +782,7 @@ static const struct file_operations i915_wedged_fops = { | |||
| 782 | .open = i915_wedged_open, | 782 | .open = i915_wedged_open, |
| 783 | .read = i915_wedged_read, | 783 | .read = i915_wedged_read, |
| 784 | .write = i915_wedged_write, | 784 | .write = i915_wedged_write, |
| 785 | .llseek = default_llseek, | ||
| 785 | }; | 786 | }; |
| 786 | 787 | ||
| 787 | /* As the drm_debugfs_init() routines are called before dev->dev_private is | 788 | /* As the drm_debugfs_init() routines are called before dev->dev_private is |
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index 6dbe14cc4f74..895ab896e336 100644 --- a/drivers/gpu/drm/i915/i915_drv.c +++ b/drivers/gpu/drm/i915/i915_drv.c | |||
| @@ -548,6 +548,7 @@ static struct drm_driver driver = { | |||
| 548 | #ifdef CONFIG_COMPAT | 548 | #ifdef CONFIG_COMPAT |
| 549 | .compat_ioctl = i915_compat_ioctl, | 549 | .compat_ioctl = i915_compat_ioctl, |
| 550 | #endif | 550 | #endif |
| 551 | .llseek = noop_llseek, | ||
| 551 | }, | 552 | }, |
| 552 | 553 | ||
| 553 | .pci_driver = { | 554 | .pci_driver = { |
diff --git a/drivers/gpu/drm/mga/mga_drv.c b/drivers/gpu/drm/mga/mga_drv.c index 26d0d8ced80d..ac64f0b0392e 100644 --- a/drivers/gpu/drm/mga/mga_drv.c +++ b/drivers/gpu/drm/mga/mga_drv.c | |||
| @@ -75,6 +75,7 @@ static struct drm_driver driver = { | |||
| 75 | #ifdef CONFIG_COMPAT | 75 | #ifdef CONFIG_COMPAT |
| 76 | .compat_ioctl = mga_compat_ioctl, | 76 | .compat_ioctl = mga_compat_ioctl, |
| 77 | #endif | 77 | #endif |
| 78 | .llseek = noop_llseek, | ||
| 78 | }, | 79 | }, |
| 79 | .pci_driver = { | 80 | .pci_driver = { |
| 80 | .name = DRIVER_NAME, | 81 | .name = DRIVER_NAME, |
diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.c b/drivers/gpu/drm/nouveau/nouveau_drv.c index 1de5eb53e016..eb15345162a0 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drv.c +++ b/drivers/gpu/drm/nouveau/nouveau_drv.c | |||
| @@ -393,6 +393,7 @@ static struct drm_driver driver = { | |||
| 393 | #if defined(CONFIG_COMPAT) | 393 | #if defined(CONFIG_COMPAT) |
| 394 | .compat_ioctl = nouveau_compat_ioctl, | 394 | .compat_ioctl = nouveau_compat_ioctl, |
| 395 | #endif | 395 | #endif |
| 396 | .llseek = noop_llseek, | ||
| 396 | }, | 397 | }, |
| 397 | .pci_driver = { | 398 | .pci_driver = { |
| 398 | .name = DRIVER_NAME, | 399 | .name = DRIVER_NAME, |
diff --git a/drivers/gpu/drm/r128/r128_drv.c b/drivers/gpu/drm/r128/r128_drv.c index 1e2971f13aa1..d42c76c23714 100644 --- a/drivers/gpu/drm/r128/r128_drv.c +++ b/drivers/gpu/drm/r128/r128_drv.c | |||
| @@ -71,6 +71,7 @@ static struct drm_driver driver = { | |||
| 71 | #ifdef CONFIG_COMPAT | 71 | #ifdef CONFIG_COMPAT |
| 72 | .compat_ioctl = r128_compat_ioctl, | 72 | .compat_ioctl = r128_compat_ioctl, |
| 73 | #endif | 73 | #endif |
| 74 | .llseek = noop_llseek, | ||
| 74 | }, | 75 | }, |
| 75 | .pci_driver = { | 76 | .pci_driver = { |
| 76 | .name = DRIVER_NAME, | 77 | .name = DRIVER_NAME, |
diff --git a/drivers/gpu/drm/radeon/radeon_drv.c b/drivers/gpu/drm/radeon/radeon_drv.c index 795403b0e2cd..29c1237c2e7b 100644 --- a/drivers/gpu/drm/radeon/radeon_drv.c +++ b/drivers/gpu/drm/radeon/radeon_drv.c | |||
| @@ -219,6 +219,7 @@ static struct drm_driver driver_old = { | |||
| 219 | #ifdef CONFIG_COMPAT | 219 | #ifdef CONFIG_COMPAT |
| 220 | .compat_ioctl = radeon_compat_ioctl, | 220 | .compat_ioctl = radeon_compat_ioctl, |
| 221 | #endif | 221 | #endif |
| 222 | .llseek = noop_llseek, | ||
| 222 | }, | 223 | }, |
| 223 | 224 | ||
| 224 | .pci_driver = { | 225 | .pci_driver = { |
diff --git a/drivers/gpu/drm/savage/savage_drv.c b/drivers/gpu/drm/savage/savage_drv.c index 021de44c15ab..2a2830f5a840 100644 --- a/drivers/gpu/drm/savage/savage_drv.c +++ b/drivers/gpu/drm/savage/savage_drv.c | |||
| @@ -54,6 +54,7 @@ static struct drm_driver driver = { | |||
| 54 | .mmap = drm_mmap, | 54 | .mmap = drm_mmap, |
| 55 | .poll = drm_poll, | 55 | .poll = drm_poll, |
| 56 | .fasync = drm_fasync, | 56 | .fasync = drm_fasync, |
| 57 | .llseek = noop_llseek, | ||
| 57 | }, | 58 | }, |
| 58 | 59 | ||
| 59 | .pci_driver = { | 60 | .pci_driver = { |
diff --git a/drivers/gpu/drm/sis/sis_drv.c b/drivers/gpu/drm/sis/sis_drv.c index 776bf9e9ea1a..4bb10ef6676a 100644 --- a/drivers/gpu/drm/sis/sis_drv.c +++ b/drivers/gpu/drm/sis/sis_drv.c | |||
| @@ -83,6 +83,7 @@ static struct drm_driver driver = { | |||
| 83 | .mmap = drm_mmap, | 83 | .mmap = drm_mmap, |
| 84 | .poll = drm_poll, | 84 | .poll = drm_poll, |
| 85 | .fasync = drm_fasync, | 85 | .fasync = drm_fasync, |
| 86 | .llseek = noop_llseek, | ||
| 86 | }, | 87 | }, |
| 87 | .pci_driver = { | 88 | .pci_driver = { |
| 88 | .name = DRIVER_NAME, | 89 | .name = DRIVER_NAME, |
diff --git a/drivers/gpu/drm/tdfx/tdfx_drv.c b/drivers/gpu/drm/tdfx/tdfx_drv.c index ec5a43e65722..640567ef713d 100644 --- a/drivers/gpu/drm/tdfx/tdfx_drv.c +++ b/drivers/gpu/drm/tdfx/tdfx_drv.c | |||
| @@ -52,6 +52,7 @@ static struct drm_driver driver = { | |||
| 52 | .mmap = drm_mmap, | 52 | .mmap = drm_mmap, |
| 53 | .poll = drm_poll, | 53 | .poll = drm_poll, |
| 54 | .fasync = drm_fasync, | 54 | .fasync = drm_fasync, |
| 55 | .llseek = noop_llseek, | ||
| 55 | }, | 56 | }, |
| 56 | .pci_driver = { | 57 | .pci_driver = { |
| 57 | .name = DRIVER_NAME, | 58 | .name = DRIVER_NAME, |
diff --git a/drivers/gpu/drm/via/via_drv.c b/drivers/gpu/drm/via/via_drv.c index 7a1b210401e0..b8984a5ae521 100644 --- a/drivers/gpu/drm/via/via_drv.c +++ b/drivers/gpu/drm/via/via_drv.c | |||
| @@ -62,6 +62,7 @@ static struct drm_driver driver = { | |||
| 62 | .mmap = drm_mmap, | 62 | .mmap = drm_mmap, |
| 63 | .poll = drm_poll, | 63 | .poll = drm_poll, |
| 64 | .fasync = drm_fasync, | 64 | .fasync = drm_fasync, |
| 65 | .llseek = noop_llseek, | ||
| 65 | }, | 66 | }, |
| 66 | .pci_driver = { | 67 | .pci_driver = { |
| 67 | .name = DRIVER_NAME, | 68 | .name = DRIVER_NAME, |
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c index a96ed6d9d010..2ef93df9e8ae 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | |||
| @@ -820,6 +820,7 @@ static struct drm_driver driver = { | |||
| 820 | #if defined(CONFIG_COMPAT) | 820 | #if defined(CONFIG_COMPAT) |
| 821 | .compat_ioctl = drm_compat_ioctl, | 821 | .compat_ioctl = drm_compat_ioctl, |
| 822 | #endif | 822 | #endif |
| 823 | .llseek = noop_llseek, | ||
| 823 | }, | 824 | }, |
| 824 | .pci_driver = { | 825 | .pci_driver = { |
| 825 | .name = VMWGFX_DRIVER_NAME, | 826 | .name = VMWGFX_DRIVER_NAME, |
diff --git a/drivers/gpu/vga/vgaarb.c b/drivers/gpu/vga/vgaarb.c index f366f968155a..c380c65da417 100644 --- a/drivers/gpu/vga/vgaarb.c +++ b/drivers/gpu/vga/vgaarb.c | |||
| @@ -1211,6 +1211,7 @@ static const struct file_operations vga_arb_device_fops = { | |||
| 1211 | .poll = vga_arb_fpoll, | 1211 | .poll = vga_arb_fpoll, |
| 1212 | .open = vga_arb_open, | 1212 | .open = vga_arb_open, |
| 1213 | .release = vga_arb_release, | 1213 | .release = vga_arb_release, |
| 1214 | .llseek = noop_llseek, | ||
| 1214 | }; | 1215 | }; |
| 1215 | 1216 | ||
| 1216 | static struct miscdevice vga_arb_device = { | 1217 | static struct miscdevice vga_arb_device = { |
