aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2010-07-06 12:54:47 -0400
committerArnd Bergmann <arnd@arndb.de>2010-09-16 04:33:07 -0400
commitdc880abef75e7c62c9048171f5112500f36a9244 (patch)
treeeb528c3313ad92d6554f9fa4adc266313ffc10b3 /drivers/gpu/drm
parent49553c2ef88749dd502687f4eb9c258bb10a4f44 (diff)
drm: use noop_llseek
The drm device drivers currently allow seeking on the character device but never care about the actual file position. When we change the default llseek operation to be no_llseek, calling llseek on a drm device would return an error condition, which is an API change. Explicitly setting noop_llseek lets us keep the current API. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Cc: David Airlie <airlied@linux.ie> Cc: dri-devel@lists.freedesktop.org
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/i810/i810_drv.c1
-rw-r--r--drivers/gpu/drm/i830/i830_drv.c1
-rw-r--r--drivers/gpu/drm/i915/i915_drv.c1
-rw-r--r--drivers/gpu/drm/mga/mga_drv.c1
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_drv.c1
-rw-r--r--drivers/gpu/drm/r128/r128_drv.c1
-rw-r--r--drivers/gpu/drm/radeon/radeon_drv.c1
-rw-r--r--drivers/gpu/drm/savage/savage_drv.c1
-rw-r--r--drivers/gpu/drm/sis/sis_drv.c1
-rw-r--r--drivers/gpu/drm/tdfx/tdfx_drv.c1
-rw-r--r--drivers/gpu/drm/via/via_drv.c1
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_drv.c1
12 files changed, 12 insertions, 0 deletions
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_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_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index 216deb579785..a6fdb481500c 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -547,6 +547,7 @@ static struct drm_driver driver = {
547#ifdef CONFIG_COMPAT 547#ifdef CONFIG_COMPAT
548 .compat_ioctl = i915_compat_ioctl, 548 .compat_ioctl = i915_compat_ioctl,
549#endif 549#endif
550 .llseek = noop_llseek,
550 }, 551 },
551 552
552 .pci_driver = { 553 .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 72ec2e2b6e97..d237190b888a 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
@@ -745,6 +745,7 @@ static struct drm_driver driver = {
745#if defined(CONFIG_COMPAT) 745#if defined(CONFIG_COMPAT)
746 .compat_ioctl = drm_compat_ioctl, 746 .compat_ioctl = drm_compat_ioctl,
747#endif 747#endif
748 .llseek = noop_llseek,
748 }, 749 },
749 .pci_driver = { 750 .pci_driver = {
750 .name = VMWGFX_DRIVER_NAME, 751 .name = VMWGFX_DRIVER_NAME,