The Linux 2.6.9 (and earlier) fops structure does not contain a
authorIan Romanick <idr@us.ibm.com>
Tue, 11 Oct 2005 17:34:49 +0000 (17:34 +0000)
committerIan Romanick <idr@us.ibm.com>
Tue, 11 Oct 2005 17:34:49 +0000 (17:34 +0000)
    .compat_ioctl field. This change makes the DRM build on those kernels.
Signed-off-by: Ian Romanick <idr@us.ibm.com>
linux-core/mga_drv.c
linux-core/r128_drv.c
linux-core/radeon_drv.c

index 4dc5603..1a55992 100644 (file)
@@ -75,7 +75,7 @@ static struct drm_driver driver = {
                .mmap = drm_mmap,
                .poll = drm_poll,
                .fasync = drm_fasync,
-#ifdef CONFIG_COMPAT
+#if defined(CONFIG_COMPAT) && LINUX_VERSION_CODE > KERNEL_VERSION(2,6,9)
                .compat_ioctl = mga_compat_ioctl,
 #endif
                },
index b6cff4d..a722328 100644 (file)
@@ -71,7 +71,7 @@ static struct drm_driver driver = {
                .mmap = drm_mmap,
                .poll = drm_poll,
                .fasync = drm_fasync,
-#ifdef CONFIG_COMPAT
+#if defined(CONFIG_COMPAT) && LINUX_VERSION_CODE > KERNEL_VERSION(2,6,9)
                .compat_ioctl = r128_compat_ioctl,
 #endif
                },
index 52e5017..57c24f4 100644 (file)
@@ -93,7 +93,7 @@ static struct drm_driver driver = {
                .mmap = drm_mmap,
                .poll = drm_poll,
                .fasync = drm_fasync,
-#ifdef CONFIG_COMPAT
+#if defined(CONFIG_COMPAT) && LINUX_VERSION_CODE > KERNEL_VERSION(2,6,9)
                .compat_ioctl = radeon_compat_ioctl,
 #endif
                },