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

kernel test robot lkp at intel.com
Sat Jul 24 11:45:49 UTC 2021


drivers/gpu/drm/i915/gt/intel_context.c:17:19: warning: symbol 'slab_ce' 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>
---
 intel_context.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/gt/intel_context.c b/drivers/gpu/drm/i915/gt/intel_context.c
index 283382549a6fb..0ba49d74f94d6 100644
--- a/drivers/gpu/drm/i915/gt/intel_context.c
+++ b/drivers/gpu/drm/i915/gt/intel_context.c
@@ -14,7 +14,7 @@
 #include "intel_engine_pm.h"
 #include "intel_ring.h"
 
-struct kmem_cache *slab_ce;
+static struct kmem_cache *slab_ce;
 
 static struct intel_context *intel_context_alloc(void)
 {


More information about the Intel-gfx mailing list