diff options
author | Amit Sharma <amisharma@nvidia.com> | 2014-09-30 09:12:11 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:11:46 -0400 |
commit | 7c35b023a737a1765fc64af2427767e4235be793 (patch) | |
tree | 9421185575ce8377426c510422d7f48b3e7b3e9e /drivers/gpu/nvgpu/gk20a | |
parent | 0858058e50891e81b2f5d50d73951f47eee101e7 (diff) |
gpu: nvgpu: gk20a: Fix non static symbol
Fixed sparse non static symbol warning by making the following symbol 'static':
- to_gk20a_sync_pt
- to_gk20a_timeline
Bug 200032218
Change-Id: Ie0310116aa1500ae8e4838b8a9ad4943a61cfc24
Signed-off-by: Amit Sharma <amisharma@nvidia.com>
Reviewed-on: http://git-master/r/552052
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/sync_gk20a.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/sync_gk20a.c b/drivers/gpu/nvgpu/gk20a/sync_gk20a.c index 9f6f4217..46d0addf 100644 --- a/drivers/gpu/nvgpu/gk20a/sync_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/sync_gk20a.c | |||
@@ -98,13 +98,13 @@ static int __gk20a_sync_pt_compare_ref( | |||
98 | return 0; | 98 | return 0; |
99 | } | 99 | } |
100 | 100 | ||
101 | struct gk20a_sync_pt *to_gk20a_sync_pt(struct sync_pt *pt) | 101 | static struct gk20a_sync_pt *to_gk20a_sync_pt(struct sync_pt *pt) |
102 | { | 102 | { |
103 | struct gk20a_sync_pt_inst *pti = | 103 | struct gk20a_sync_pt_inst *pti = |
104 | container_of(pt, struct gk20a_sync_pt_inst, pt); | 104 | container_of(pt, struct gk20a_sync_pt_inst, pt); |
105 | return pti->shared; | 105 | return pti->shared; |
106 | } | 106 | } |
107 | struct gk20a_sync_timeline *to_gk20a_timeline(struct sync_timeline *obj) | 107 | static struct gk20a_sync_timeline *to_gk20a_timeline(struct sync_timeline *obj) |
108 | { | 108 | { |
109 | if (WARN_ON(obj->ops != &gk20a_sync_timeline_ops)) | 109 | if (WARN_ON(obj->ops != &gk20a_sync_timeline_ops)) |
110 | return NULL; | 110 | return NULL; |