aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRashika <rashika.kheria@gmail.com>2014-01-06 10:08:24 -0500
committerDave Airlie <airlied@redhat.com>2014-01-13 21:59:21 -0500
commitf242a64b4fec50167384ba9181398121fcafb489 (patch)
tree2e7a108a6b73e8aa0fa678586d4a85891f150d7f
parent080fd6b5038848f62eb595d84924fe17983b4a2e (diff)
drivers: gpu: Mark functions as static in mgag200_ttm.c
Mark functions mgag200_ttm_global_release(), mgag200_ttm_bo_is_mgag200_bo() and mgag200_ttm_tt_create() as static in drm/mgag200/mgag200_ttm.c because they are not used outside this file. This eliminates the following warning in drm/mgag200/mgag200_ttm.c: drivers/gpu/drm/mgag200/mgag200_ttm.c:84:1: warning: no previous prototype for ‘mgag200_ttm_global_release’ [-Wmissing-prototypes] drivers/gpu/drm/mgag200/mgag200_ttm.c:105:6: warning: no previous prototype for ‘mgag200_ttm_bo_is_mgag200_bo’ [-Wmissing-prototypes] drivers/gpu/drm/mgag200/mgag200_ttm.c:211:16: warning: no previous prototype for ‘mgag200_ttm_tt_create’ [-Wmissing-prototypes] Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org> Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r--drivers/gpu/drm/mgag200/mgag200_ttm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/mgag200/mgag200_ttm.c b/drivers/gpu/drm/mgag200/mgag200_ttm.c
index 07b192fe15c6..adb5166a5dfd 100644
--- a/drivers/gpu/drm/mgag200/mgag200_ttm.c
+++ b/drivers/gpu/drm/mgag200/mgag200_ttm.c
@@ -80,7 +80,7 @@ static int mgag200_ttm_global_init(struct mga_device *ast)
80 return 0; 80 return 0;
81} 81}
82 82
83void 83static void
84mgag200_ttm_global_release(struct mga_device *ast) 84mgag200_ttm_global_release(struct mga_device *ast)
85{ 85{
86 if (ast->ttm.mem_global_ref.release == NULL) 86 if (ast->ttm.mem_global_ref.release == NULL)
@@ -102,7 +102,7 @@ static void mgag200_bo_ttm_destroy(struct ttm_buffer_object *tbo)
102 kfree(bo); 102 kfree(bo);
103} 103}
104 104
105bool mgag200_ttm_bo_is_mgag200_bo(struct ttm_buffer_object *bo) 105static bool mgag200_ttm_bo_is_mgag200_bo(struct ttm_buffer_object *bo)
106{ 106{
107 if (bo->destroy == &mgag200_bo_ttm_destroy) 107 if (bo->destroy == &mgag200_bo_ttm_destroy)
108 return true; 108 return true;
@@ -208,7 +208,7 @@ static struct ttm_backend_func mgag200_tt_backend_func = {
208}; 208};
209 209
210 210
211struct ttm_tt *mgag200_ttm_tt_create(struct ttm_bo_device *bdev, 211static struct ttm_tt *mgag200_ttm_tt_create(struct ttm_bo_device *bdev,
212 unsigned long size, uint32_t page_flags, 212 unsigned long size, uint32_t page_flags,
213 struct page *dummy_read_page) 213 struct page *dummy_read_page)
214{ 214{