drm/nouveau/radeon: add static const to the dma-buf ops.
authorDave Airlie <airlied@redhat.com>
Wed, 23 May 2012 13:10:27 +0000 (14:10 +0100)
committerDave Airlie <airlied@redhat.com>
Wed, 23 May 2012 13:10:27 +0000 (14:10 +0100)
Reported-by: wfg@linux.intel.com
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/nouveau/nouveau_prime.c
drivers/gpu/drm/radeon/radeon_prime.c

index ed6b8465260a1de1961a83f0d1e319d122920d74..c58aab7370c575949a41113014120b252548169c 100644 (file)
@@ -61,7 +61,7 @@ static void nouveau_gem_kunmap(struct dma_buf *dma_buf, unsigned long page_num,
 
 }
 
-struct dma_buf_ops nouveau_dmabuf_ops =  {
+static const struct dma_buf_ops nouveau_dmabuf_ops =  {
        .map_dma_buf = nouveau_gem_map_dma_buf,
        .unmap_dma_buf = nouveau_gem_unmap_dma_buf,
        .release = nouveau_gem_dmabuf_release,
index 24f51753c9aaf7269c272eccac6050b405a9d909..b8f835d8ecb4127a2c4b8771e1b74859f0561c5d 100644 (file)
@@ -85,7 +85,7 @@ static void radeon_gem_kunmap(struct dma_buf *dma_buf, unsigned long page_num, v
 
 }
 
-struct dma_buf_ops radeon_dmabuf_ops =  {
+const static struct dma_buf_ops radeon_dmabuf_ops =  {
        .map_dma_buf = radeon_gem_map_dma_buf,
        .unmap_dma_buf = radeon_gem_unmap_dma_buf,
        .release = radeon_gem_dmabuf_release,