[Intel-gfx] [RFC PATCH] drm/i915: slab_requests can be static
kernel test robot
lkp at intel.com
Sat Jul 24 21:58:16 UTC 2021
drivers/gpu/drm/i915/i915_request.c:54:19: warning: symbol 'slab_requests' was not declared. Should it be static?
drivers/gpu/drm/i915/i915_request.c:55:19: warning: symbol 'slab_execute_cbs' 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_request.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/i915_request.c b/drivers/gpu/drm/i915/i915_request.c
index 69152369ea000..3dd759be3c289 100644
--- a/drivers/gpu/drm/i915/i915_request.c
+++ b/drivers/gpu/drm/i915/i915_request.c
@@ -51,8 +51,8 @@ struct execute_cb {
struct i915_request *signal;
};
-struct kmem_cache *slab_requests;
-struct kmem_cache *slab_execute_cbs;
+static struct kmem_cache *slab_requests;
+static struct kmem_cache *slab_execute_cbs;
static const char *i915_fence_get_driver_name(struct dma_fence *fence)
{
More information about the Intel-gfx
mailing list