struct nouveau_drm_tile *new_tile = NULL;
        int ret = 0;
 
-       ret = ttm_bo_wait(bo, ctx->interruptible, ctx->no_wait_gpu);
+       ret = ttm_bo_wait_ctx(bo, ctx);
        if (ret)
                return ret;
 
        }
 
        /* Fallback to software copy. */
-       ret = ttm_bo_wait(bo, ctx->interruptible, ctx->no_wait_gpu);
+       ret = ttm_bo_wait_ctx(bo, ctx);
        if (ret == 0)
                ret = ttm_bo_move_memcpy(bo, ctx, new_reg);
 
 
        struct ttm_resource *old_mem = &bo->mem;
        int ret;
 
-       ret = ttm_bo_wait(bo, ctx->interruptible, ctx->no_wait_gpu);
+       ret = ttm_bo_wait_ctx(bo, ctx);
        if (ret)
                return ret;
 
 
        struct ttm_resource *old_mem = &bo->mem;
        int r;
 
-       r = ttm_bo_wait(bo, ctx->interruptible, ctx->no_wait_gpu);
+       r = ttm_bo_wait_ctx(bo, ctx);
        if (r)
                return r;
 
 
        int ret;
 
        if (old_mem->mem_type != TTM_PL_SYSTEM) {
-               ret = ttm_bo_wait(bo, ctx->interruptible, ctx->no_wait_gpu);
+               ret = ttm_bo_wait_ctx(bo, ctx);
 
                if (unlikely(ret != 0)) {
                        if (ret != -ERESTARTSYS)
        unsigned long add = 0;
        int dir;
 
-       ret = ttm_bo_wait(bo, ctx->interruptible, ctx->no_wait_gpu);
+       ret = ttm_bo_wait_ctx(bo, ctx);
        if (ret)
                return ret;
 
 
  */
 int ttm_bo_wait(struct ttm_buffer_object *bo, bool interruptible, bool no_wait);
 
+static inline int ttm_bo_wait_ctx(struct ttm_buffer_object *bo, struct ttm_operation_ctx *ctx)
+{
+       return ttm_bo_wait(bo, ctx->interruptible, ctx->no_wait_gpu);
+}
+
 /**
  * ttm_bo_mem_compat - Check if proposed placement is compatible with a bo
  *