diff options
author | Rashika Kheria <rashika.kheria@gmail.com> | 2014-01-06 11:50:21 -0500 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2014-01-08 07:44:26 -0500 |
commit | 8227622f61bc69e4288d60e2be5194d6c9feb593 (patch) | |
tree | 63c886b1d632ec1c34ea873877df3df957bbc937 /drivers/gpu/drm | |
parent | 847c59648c3d1e2aacd5ed0161236042e9bcfe50 (diff) |
drivers: gpu: Mark functions as static in vmwgfx_buffer.c
Mark functions as static because they are not used outside the file
drm/vmwgfx/vmwgfx_buffer.c.
This eliminates the following warnings in drm/vmwgfx/vmwgfx_buffer.c:
drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c:520:16: warning: no previous prototype for ‘vmw_ttm_tt_create’ [-Wmissing-prototypes]
drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c:549:5: warning: no previous prototype for ‘vmw_invalidate_caches’ [-Wmissing-prototypes]
drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c:554:5: warning: no previous prototype for ‘vmw_init_mem_type’ [-Wmissing-prototypes]
drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c:592:6: warning: no previous prototype for ‘vmw_evict_flags’ [-Wmissing-prototypes]
Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c b/drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c index 0489c6152482..2d61a2d86bd7 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c | |||
@@ -517,7 +517,7 @@ static struct ttm_backend_func vmw_ttm_func = { | |||
517 | .destroy = vmw_ttm_destroy, | 517 | .destroy = vmw_ttm_destroy, |
518 | }; | 518 | }; |
519 | 519 | ||
520 | struct ttm_tt *vmw_ttm_tt_create(struct ttm_bo_device *bdev, | 520 | static struct ttm_tt *vmw_ttm_tt_create(struct ttm_bo_device *bdev, |
521 | unsigned long size, uint32_t page_flags, | 521 | unsigned long size, uint32_t page_flags, |
522 | struct page *dummy_read_page) | 522 | struct page *dummy_read_page) |
523 | { | 523 | { |
@@ -546,12 +546,12 @@ out_no_init: | |||
546 | return NULL; | 546 | return NULL; |
547 | } | 547 | } |
548 | 548 | ||
549 | int vmw_invalidate_caches(struct ttm_bo_device *bdev, uint32_t flags) | 549 | static int vmw_invalidate_caches(struct ttm_bo_device *bdev, uint32_t flags) |
550 | { | 550 | { |
551 | return 0; | 551 | return 0; |
552 | } | 552 | } |
553 | 553 | ||
554 | int vmw_init_mem_type(struct ttm_bo_device *bdev, uint32_t type, | 554 | static int vmw_init_mem_type(struct ttm_bo_device *bdev, uint32_t type, |
555 | struct ttm_mem_type_manager *man) | 555 | struct ttm_mem_type_manager *man) |
556 | { | 556 | { |
557 | switch (type) { | 557 | switch (type) { |
@@ -589,7 +589,7 @@ int vmw_init_mem_type(struct ttm_bo_device *bdev, uint32_t type, | |||
589 | return 0; | 589 | return 0; |
590 | } | 590 | } |
591 | 591 | ||
592 | void vmw_evict_flags(struct ttm_buffer_object *bo, | 592 | static void vmw_evict_flags(struct ttm_buffer_object *bo, |
593 | struct ttm_placement *placement) | 593 | struct ttm_placement *placement) |
594 | { | 594 | { |
595 | *placement = vmw_sys_placement; | 595 | *placement = vmw_sys_placement; |