]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: Fix a few sparse warnings
authorThierry Reding <treding@nvidia.com>
Mon, 21 Jul 2014 11:15:51 +0000 (13:15 +0200)
committerDave Airlie <airlied@redhat.com>
Tue, 22 Jul 2014 00:58:21 +0000 (10:58 +1000)
commit89aa32ece0d845dc29d73e1c2064cd8d64680f45
tree911e7463ed10512cb32346fd4004c48164910eb3
parent64be98f36fee71679f15ed60297bcb93d80eb5e6
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>
12 files changed:
drivers/gpu/drm/ast/ast_drv.h
drivers/gpu/drm/bochs/bochs_fbdev.c
drivers/gpu/drm/bochs/bochs_kms.c
drivers/gpu/drm/cirrus/cirrus_drv.h
drivers/gpu/drm/mgag200/mgag200_drv.h
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/nouveau/nouveau_gem.c
drivers/gpu/drm/qxl/qxl_object.h
drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
drivers/gpu/drm/vmwgfx/vmwgfx_resource.c