diff options
author | Dave Airlie <airlied@redhat.com> | 2012-05-23 09:09:32 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-05-23 09:09:32 -0400 |
commit | 6a101cb209e70308f2e1cb63820cd14a34058e37 (patch) | |
tree | 8d9ec69940251730bcd022f41db2e74c751b33d8 /drivers/gpu/drm | |
parent | 5288b7b205ccd59ad40ef8ec270302bf94ac4697 (diff) |
drm/i915: make some dmabuf things static
these functions and the table can all be static/static const.
Reported-by: wfg@linux.intel.com
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem_dmabuf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_dmabuf.c b/drivers/gpu/drm/i915/i915_gem_dmabuf.c index 4f8e142604ab..8e269178d6a5 100644 --- a/drivers/gpu/drm/i915/i915_gem_dmabuf.c +++ b/drivers/gpu/drm/i915/i915_gem_dmabuf.c | |||
@@ -27,7 +27,7 @@ | |||
27 | #include "i915_drv.h" | 27 | #include "i915_drv.h" |
28 | #include <linux/dma-buf.h> | 28 | #include <linux/dma-buf.h> |
29 | 29 | ||
30 | struct sg_table *i915_gem_map_dma_buf(struct dma_buf_attachment *attachment, | 30 | static struct sg_table *i915_gem_map_dma_buf(struct dma_buf_attachment *attachment, |
31 | enum dma_data_direction dir) | 31 | enum dma_data_direction dir) |
32 | { | 32 | { |
33 | struct drm_i915_gem_object *obj = attachment->dmabuf->priv; | 33 | struct drm_i915_gem_object *obj = attachment->dmabuf->priv; |
@@ -55,7 +55,7 @@ out: | |||
55 | return sg; | 55 | return sg; |
56 | } | 56 | } |
57 | 57 | ||
58 | void i915_gem_unmap_dma_buf(struct dma_buf_attachment *attachment, | 58 | static void i915_gem_unmap_dma_buf(struct dma_buf_attachment *attachment, |
59 | struct sg_table *sg, enum dma_data_direction dir) | 59 | struct sg_table *sg, enum dma_data_direction dir) |
60 | { | 60 | { |
61 | dma_unmap_sg(attachment->dev, sg->sgl, sg->nents, dir); | 61 | dma_unmap_sg(attachment->dev, sg->sgl, sg->nents, dir); |
@@ -63,7 +63,7 @@ void i915_gem_unmap_dma_buf(struct dma_buf_attachment *attachment, | |||
63 | kfree(sg); | 63 | kfree(sg); |
64 | } | 64 | } |
65 | 65 | ||
66 | void i915_gem_dmabuf_release(struct dma_buf *dma_buf) | 66 | static void i915_gem_dmabuf_release(struct dma_buf *dma_buf) |
67 | { | 67 | { |
68 | struct drm_i915_gem_object *obj = dma_buf->priv; | 68 | struct drm_i915_gem_object *obj = dma_buf->priv; |
69 | 69 | ||
@@ -93,7 +93,7 @@ static void i915_gem_dmabuf_kunmap(struct dma_buf *dma_buf, unsigned long page_n | |||
93 | 93 | ||
94 | } | 94 | } |
95 | 95 | ||
96 | struct dma_buf_ops i915_dmabuf_ops = { | 96 | static const struct dma_buf_ops i915_dmabuf_ops = { |
97 | .map_dma_buf = i915_gem_map_dma_buf, | 97 | .map_dma_buf = i915_gem_map_dma_buf, |
98 | .unmap_dma_buf = i915_gem_unmap_dma_buf, | 98 | .unmap_dma_buf = i915_gem_unmap_dma_buf, |
99 | .release = i915_gem_dmabuf_release, | 99 | .release = i915_gem_dmabuf_release, |