drm/vmwgfx: dma-buf: Constify ttm_place structures.
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Mon, 17 Jul 2017 14:39:53 +0000 (07:39 -0700)
committerSinclair Yeh <syeh@vmware.com>
Tue, 18 Jul 2017 06:40:57 +0000 (23:40 -0700)
commit9036f8c7cf42af2c0d50e8bbc493323239a30423
tree7125a339aaed2d21191c9a36923e27111e40fa3c
parent8bd6287ffdb95a623bdbad37e49d1c12c60970ed
drm/vmwgfx: dma-buf: Constify ttm_place structures.

ttm_place are not supposed to change at runtime. All functions
working with ttm_place provided by <drm/ttm/ttm_placement.h> work
with const ttm_place. So mark the non-const structs as const.

File size before:
  text   data    bss     dec     hex filename
  3172    796     16    3984     f90 drivers/gpu/drm/vmwgfx/vmwgfx_buffer.o

File size After adding 'const':
  text   data    bss     dec     hex filename
  3456    512     16    3984     f90 drivers/gpu/drm/vmwgfx/vmwgfx_buffer.o

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c