aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorRashika Kheria <rashika.kheria@gmail.com>2014-01-06 11:45:56 -0500
committerThomas Hellstrom <thellstrom@vmware.com>2014-01-08 07:24:14 -0500
commit52028704126b5597775cc788028385556af1f85c (patch)
tree6937e09930abd8b40f7dd5e3098e0fd14e269711 /drivers/gpu
parentdcbff15a601b544c61e5f33c83576b1bb89c2130 (diff)
drivers: gpu: Remove unused function in ttm_lock.c
Remove unused function ttm_write_lock_downgrade() from drm/ttm/ttm_lock.c. This eliminates the following warning in drm/ttm/ttm_lock.c: drivers/gpu/drm/ttm/ttm_lock.c:189:6: warning: no previous prototype for ‘ttm_write_lock_downgrade’ [-Wmissing-prototypes] Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org> Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/ttm/ttm_lock.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_lock.c b/drivers/gpu/drm/ttm/ttm_lock.c
index 3daa9a3930b8..6a954544727f 100644
--- a/drivers/gpu/drm/ttm/ttm_lock.c
+++ b/drivers/gpu/drm/ttm/ttm_lock.c
@@ -186,14 +186,6 @@ int ttm_write_lock(struct ttm_lock *lock, bool interruptible)
186} 186}
187EXPORT_SYMBOL(ttm_write_lock); 187EXPORT_SYMBOL(ttm_write_lock);
188 188
189void ttm_write_lock_downgrade(struct ttm_lock *lock)
190{
191 spin_lock(&lock->lock);
192 lock->rw = 1;
193 wake_up_all(&lock->queue);
194 spin_unlock(&lock->lock);
195}
196
197static int __ttm_vt_unlock(struct ttm_lock *lock) 189static int __ttm_vt_unlock(struct ttm_lock *lock)
198{ 190{
199 int ret = 0; 191 int ret = 0;