summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/fuse
diff options
context:
space:
mode:
authorSrirangan <smadhavan@nvidia.com>2018-08-23 02:49:48 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-08-27 10:52:22 -0400
commit385d3473e72c653906c82062eb2545abd7eeefe4 (patch)
tree82b51998c166623074f7f4c2e4415d128559cb86 /drivers/gpu/nvgpu/common/fuse
parent5c9bedf6f6e3213cd830d045d70f61de49f6e42b (diff)
gpu: nvgpu: common: Fix MISRA 15.6 violations
MISRA Rule-15.6 requires that all if-else blocks be enclosed in braces, including single statement blocks. Fix errors due to single statement if blocks without braces, introducing the braces. JIRA NVGPU-671 Change-Id: I18cf871f2d1296b931d6ab43f1ac668551171dcc Signed-off-by: Srirangan <smadhavan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1805076 Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com> Reviewed-by: Konsta Holtta <kholtta@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/fuse')
-rw-r--r--drivers/gpu/nvgpu/common/fuse/fuse_gm20b.c5
-rw-r--r--drivers/gpu/nvgpu/common/fuse/fuse_gp10b.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/common/fuse/fuse_gm20b.c b/drivers/gpu/nvgpu/common/fuse/fuse_gm20b.c
index c790e297..bb99e644 100644
--- a/drivers/gpu/nvgpu/common/fuse/fuse_gm20b.c
+++ b/drivers/gpu/nvgpu/common/fuse/fuse_gm20b.c
@@ -63,16 +63,17 @@ int gm20b_fuse_check_priv_security(struct gk20a *g)
63 GCPLEX_CONFIG_WPR_ENABLED_MASK) && 63 GCPLEX_CONFIG_WPR_ENABLED_MASK) &&
64 !(gcplex_config & 64 !(gcplex_config &
65 GCPLEX_CONFIG_VPR_AUTO_FETCH_DISABLE_MASK)) { 65 GCPLEX_CONFIG_VPR_AUTO_FETCH_DISABLE_MASK)) {
66 if (gk20a_readl(g, fuse_opt_sec_debug_en_r())) 66 if (gk20a_readl(g, fuse_opt_sec_debug_en_r())) {
67 nvgpu_log(g, gpu_dbg_info, 67 nvgpu_log(g, gpu_dbg_info,
68 "gcplex_config = 0x%08x, " 68 "gcplex_config = 0x%08x, "
69 "secure mode: ACR debug", 69 "secure mode: ACR debug",
70 gcplex_config); 70 gcplex_config);
71 else 71 } else {
72 nvgpu_log(g, gpu_dbg_info, 72 nvgpu_log(g, gpu_dbg_info,
73 "gcplex_config = 0x%08x, " 73 "gcplex_config = 0x%08x, "
74 "secure mode: ACR non debug", 74 "secure mode: ACR non debug",
75 gcplex_config); 75 gcplex_config);
76 }
76 } else { 77 } else {
77 nvgpu_err(g, "gcplex_config = 0x%08x " 78 nvgpu_err(g, "gcplex_config = 0x%08x "
78 "invalid wpr_enabled/vpr_auto_fetch_disable " 79 "invalid wpr_enabled/vpr_auto_fetch_disable "
diff --git a/drivers/gpu/nvgpu/common/fuse/fuse_gp10b.c b/drivers/gpu/nvgpu/common/fuse/fuse_gp10b.c
index 3a26e1b9..97570f9c 100644
--- a/drivers/gpu/nvgpu/common/fuse/fuse_gp10b.c
+++ b/drivers/gpu/nvgpu/common/fuse/fuse_gp10b.c
@@ -63,16 +63,17 @@ int gp10b_fuse_check_priv_security(struct gk20a *g)
63 GCPLEX_CONFIG_WPR_ENABLED_MASK) && 63 GCPLEX_CONFIG_WPR_ENABLED_MASK) &&
64 !(gcplex_config & 64 !(gcplex_config &
65 GCPLEX_CONFIG_VPR_AUTO_FETCH_DISABLE_MASK)) { 65 GCPLEX_CONFIG_VPR_AUTO_FETCH_DISABLE_MASK)) {
66 if (gk20a_readl(g, fuse_opt_sec_debug_en_r())) 66 if (gk20a_readl(g, fuse_opt_sec_debug_en_r())) {
67 nvgpu_log(g, gpu_dbg_info, 67 nvgpu_log(g, gpu_dbg_info,
68 "gcplex_config = 0x%08x, " 68 "gcplex_config = 0x%08x, "
69 "secure mode: ACR debug", 69 "secure mode: ACR debug",
70 gcplex_config); 70 gcplex_config);
71 else 71 } else {
72 nvgpu_log(g, gpu_dbg_info, 72 nvgpu_log(g, gpu_dbg_info,
73 "gcplex_config = 0x%08x, " 73 "gcplex_config = 0x%08x, "
74 "secure mode: ACR non debug", 74 "secure mode: ACR non debug",
75 gcplex_config); 75 gcplex_config);
76 }
76 77
77 } else { 78 } else {
78 nvgpu_err(g, "gcplex_config = 0x%08x " 79 nvgpu_err(g, "gcplex_config = 0x%08x "