drm/ttm: check the return value of register_shrinker
authorRoger He <Hongbo.He@amd.com>
Thu, 11 Jan 2018 04:57:58 +0000 (12:57 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 16 Jan 2018 20:35:26 +0000 (15:35 -0500)
commite2721595e4c3d8b63dcd85bc99ad1ea4821a8d88
tree72afc2bf1606c501c5c372e71516773b562fa0d5
parentc8c99b81c553f8c19696cd81d96635d5c6ccc8ec
drm/ttm: check the return value of register_shrinker

This fixes the build warning:
"ignoring return value of 'register_shrinker', declared with
attribute warn_unused_result [-Wunused-result]"

Signed-off-by: Roger He <Hongbo.He@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_page_alloc.c
drivers/gpu/drm/ttm/ttm_page_alloc_dma.c