Skip to content

Commit 758e97c

Browse files
amd-sukhatriSasha Levin
authored andcommitted
drm/ttm: fix the warning for hit_low and evict_low
[ Upstream commit 7604748 ] fix the below warning messages: ttm/ttm_bo.c:1098: warning: Function parameter or struct member 'hit_low' not described in 'ttm_bo_swapout_walk' ttm/ttm_bo.c:1098: warning: Function parameter or struct member 'evict_low' not described in 'ttm_bo_swapout_walk' Cc: Maarten Lankhorst <dev@lankhorst.se> Cc: Tvrtko Ursulin <tvrtko.ursulin@igalia.com> Signed-off-by: Sunil Khatri <sunil.khatri@amd.com> Reviewed-by: Maarten Lankhorst <dev@lankhorst.se> Signed-off-by: Christian König <christian.koenig@amd.com> Link: https://lore.kernel.org/r/20250423042442.762108-1-sunil.khatri@amd.com Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent c32c773 commit 758e97c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/ttm/ttm_bo.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,8 @@ struct ttm_bo_swapout_walk {
10921092
struct ttm_lru_walk walk;
10931093
/** @gfp_flags: The gfp flags to use for ttm_tt_swapout() */
10941094
gfp_t gfp_flags;
1095-
1095+
/** @hit_low: Whether we should attempt to swap BO's with low watermark threshold */
1096+
/** @evict_low: If we cannot swap a bo when @try_low is false (first pass) */
10961097
bool hit_low, evict_low;
10971098
};
10981099

0 commit comments

Comments
 (0)