drm/nouveau:Fix gcc '-Wunused-but-set-variable' warnings:
Subsystems (3)
PATCH 1/1 drm/nouveau:Fix gcc '-Wunused-but-set-variable' warnings:
drivers/gpu/drm/nouveau/nouveau_bo.c: In function 'nouveau_ttm_tt_populate':drivers/gpu/drm/nouveau/nouveau_bo.c:1251:17: warning: variable 'dev' set but not used [-Wunused-but-set-variable] drivers/gpu/drm/nouveau/nouveau_bo.c: In function 'nouveau_ttm_tt_unpopulate':drivers/gpu/drm/nouveau/nouveau_bo.c:1274:17: warning: variable 'dev' set but not used [-Wunused-but-set-variable]
Signed-off-by Kai Song <[email protected]>
--- drivers/gpu/drm/nouveau/nouveau_bo.c | 4 ---- 1 file changed, 4 deletions(-)
drivers/gpu/drm/nouveau/nouveau_bo.c +0 -4
@@ -1249,7 +1249,6 @@ nouveau_ttm_tt_populate(struct ttm_device *bdev, {struct ttm_tt *ttm_dma = (void *)ttm;struct nouveau_drm *drm; -struct device *dev;bool slave = !!(ttm->page_flags &TTM_PAGE_FLAG_SG );if (ttm_tt_is_populated (ttm))
@@ -1262,7 +1261,6 @@ nouveau_ttm_tt_populate(struct ttm_device *bdev, } drm =nouveau_bdev (bdev); - dev = drm->dev->dev;return ttm_pool_alloc (&drm->ttm.bdev.pool, ttm, ctx); }
@@ -1272,7 +1270,6 @@ nouveau_ttm_tt_unpopulate(struct ttm_device *bdev, struct ttm_tt *ttm) {struct nouveau_drm *drm; -struct device *dev;bool slave = !!(ttm->page_flags &TTM_PAGE_FLAG_SG );if (slave)
@@ -1281,7 +1278,6 @@ nouveau_ttm_tt_unpopulate(struct ttm_device *bdev,nouveau_ttm_tt_unbind (bdev, ttm); drm =nouveau_bdev (bdev); - dev = drm->dev->dev;return ttm_pool_free (&drm->ttm.bdev.pool, ttm); }
Signature · 1 line
2.27.0