aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-07-21 07:15:51 -0400
committerDave Airlie <airlied@redhat.com>2014-07-21 20:58:21 -0400
commitee3939e07920f4a5405aba5f40529fd0fdd1dfb5 (patch)
tree911e7463ed10512cb32346fd4004c48164910eb3 /drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
parentd3cf40ed7fa1b56bd53d3b52eddf44d0e3c3ec20 (diff)
drm/ttm: Fix a few sparse warnings
The final parameter to ttm_bo_reserve() is a pointer, therefore callers should use NULL instead of 0. Fixes a bunch of sparse warnings of this type: warning: Using plain integer as NULL pointer Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_resource.c')
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_resource.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c b/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
index 01d68f0a69dc..a432c0db257c 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
@@ -127,7 +127,7 @@ static void vmw_resource_release(struct kref *kref)
127 if (res->backup) { 127 if (res->backup) {
128 struct ttm_buffer_object *bo = &res->backup->base; 128 struct ttm_buffer_object *bo = &res->backup->base;
129 129
130 ttm_bo_reserve(bo, false, false, false, 0); 130 ttm_bo_reserve(bo, false, false, false, NULL);
131 if (!list_empty(&res->mob_head) && 131 if (!list_empty(&res->mob_head) &&
132 res->func->unbind != NULL) { 132 res->func->unbind != NULL) {
133 struct ttm_validate_buffer val_buf; 133 struct ttm_validate_buffer val_buf;