[Intel-gfx] [RFC PATCH] drm/i915/gt: get_ctx_reg_count() can be static

kernel test robot lkp at intel.com
Tue Aug 31 04:03:51 UTC 2021


drivers/gpu/drm/i915/gt/intel_mocs.c:496:5: warning: symbol 'get_ctx_reg_count' 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_mocs.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/gt/intel_mocs.c b/drivers/gpu/drm/i915/gt/intel_mocs.c
index c52640523c218..728d0340cc622 100644
--- a/drivers/gpu/drm/i915/gt/intel_mocs.c
+++ b/drivers/gpu/drm/i915/gt/intel_mocs.c
@@ -493,7 +493,7 @@ static unsigned int get_mocs_settings(const struct drm_i915_private *i915,
 	return flags;
 }
 
-int get_ctx_reg_count(const struct drm_i915_aux_table *aux)
+static int get_ctx_reg_count(const struct drm_i915_aux_table *aux)
 {
 	int count = 0;
 


More information about the Intel-gfx mailing list