drm2: whack set-but-not-used warns

This commit is contained in:
Mateusz Guzik 2023-09-18 21:11:26 +00:00
parent 180c02405b
commit c9130a46bc
3 changed files with 3 additions and 3 deletions

View file

@ -536,7 +536,7 @@ void
drm_event_wakeup(struct drm_pending_event *e)
{
struct drm_file *file_priv;
struct drm_device *dev;
struct drm_device *dev __diagused;
file_priv = e->file_priv;
dev = file_priv->minor->dev;

View file

@ -245,7 +245,7 @@ static void ttm_vt_lock_remove(struct ttm_base_object **p_base)
{
struct ttm_base_object *base = *p_base;
struct ttm_lock *lock = container_of(base, struct ttm_lock, base);
int ret;
int ret __diagused;
*p_base = NULL;
ret = __ttm_vt_unlock(lock);

View file

@ -243,7 +243,7 @@ void ttm_dma_tt_fini(struct ttm_dma_tt *ttm_dma)
void ttm_tt_unbind(struct ttm_tt *ttm)
{
int ret;
int ret __diagused;
if (ttm->state == tt_bound) {
ret = ttm->func->unbind(ttm);