gpu: nvgpu: change return type of resume_all_serviceable_ch

- nvgpu_channel_resume_all_serviceable_ch is always returning 0. So,
it is safe to change return type of this function to void.
- This is required to fix MISRA violation: MISRA C-2012 Rule 17.7:
The value returned by a function having non-void return shall be
used.

JIRA NVGPU-3140

Change-Id: I12930ddb21b506266664aac8905326204e9483eb
Signed-off-by: Vaibhav Kachore <vkachore@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2106989
GVS: Gerrit_Virtual_Submit
Reviewed-by: Adeel Raza <araza@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Vaibhav Kachore
2019-04-23 23:04:11 +05:30
committed by mobile promotions
parent f17f6c95c2
commit f9cc478c31
3 changed files with 3 additions and 4 deletions

View File

@@ -2386,7 +2386,7 @@ int nvgpu_channel_suspend_all_serviceable_ch(struct gk20a *g)
return 0;
}
int nvgpu_channel_resume_all_serviceable_ch(struct gk20a *g)
void nvgpu_channel_resume_all_serviceable_ch(struct gk20a *g)
{
struct fifo_gk20a *f = &g->fifo;
u32 chid;
@@ -2418,7 +2418,6 @@ int nvgpu_channel_resume_all_serviceable_ch(struct gk20a *g)
}
nvgpu_log_fn(g, "done");
return 0;
}
void gk20a_channel_semaphore_wakeup(struct gk20a *g, bool post_events)

View File

@@ -433,7 +433,7 @@ int gk20a_enable_channel_tsg(struct gk20a *g, struct channel_gk20a *ch);
int gk20a_disable_channel_tsg(struct gk20a *g, struct channel_gk20a *ch);
int nvgpu_channel_suspend_all_serviceable_ch(struct gk20a *g);
int nvgpu_channel_resume_all_serviceable_ch(struct gk20a *g);
void nvgpu_channel_resume_all_serviceable_ch(struct gk20a *g);
void gk20a_channel_deterministic_idle(struct gk20a *g);
void gk20a_channel_deterministic_unidle(struct gk20a *g);

View File

@@ -1199,7 +1199,7 @@ struct gpu_ops {
void (*force_ctx_reload)(struct channel_gk20a *ch);
void (*abort_clean_up)(struct channel_gk20a *ch);
int (*suspend_all_serviceable_ch)(struct gk20a *g);
int (*resume_all_serviceable_ch)(struct gk20a *g);
void (*resume_all_serviceable_ch)(struct gk20a *g);
void (*set_error_notifier)(struct channel_gk20a *ch, u32 error);
void (*reset_faulted)(struct gk20a *g, struct channel_gk20a *ch,
bool eng, bool pbdma);