projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca319ee
)
drm/i915/ttm: fix static warning
author
Matthew Auld
<matthew.auld@intel.com>
Wed, 23 Jun 2021 14:34:11 +0000
(15:34 +0100)
committer
Matthew Auld
<matthew.auld@intel.com>
Thu, 24 Jun 2021 09:00:02 +0000
(10:00 +0100)
warning: symbol 'i915_gem_ttm_obj_ops' was not declared. Should it be static?
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Thomas Hellström <thellstrom@linux.intel.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20210623143411.293630-1-matthew.auld@intel.com
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/gem/i915_gem_ttm.c
b/drivers/gpu/drm/i915/gem/i915_gem_ttm.c
index c5deb8b7227c4e6fd53b63c7daaf64ae828f17ca..cf5540c1537bf51849e17e4ca237d3b77b9ad5e8 100644
(file)
--- a/
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
+++ b/
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
@@
-730,7
+730,7
@@
static u64 i915_ttm_mmap_offset(struct drm_i915_gem_object *obj)
return drm_vma_node_offset_addr(&obj->base.vma_node);
}
-const struct drm_i915_gem_object_ops i915_gem_ttm_obj_ops = {
+
static
const struct drm_i915_gem_object_ops i915_gem_ttm_obj_ops = {
.name = "i915_gem_object_ttm",
.flags = I915_GEM_OBJECT_HAS_IOMEM,