summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include/nvgpu/sim.h
diff options
context:
space:
mode:
authorNicolas Benech <nbenech@nvidia.com>2018-09-04 21:38:13 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-09-06 19:15:23 -0400
commit4451cf29d46cee3415e4dce42a8f67f3cc49070c (patch)
tree70107d4b7de329b0feaf855071aee7359dd78fbf /drivers/gpu/nvgpu/include/nvgpu/sim.h
parentba1245d8f74816189af0fc3e0d0d1c642f87cdf2 (diff)
gpu: nvgpu: Fix nvgpu_sim_esc_readl MISRA 17.7 violations
MISRA Rule-17.7 requires the return value of all functions to be used. Fix is either to use the return value or change the function to return void. This patch contains fix for calls to nvgpu_sim_esc_readl by changing its return to void and printing an error message instead. JIRA NVGPU-677 Change-Id: I949bea253dafc316c7dfbf870eb1225b6fc5b9c3 Signed-off-by: Nicolas Benech <nbenech@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1812887 Reviewed-by: Alex Waterman <alexw@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include/nvgpu/sim.h')
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/sim.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/sim.h b/drivers/gpu/nvgpu/include/nvgpu/sim.h
index fe8e8ac6..41cee8d0 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/sim.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/sim.h
@@ -36,7 +36,7 @@ struct sim_nvgpu {
36 struct nvgpu_mem msg_bfr; 36 struct nvgpu_mem msg_bfr;
37 void (*sim_init_late)(struct gk20a *); 37 void (*sim_init_late)(struct gk20a *);
38 void (*remove_support)(struct gk20a *); 38 void (*remove_support)(struct gk20a *);
39 int (*esc_readl)( 39 void (*esc_readl)(
40 struct gk20a *g, char *path, u32 index, u32 *data); 40 struct gk20a *g, char *path, u32 index, u32 *data);
41}; 41};
42#ifdef __KERNEL__ 42#ifdef __KERNEL__