From b3f575074b66e8af1a9943874f9782b793fa7edc Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Tue, 4 Nov 2014 18:44:28 +0530 Subject: gpu: nvgpu: fix sparse warnings Fix below sparse warnings : warning: Using plain integer as NULL pointer warning: symbol 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 Reviewed-on: http://git-master/r/593363 Reviewed-by: Amit Sharma (SW-TEGRA) Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sachin Nikam --- drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c') 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) ptr[3] = (id << 8) | 0x10; } -int gk20a_channel_syncpt_wait_syncpt(struct gk20a_channel_sync *s, u32 id, - u32 thresh, struct priv_cmd_entry **entry, +static int gk20a_channel_syncpt_wait_syncpt(struct gk20a_channel_sync *s, + u32 id, u32 thresh, struct priv_cmd_entry **entry, struct gk20a_fence **fence) { struct gk20a_channel_syncpt *sp = @@ -84,7 +84,7 @@ int gk20a_channel_syncpt_wait_syncpt(struct gk20a_channel_sync *s, u32 id, return 0; } -int gk20a_channel_syncpt_wait_fd(struct gk20a_channel_sync *s, int fd, +static int gk20a_channel_syncpt_wait_fd(struct gk20a_channel_sync *s, int fd, struct priv_cmd_entry **entry, struct gk20a_fence **fence) { @@ -221,7 +221,7 @@ static int __gk20a_channel_syncpt_incr(struct gk20a_channel_sync *s, return 0; } -int gk20a_channel_syncpt_incr_wfi(struct gk20a_channel_sync *s, +static int gk20a_channel_syncpt_incr_wfi(struct gk20a_channel_sync *s, struct priv_cmd_entry **entry, struct gk20a_fence **fence) { @@ -231,7 +231,7 @@ int gk20a_channel_syncpt_incr_wfi(struct gk20a_channel_sync *s, entry, fence); } -int gk20a_channel_syncpt_incr(struct gk20a_channel_sync *s, +static int gk20a_channel_syncpt_incr(struct gk20a_channel_sync *s, struct priv_cmd_entry **entry, struct gk20a_fence **fence) { @@ -243,7 +243,7 @@ int gk20a_channel_syncpt_incr(struct gk20a_channel_sync *s, entry, fence); } -int gk20a_channel_syncpt_incr_user(struct gk20a_channel_sync *s, +static int gk20a_channel_syncpt_incr_user(struct gk20a_channel_sync *s, int wait_fence_fd, struct priv_cmd_entry **entry, struct gk20a_fence **fence, @@ -257,7 +257,7 @@ int gk20a_channel_syncpt_incr_user(struct gk20a_channel_sync *s, entry, fence); } -void gk20a_channel_syncpt_set_min_eq_max(struct gk20a_channel_sync *s) +static void gk20a_channel_syncpt_set_min_eq_max(struct gk20a_channel_sync *s) { struct gk20a_channel_syncpt *sp = container_of(s, struct gk20a_channel_syncpt, ops); -- cgit v1.2.2