Skip to content

Commit 7604748

Browse files
amd-sukhatriChristianKoenigAMD
authored andcommitted
drm/ttm: fix the warning for hit_low and evict_low
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 <[email protected]> Cc: Tvrtko Ursulin <[email protected]> Signed-off-by: Sunil Khatri <[email protected]> Reviewed-by: Maarten Lankhorst <[email protected]> Signed-off-by: Christian König <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 759ee40 commit 7604748

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
@@ -1093,7 +1093,8 @@ struct ttm_bo_swapout_walk {
10931093
struct ttm_lru_walk walk;
10941094
/** @gfp_flags: The gfp flags to use for ttm_tt_swapout() */
10951095
gfp_t gfp_flags;
1096-
1096+
/** @hit_low: Whether we should attempt to swap BO's with low watermark threshold */
1097+
/** @evict_low: If we cannot swap a bo when @try_low is false (first pass) */
10971098
bool hit_low, evict_low;
10981099
};
10991100

0 commit comments

Comments
 (0)