[Intel-gfx] [RFC PATCH] drm/i915: slab_objects can be static

kernel test robot lkp at intel.com
Sat Jul 24 18:23:06 UTC 2021


drivers/gpu/drm/i915/gem/i915_gem_object.c:36:19: warning: symbol 'slab_objects' was not declared. Should it be static?

Reported-by: kernel test robot <lkp at intel.com>
Signed-off-by: kernel test robot <lkp at intel.com>
---
 i915_gem_object.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/gem/i915_gem_object.c b/drivers/gpu/drm/i915/gem/i915_gem_object.c
index 53156250d2833..48f136230396e 100644
--- a/drivers/gpu/drm/i915/gem/i915_gem_object.c
+++ b/drivers/gpu/drm/i915/gem/i915_gem_object.c
@@ -33,7 +33,7 @@
 #include "i915_memcpy.h"
 #include "i915_trace.h"
 
-struct kmem_cache *slab_objects;
+static struct kmem_cache *slab_objects;
 
 static const struct drm_gem_object_funcs i915_gem_object_funcs;
 


More information about the Intel-gfx mailing list