gpu: nvgpu: fix misra violations in SDL

This patch addresses misra violations due to SDL error reporting
callbacks. In particular, it addresses the following misra violation:

- misra_c_2012_directive_4_7_violation: Calling function
  "nvgpu_report_*_err()" which returns error information without testing
  the error information.

JIRA NVGPU-4025

Change-Id: Ia10b6b3fd9c127a8c5189c3b6ba316f243cedf04
Signed-off-by: Rajesh Devaraj <rdevaraj@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2196895
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Rajesh Devaraj
2019-09-13 14:19:42 +05:30
committed by Alex Waterman
parent 84bb355525
commit 935c5f6578
26 changed files with 152 additions and 230 deletions

View File

@@ -25,51 +25,51 @@
struct gk20a;
struct mmu_fault_info;
int nvgpu_report_host_err(struct gk20a *g, u32 hw_unit,
void nvgpu_report_host_err(struct gk20a *g, u32 hw_unit,
u32 inst, u32 err_id, u32 intr_info)
{
return 0;
return;
}
int nvgpu_report_ecc_err(struct gk20a *g, u32 hw_unit, u32 inst,
void nvgpu_report_ecc_err(struct gk20a *g, u32 hw_unit, u32 inst,
u32 err_id, u64 err_addr, u64 err_count)
{
return 0;
return;
}
int nvgpu_report_gr_err(struct gk20a *g, u32 hw_unit, u32 inst,
void nvgpu_report_gr_err(struct gk20a *g, u32 hw_unit, u32 inst,
u32 err_id, struct gr_err_info *err_info, u32 sub_err_type)
{
return 0;
return;
}
int nvgpu_report_pmu_err(struct gk20a *g, u32 hw_unit, u32 err_id,
void nvgpu_report_pmu_err(struct gk20a *g, u32 hw_unit, u32 err_id,
u32 sub_err_type, u32 status)
{
return 0;
return;
}
int nvgpu_report_ce_err(struct gk20a *g, u32 hw_unit,
void nvgpu_report_ce_err(struct gk20a *g, u32 hw_unit,
u32 inst, u32 err_id, u32 intr_info)
{
return 0;
return;
}
int nvgpu_report_pri_err(struct gk20a *g, u32 hw_unit, u32 inst,
void nvgpu_report_pri_err(struct gk20a *g, u32 hw_unit, u32 inst,
u32 err_id, u32 err_addr, u32 err_code)
{
return 0;
return;
}
int nvgpu_report_ctxsw_err(struct gk20a *g, u32 hw_unit, u32 err_id,
void nvgpu_report_ctxsw_err(struct gk20a *g, u32 hw_unit, u32 err_id,
void *data)
{
return 0;
return;
}
int nvgpu_report_mmu_err(struct gk20a *g, u32 hw_unit,
void nvgpu_report_mmu_err(struct gk20a *g, u32 hw_unit,
u32 err_id, struct mmu_fault_info *fault_info,
u32 status, u32 sub_err_type)
{
return 0;
return;
}