]> www.infradead.org Git - nvme.git/commitdiff
drm/amd/display: Remove unused function reverse_planes_order
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Mon, 24 Jun 2024 02:22:25 +0000 (10:22 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Jun 2024 21:10:39 +0000 (17:10 -0400)
The function are defined in the amdgpu_dm.c file, but not called
anywhere, so delete the unused function.

drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:371:20: warning: unused function 'reverse_planes_order'.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=9402
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index 6e757ee2d74bb39fde1f59bde844f8966f00f180..d743e27053994d460a2e46c3659d02f2b04f1ea8 100644 (file)
@@ -368,15 +368,6 @@ static inline bool is_dc_timing_adjust_needed(struct dm_crtc_state *old_state,
                return false;
 }
 
-static inline void reverse_planes_order(struct dc_surface_update *array_of_surface_update,
-                                       int planes_count)
-{
-       int i, j;
-
-       for (i = 0, j = planes_count - 1; i < j; i++, j--)
-               swap(array_of_surface_update[i], array_of_surface_update[j]);
-}
-
 /*
  * DC will program planes with their z-order determined by their ordering
  * in the dc_surface_updates array. This comparator is used to sort them