Skip to contentSkip to conversation

drm/ttm: Fix unused variable warning

PATCH Kent Russell 2 participants 3 messages Feb 3, 2017 2 messages not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

This cleans up a remnant from Christian's patch (drm/ttm: revert "add optional LRU removal callback v2")

Kent

Quoted 1 line

From dfdf89a8dff0e378db6fa9578f75b02eec02ca0e Mon Sep 17 00:00:00 2001

From: Kent Russell <[email protected]>
Date: Tue, 31 Jan 2017 06:44:10 -0500
Subject: [PATCH] drm/ttm: Fix unused variable warning

Remove an unused variable in ttm_bo

---
 drivers/gpu/drm/ttm/ttm_bo.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/ttm/ttm_bo.c +0 -1
index dfaeac4..bdb5812 100644
@@ -230,7 +230,6 @@ EXPORT_SYMBOL(ttm_bo_del_sub_from_lru);
 
 void ttm_bo_move_to_lru_tail(struct ttm_buffer_object *bo)
 {
-	struct ttm_bo_device *bdev = bo->bdev;
 	int put_count = 0;
 
 	lockdep_assert_held(&bo->resv->lock.base);
Signature · 1 line
2.7.4

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 124f223e-07df-197e-6126-8787c8b06406-5C7GfCeVMHo@public.gmane.org

#2 lore raw

This cleans up a remnant from Christian's patch (drm/ttm: revert "add optional LRU removal callback v2")

Kent

Quoted 1 line

From dfdf89a8dff0e378db6fa9578f75b02eec02ca0e Mon Sep 17 00:00:00 2001

From: Kent Russell <[email protected]>
Date: Tue, 31 Jan 2017 06:44:10 -0500
Subject: [PATCH] drm/ttm: Fix unused variable warning

Remove an unused variable in ttm_bo

---
 drivers/gpu/drm/ttm/ttm_bo.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/ttm/ttm_bo.c +0 -1
index dfaeac4..bdb5812 100644
@@ -230,7 +230,6 @@ EXPORT_SYMBOL(ttm_bo_del_sub_from_lru);
 
 void ttm_bo_move_to_lru_tail(struct ttm_buffer_object *bo)
 {
-	struct ttm_bo_device *bdev = bo->bdev;
 	int put_count = 0;
 
 	lockdep_assert_held(&bo->resv->lock.base);
Signature · 1 line
2.7.4

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): bf0f349e-adde-d20c-cfdc-ddf500c8df0d-5C7GfCeVMHo@public.gmane.org

Reviewed-by
#4 lore raw
Quoted 5 lines · Kent Russell

This cleans up a remnant from Christian's patch (drm/ttm: revert "add optional LRU removal callback v2")

Kent

FWIW, I already squashed the same fix into the patch when it went upstream. Feel free to apply to the internal trees however.

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx