mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
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:
committed by
mobile promotions
parent
f17f6c95c2
commit
f9cc478c31
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user