diff options
author | Vinod G <vinodg@nvidia.com> | 2018-05-16 13:43:13 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-05-18 17:53:58 -0400 |
commit | ac687c95d383c3fb0165e6535893510409559a8e (patch) | |
tree | 7a76099c05186ad636704c07c5409bbc8547f20f /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | de67fb18fb639b7a605c77eeb2e1c639a8a3d67e (diff) |
gpu: nvgpu: Code updates for MISRA violations
Code related to MC module is updated for handling
MISRA violations
Rule 10.1: Operands shalln't be an inappropriate
essential type.
Rule 10.3: Value of expression shalln't be assigned
to an object with a narrow essential type.
Rule 10.4: Both operands in an operator shall have
the same essential type.
Rule 14.4: Controlling if statement shall have
essentially Boolean type.
Rule 15.6: Enclose if() sequences with braces.
JIRA NVGPU-646
JIRA NVGPU-659
JIRA NVGPU-671
Change-Id: Ia7ada40068eab5c164b8bad99bf8103b37a2fbc9
Signed-off-by: Vinod G <vinodg@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1720926
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 076bf89f..84d3f639 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -1076,7 +1076,7 @@ struct gpu_ops { | |||
1076 | u32 (*intr_nonstall)(struct gk20a *g); | 1076 | u32 (*intr_nonstall)(struct gk20a *g); |
1077 | void (*intr_nonstall_pause)(struct gk20a *g); | 1077 | void (*intr_nonstall_pause)(struct gk20a *g); |
1078 | void (*intr_nonstall_resume)(struct gk20a *g); | 1078 | void (*intr_nonstall_resume)(struct gk20a *g); |
1079 | int (*isr_nonstall)(struct gk20a *g); | 1079 | u32 (*isr_nonstall)(struct gk20a *g); |
1080 | void (*enable)(struct gk20a *g, u32 units); | 1080 | void (*enable)(struct gk20a *g, u32 units); |
1081 | void (*disable)(struct gk20a *g, u32 units); | 1081 | void (*disable)(struct gk20a *g, u32 units); |
1082 | void (*reset)(struct gk20a *g, u32 units); | 1082 | void (*reset)(struct gk20a *g, u32 units); |