From: Dave Airlie Date: Wed, 23 May 2012 13:10:27 +0000 (+0100) Subject: drm/nouveau/radeon: add static const to the dma-buf ops. X-Git-Tag: v3.5-rc1~100^2~1 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=41ceeeb25d5be06660a040e2fc99d6405dfc07f8;p=linux.git drm/nouveau/radeon: add static const to the dma-buf ops. Reported-by: wfg@linux.intel.com Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/nouveau/nouveau_prime.c b/drivers/gpu/drm/nouveau/nouveau_prime.c index ed6b8465260a..c58aab7370c5 100644 --- a/drivers/gpu/drm/nouveau/nouveau_prime.c +++ b/drivers/gpu/drm/nouveau/nouveau_prime.c @@ -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, diff --git a/drivers/gpu/drm/radeon/radeon_prime.c b/drivers/gpu/drm/radeon/radeon_prime.c index 24f51753c9aa..b8f835d8ecb4 100644 --- a/drivers/gpu/drm/radeon/radeon_prime.c +++ b/drivers/gpu/drm/radeon/radeon_prime.c @@ -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,