fix const pointer warnings with file_operations
authorDave Airlie <airlied@linux.ie>
Sat, 19 Aug 2006 06:55:30 +0000 (16:55 +1000)
committerDave Airlie <airlied@linux.ie>
Sat, 19 Aug 2006 06:55:30 +0000 (16:55 +1000)
linux-core/drm_fops.c
linux-core/i810_dma.c
linux-core/i830_dma.c

index 74fcf4b..377007c 100644 (file)
@@ -175,7 +175,7 @@ int drm_stub_open(struct inode *inode, struct file *filp)
        drm_device_t *dev = NULL;
        int minor = iminor(inode);
        int err = -ENODEV;
-       struct file_operations *old_fops;
+       const struct file_operations *old_fops;
 
        DRM_DEBUG("\n");
 
index 27d8efb..bdbb31f 100644 (file)
@@ -151,7 +151,7 @@ static int i810_map_buffer(drm_buf_t * buf, struct file *filp)
        drm_device_t *dev = priv->head->dev;
        drm_i810_buf_priv_t *buf_priv = buf->dev_private;
        drm_i810_private_t *dev_priv = dev->dev_private;
-       struct file_operations *old_fops;
+       const struct file_operations *old_fops;
        int retcode = 0;
 
        if (buf_priv->currently_mapped == I810_BUF_MAPPED)
index 9694f64..4526ccf 100644 (file)
@@ -137,7 +137,7 @@ static int i830_map_buffer(drm_buf_t * buf, struct file *filp)
        drm_device_t *dev = priv->head->dev;
        drm_i830_buf_priv_t *buf_priv = buf->dev_private;
        drm_i830_private_t *dev_priv = dev->dev_private;
-       struct file_operations *old_fops;
+       const struct file_operations *old_fops;
        unsigned long virtual;
        int retcode = 0;