[RFC PATCH] drm/i915: dg2_async_flip_optimization() can be static

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



drivers/gpu/drm/i915/intel_pm.c:5500:6: warning: symbol 'dg2_async_flip_optimization' was not declared. Should it be static?

Reported-by: kernel test robot <lkp@xxxxxxxxx>
Signed-off-by: kernel test robot <lkp@xxxxxxxxx>
---
 intel_pm.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index 658a5dbb8fa4f..1d9880b9aa7dd 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -5497,9 +5497,9 @@ static int skl_wm_max_lines(struct drm_i915_private *dev_priv)
 		return 31;
 }
 
-bool dg2_async_flip_optimization(struct drm_i915_private *i915,
-				 const struct intel_crtc_state *crtc_state,
-				 const struct intel_plane *plane)
+static bool dg2_async_flip_optimization(struct drm_i915_private *i915,
+					const struct intel_crtc_state *crtc_state,
+					const struct intel_plane *plane)
 {
 	return DISPLAY_VER(i915) >= 13 &&
 	       crtc_state->uapi.async_flip &&



[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux