]> Pileus Git - ~andy/linux/commitdiff
drm: use noop_llseek
authorArnd Bergmann <arnd@arndb.de>
Tue, 6 Jul 2010 16:54:47 +0000 (18:54 +0200)
committerArnd Bergmann <arnd@arndb.de>
Thu, 16 Sep 2010 08:33:07 +0000 (10:33 +0200)
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
13 files changed:
Documentation/DocBook/drm.tmpl
drivers/gpu/drm/i810/i810_drv.c
drivers/gpu/drm/i830/i830_drv.c
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/mga/mga_drv.c
drivers/gpu/drm/nouveau/nouveau_drv.c
drivers/gpu/drm/r128/r128_drv.c
drivers/gpu/drm/radeon/radeon_drv.c
drivers/gpu/drm/savage/savage_drv.c
drivers/gpu/drm/sis/sis_drv.c
drivers/gpu/drm/tdfx/tdfx_drv.c
drivers/gpu/drm/via/via_drv.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c

index 910c923a9b86fe5bbd4e38abd6ad2eb593a25e2b..2861055afd7af0dfee9243556baff6559f4d652b 100644 (file)
 #ifdef CONFIG_COMPAT
                .compat_ioctl = i915_compat_ioctl,
 #endif
+               .llseek = noop_llseek,
                },
        .pci_driver = {
                .name = DRIVER_NAME,
index b4250b2cac1ff446d1a1f5e67a77fd1a1572ded6..fe69914ce507b3df89ed8193fb32ca58c4a73c0c 100644 (file)
@@ -63,6 +63,7 @@ static struct drm_driver driver = {
                 .mmap = drm_mmap,
                 .poll = drm_poll,
                 .fasync = drm_fasync,
+                .llseek = noop_llseek,
        },
 
        .pci_driver = {
index a5c66aa82f0c1cd9246b8ea3c66c29f0bc7cd1e2..5b6298b24e249960bcf6053cb4d29c4573a285d3 100644 (file)
@@ -74,6 +74,7 @@ static struct drm_driver driver = {
                 .mmap = drm_mmap,
                 .poll = drm_poll,
                 .fasync = drm_fasync,
+                .llseek = noop_llseek,
        },
 
        .pci_driver = {
index 216deb579785eb93e27e2ba57a0556471a13daf2..a6fdb481500c4bb4fa4cc733658cdd3dee0cd11e 100644 (file)
@@ -547,6 +547,7 @@ static struct drm_driver driver = {
 #ifdef CONFIG_COMPAT
                 .compat_ioctl = i915_compat_ioctl,
 #endif
+                .llseek = noop_llseek,
        },
 
        .pci_driver = {
index 26d0d8ced80d4357421875b4c7344f53e21d96b4..ac64f0b0392edb32e57a3b0da85c4185ad4efa59 100644 (file)
@@ -75,6 +75,7 @@ static struct drm_driver driver = {
 #ifdef CONFIG_COMPAT
                .compat_ioctl = mga_compat_ioctl,
 #endif
+               .llseek = noop_llseek,
        },
        .pci_driver = {
                .name = DRIVER_NAME,
index 1de5eb53e0164be3cc81cf5a17f7969bc211e4ef..eb15345162a03af66a556ccd6f083907261abd90 100644 (file)
@@ -393,6 +393,7 @@ static struct drm_driver driver = {
 #if defined(CONFIG_COMPAT)
                .compat_ioctl = nouveau_compat_ioctl,
 #endif
+               .llseek = noop_llseek,
        },
        .pci_driver = {
                .name = DRIVER_NAME,
index 1e2971f13aa1f5775f518db92967c5c5a6c83ddf..d42c76c237142225adf95332a3e4ca2c2dee62ea 100644 (file)
@@ -71,6 +71,7 @@ static struct drm_driver driver = {
 #ifdef CONFIG_COMPAT
                .compat_ioctl = r128_compat_ioctl,
 #endif
+               .llseek = noop_llseek,
        },
        .pci_driver = {
                .name = DRIVER_NAME,
index 795403b0e2cda8ac392e8faac9cded15746fc500..29c1237c2e7b8357d7b72d07cf76a99ed9375869 100644 (file)
@@ -219,6 +219,7 @@ static struct drm_driver driver_old = {
 #ifdef CONFIG_COMPAT
                 .compat_ioctl = radeon_compat_ioctl,
 #endif
+                .llseek = noop_llseek,
        },
 
        .pci_driver = {
index 021de44c15ab75245fde74c95701c6c8a72aadaf..2a2830f5a8409b802a000b663faa1580d9a20815 100644 (file)
@@ -54,6 +54,7 @@ static struct drm_driver driver = {
                 .mmap = drm_mmap,
                 .poll = drm_poll,
                 .fasync = drm_fasync,
+                .llseek = noop_llseek,
        },
 
        .pci_driver = {
index 776bf9e9ea1adfec718e6b5a4c7906eedaf72348..4bb10ef6676a711b795346006f2e97ebdce51e42 100644 (file)
@@ -83,6 +83,7 @@ static struct drm_driver driver = {
                 .mmap = drm_mmap,
                 .poll = drm_poll,
                 .fasync = drm_fasync,
+                .llseek = noop_llseek,
        },
        .pci_driver = {
                 .name = DRIVER_NAME,
index ec5a43e65722ec3a3b2a7a63a4e97fd531730a34..640567ef713dbe97e9f22c710a7d951cc73c46b5 100644 (file)
@@ -52,6 +52,7 @@ static struct drm_driver driver = {
                 .mmap = drm_mmap,
                 .poll = drm_poll,
                 .fasync = drm_fasync,
+                .llseek = noop_llseek,
        },
        .pci_driver = {
                 .name = DRIVER_NAME,
index 7a1b210401e080908a394368f4797c63dd745d65..b8984a5ae5218b375764fe2845d6c8cb5febc548 100644 (file)
@@ -62,6 +62,7 @@ static struct drm_driver driver = {
                .mmap = drm_mmap,
                .poll = drm_poll,
                .fasync = drm_fasync,
+               .llseek = noop_llseek,
                },
        .pci_driver = {
                .name = DRIVER_NAME,
index 72ec2e2b6e9787196ca1de65f28e4c6a0f090051..d237190b888a56ccd60e1fc3ebdbd98d457d02e8 100644 (file)
@@ -745,6 +745,7 @@ static struct drm_driver driver = {
 #if defined(CONFIG_COMPAT)
                 .compat_ioctl = drm_compat_ioctl,
 #endif
+                .llseek = noop_llseek,
                 },
        .pci_driver = {
                       .name = VMWGFX_DRIVER_NAME,