Skip to content

Commit ec731e5

Browse files
committed
drm/ttm: ttm_bo_swapout_all doesn't use it's argument.
Just drop the argument from this. This does ask the question if this is the function vmwgfx should be using or should it be doing an evict all like the other drivers. Reviewed-by: Christian König <[email protected]> Reviewed-by: Zack Rusin <[email protected]> Signed-off-by: Dave Airlie <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 9d66a3e commit ec731e5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

drivers/gpu/drm/ttm/ttm_bo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1838,7 +1838,7 @@ int ttm_bo_swapout(struct ttm_bo_global *glob, struct ttm_operation_ctx *ctx)
18381838
}
18391839
EXPORT_SYMBOL(ttm_bo_swapout);
18401840

1841-
void ttm_bo_swapout_all(struct ttm_bo_device *bdev)
1841+
void ttm_bo_swapout_all(void)
18421842
{
18431843
struct ttm_operation_ctx ctx = {
18441844
.interruptible = false,

drivers/gpu/drm/vmwgfx/vmwgfx_drv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1352,7 +1352,7 @@ static int vmw_pm_freeze(struct device *kdev)
13521352
vmw_execbuf_release_pinned_bo(dev_priv);
13531353
vmw_resource_evict_all(dev_priv);
13541354
vmw_release_device_early(dev_priv);
1355-
ttm_bo_swapout_all(&dev_priv->bdev);
1355+
ttm_bo_swapout_all();
13561356
if (dev_priv->enable_fb)
13571357
vmw_fifo_resource_dec(dev_priv);
13581358
if (atomic_read(&dev_priv->num_fifo_resources) != 0) {

include/drm/ttm/ttm_bo_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ ssize_t ttm_bo_io(struct ttm_bo_device *bdev, struct file *filp,
692692

693693
int ttm_bo_swapout(struct ttm_bo_global *glob,
694694
struct ttm_operation_ctx *ctx);
695-
void ttm_bo_swapout_all(struct ttm_bo_device *bdev);
695+
void ttm_bo_swapout_all(void);
696696

697697
/**
698698
* ttm_bo_uses_embedded_gem_object - check if the given bo uses the

0 commit comments

Comments
 (0)