diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2014-11-04 08:14:28 -0500 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:12:01 -0400 |
commit | b3f575074b66e8af1a9943874f9782b793fa7edc (patch) | |
tree | c4aaa1defc512cf5a896edc25445f169de184ece /drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c | |
parent | 797e4dd319bd2b9e13ce0e44a3bbbb75e4820330 (diff) |
gpu: nvgpu: fix sparse warnings
Fix below sparse warnings :
warning: Using plain integer as NULL pointer
warning: symbol <variable/funcion> was not declared. Should it be static?
warning: Initializer entry defined twice
Also, remove dead functions
Bug 1573254
Change-Id: I29d71ecc01c841233cf6b26c9088ca8874773469
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/593363
Reviewed-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c index bddcf86e..746a2de3 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c | |||
@@ -53,8 +53,8 @@ static void add_wait_cmd(u32 *ptr, u32 id, u32 thresh) | |||
53 | ptr[3] = (id << 8) | 0x10; | 53 | ptr[3] = (id << 8) | 0x10; |
54 | } | 54 | } |
55 | 55 | ||
56 | int gk20a_channel_syncpt_wait_syncpt(struct gk20a_channel_sync *s, u32 id, | 56 | static int gk20a_channel_syncpt_wait_syncpt(struct gk20a_channel_sync *s, |
57 | u32 thresh, struct priv_cmd_entry **entry, | 57 | u32 id, u32 thresh, struct priv_cmd_entry **entry, |
58 | struct gk20a_fence **fence) | 58 | struct gk20a_fence **fence) |
59 | { | 59 | { |
60 | struct gk20a_channel_syncpt *sp = | 60 | struct gk20a_channel_syncpt *sp = |
@@ -84,7 +84,7 @@ int gk20a_channel_syncpt_wait_syncpt(struct gk20a_channel_sync *s, u32 id, | |||
84 | return 0; | 84 | return 0; |
85 | } | 85 | } |
86 | 86 | ||
87 | int gk20a_channel_syncpt_wait_fd(struct gk20a_channel_sync *s, int fd, | 87 | static int gk20a_channel_syncpt_wait_fd(struct gk20a_channel_sync *s, int fd, |
88 | struct priv_cmd_entry **entry, | 88 | struct priv_cmd_entry **entry, |
89 | struct gk20a_fence **fence) | 89 | struct gk20a_fence **fence) |
90 | { | 90 | { |
@@ -221,7 +221,7 @@ static int __gk20a_channel_syncpt_incr(struct gk20a_channel_sync *s, | |||
221 | return 0; | 221 | return 0; |
222 | } | 222 | } |
223 | 223 | ||
224 | int gk20a_channel_syncpt_incr_wfi(struct gk20a_channel_sync *s, | 224 | static int gk20a_channel_syncpt_incr_wfi(struct gk20a_channel_sync *s, |
225 | struct priv_cmd_entry **entry, | 225 | struct priv_cmd_entry **entry, |
226 | struct gk20a_fence **fence) | 226 | struct gk20a_fence **fence) |
227 | { | 227 | { |
@@ -231,7 +231,7 @@ int gk20a_channel_syncpt_incr_wfi(struct gk20a_channel_sync *s, | |||
231 | entry, fence); | 231 | entry, fence); |
232 | } | 232 | } |
233 | 233 | ||
234 | int gk20a_channel_syncpt_incr(struct gk20a_channel_sync *s, | 234 | static int gk20a_channel_syncpt_incr(struct gk20a_channel_sync *s, |
235 | struct priv_cmd_entry **entry, | 235 | struct priv_cmd_entry **entry, |
236 | struct gk20a_fence **fence) | 236 | struct gk20a_fence **fence) |
237 | { | 237 | { |
@@ -243,7 +243,7 @@ int gk20a_channel_syncpt_incr(struct gk20a_channel_sync *s, | |||
243 | entry, fence); | 243 | entry, fence); |
244 | } | 244 | } |
245 | 245 | ||
246 | int gk20a_channel_syncpt_incr_user(struct gk20a_channel_sync *s, | 246 | static int gk20a_channel_syncpt_incr_user(struct gk20a_channel_sync *s, |
247 | int wait_fence_fd, | 247 | int wait_fence_fd, |
248 | struct priv_cmd_entry **entry, | 248 | struct priv_cmd_entry **entry, |
249 | struct gk20a_fence **fence, | 249 | struct gk20a_fence **fence, |
@@ -257,7 +257,7 @@ int gk20a_channel_syncpt_incr_user(struct gk20a_channel_sync *s, | |||
257 | entry, fence); | 257 | entry, fence); |
258 | } | 258 | } |
259 | 259 | ||
260 | void gk20a_channel_syncpt_set_min_eq_max(struct gk20a_channel_sync *s) | 260 | static void gk20a_channel_syncpt_set_min_eq_max(struct gk20a_channel_sync *s) |
261 | { | 261 | { |
262 | struct gk20a_channel_syncpt *sp = | 262 | struct gk20a_channel_syncpt *sp = |
263 | container_of(s, struct gk20a_channel_syncpt, ops); | 263 | container_of(s, struct gk20a_channel_syncpt, ops); |