diff options
author | smadhavan <smadhavan@nvidia.com> | 2018-09-14 02:28:41 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-09-25 00:17:42 -0400 |
commit | 3c3f80a687ae95c36341d9bf1753f63dfc4a06af (patch) | |
tree | 21f0c537bb7f417756e2c7feca17bdbcd0060702 /drivers/gpu/nvgpu/boardobj | |
parent | 75e59e40045c6fbf93c5b828d8a12ba84b573585 (diff) |
gpu: nvgpu: MISRA Rule 21.2 header guard fixes
MISRA rule 21.2 doesn't allow the use of macro names which start with
an underscore. These leading underscores are to be removed from the
macro names. This patch will fix such violations in nvgpu by
renaming them to follow the convention,'NVGPU_PARENT-DIR_HEADER-NAME'
when there is no keyword repetition between file name and directory
or 'NVGPU_HEADER-NAME' when there is repetition.
JIRA NVGPU-1028
Change-Id: I8a473c6c1a864f3893920d8e06e305095e523d2a
Signed-off-by: smadhavan <smadhavan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1809082
Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Debarshi Dutta <ddutta@nvidia.com>
Reviewed-by: Adeel Raza <araza@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/boardobj')
-rw-r--r-- | drivers/gpu/nvgpu/boardobj/boardobj.h | 6 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/boardobj/boardobjgrp.h | 6 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/boardobj/boardobjgrp_e255.h | 6 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/boardobj/boardobjgrp_e32.h | 6 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/boardobj/boardobjgrpmask.h | 6 |
5 files changed, 15 insertions, 15 deletions
diff --git a/drivers/gpu/nvgpu/boardobj/boardobj.h b/drivers/gpu/nvgpu/boardobj/boardobj.h index b2ab990c..b1be9bd58 100644 --- a/drivers/gpu/nvgpu/boardobj/boardobj.h +++ b/drivers/gpu/nvgpu/boardobj/boardobj.h | |||
@@ -20,8 +20,8 @@ | |||
20 | * DEALINGS IN THE SOFTWARE. | 20 | * DEALINGS IN THE SOFTWARE. |
21 | */ | 21 | */ |
22 | 22 | ||
23 | #ifndef _BOARDOBJ_H_ | 23 | #ifndef NVGPU_BOARDOBJ_H |
24 | #define _BOARDOBJ_H_ | 24 | #define NVGPU_BOARDOBJ_H |
25 | 25 | ||
26 | #include <nvgpu/list.h> | 26 | #include <nvgpu/list.h> |
27 | #include <nvgpu/pmuif/nvgpu_gpmu_cmdif.h> | 27 | #include <nvgpu/pmuif/nvgpu_gpmu_cmdif.h> |
@@ -101,4 +101,4 @@ boardobj_from_node(struct nvgpu_list_node *node) | |||
101 | ((uintptr_t)node - offsetof(struct boardobj, node)); | 101 | ((uintptr_t)node - offsetof(struct boardobj, node)); |
102 | }; | 102 | }; |
103 | 103 | ||
104 | #endif | 104 | #endif /* NVGPU_BOARDOBJ_H */ |
diff --git a/drivers/gpu/nvgpu/boardobj/boardobjgrp.h b/drivers/gpu/nvgpu/boardobj/boardobjgrp.h index 095ff4c9..e9df445f 100644 --- a/drivers/gpu/nvgpu/boardobj/boardobjgrp.h +++ b/drivers/gpu/nvgpu/boardobj/boardobjgrp.h | |||
@@ -20,8 +20,8 @@ | |||
20 | * DEALINGS IN THE SOFTWARE. | 20 | * DEALINGS IN THE SOFTWARE. |
21 | */ | 21 | */ |
22 | 22 | ||
23 | #ifndef _BOARDOBJGRP_H_ | 23 | #ifndef NVGPU_BOARDOBJGRP_H |
24 | #define _BOARDOBJGRP_H_ | 24 | #define NVGPU_BOARDOBJGRP_H |
25 | 25 | ||
26 | struct boardobjgrp; | 26 | struct boardobjgrp; |
27 | struct gk20a; | 27 | struct gk20a; |
@@ -438,4 +438,4 @@ int is_boardobjgrp_pmucmd_id_valid_v0(struct gk20a *g, | |||
438 | int is_boardobjgrp_pmucmd_id_valid_v1(struct gk20a *g, | 438 | int is_boardobjgrp_pmucmd_id_valid_v1(struct gk20a *g, |
439 | struct boardobjgrp *pboardobjgrp, | 439 | struct boardobjgrp *pboardobjgrp, |
440 | struct boardobjgrp_pmu_cmd *cmd); | 440 | struct boardobjgrp_pmu_cmd *cmd); |
441 | #endif | 441 | #endif /* NVGPU_BOARDOBJGRP_H */ |
diff --git a/drivers/gpu/nvgpu/boardobj/boardobjgrp_e255.h b/drivers/gpu/nvgpu/boardobj/boardobjgrp_e255.h index 10cd95c6..bc405419 100644 --- a/drivers/gpu/nvgpu/boardobj/boardobjgrp_e255.h +++ b/drivers/gpu/nvgpu/boardobj/boardobjgrp_e255.h | |||
@@ -20,8 +20,8 @@ | |||
20 | * DEALINGS IN THE SOFTWARE. | 20 | * DEALINGS IN THE SOFTWARE. |
21 | */ | 21 | */ |
22 | 22 | ||
23 | #ifndef _BOARDOBJGRP_E255_H_ | 23 | #ifndef NVGPU_BOARDOBJGRP_E255_H |
24 | #define _BOARDOBJGRP_E255_H_ | 24 | #define NVGPU_BOARDOBJGRP_E255_H |
25 | 25 | ||
26 | #include "ctrl/ctrlboardobj.h" | 26 | #include "ctrl/ctrlboardobj.h" |
27 | #include "boardobj.h" | 27 | #include "boardobj.h" |
@@ -48,4 +48,4 @@ int boardobjgrpconstruct_e255(struct gk20a *g, | |||
48 | boardobjgrp_destruct boardobjgrpdestruct_e255; | 48 | boardobjgrp_destruct boardobjgrpdestruct_e255; |
49 | boardobjgrp_pmuhdrdatainit boardobjgrp_pmuhdrdatainit_e255; | 49 | boardobjgrp_pmuhdrdatainit boardobjgrp_pmuhdrdatainit_e255; |
50 | 50 | ||
51 | #endif | 51 | #endif /* NVGPU_BOARDOBJGRP_E255_H */ |
diff --git a/drivers/gpu/nvgpu/boardobj/boardobjgrp_e32.h b/drivers/gpu/nvgpu/boardobj/boardobjgrp_e32.h index 900901bb..d4beb47e 100644 --- a/drivers/gpu/nvgpu/boardobj/boardobjgrp_e32.h +++ b/drivers/gpu/nvgpu/boardobj/boardobjgrp_e32.h | |||
@@ -20,8 +20,8 @@ | |||
20 | * DEALINGS IN THE SOFTWARE. | 20 | * DEALINGS IN THE SOFTWARE. |
21 | */ | 21 | */ |
22 | 22 | ||
23 | #ifndef _BOARDOBJGRP_E32_H_ | 23 | #ifndef NVGPU_BOARDOBJGRP_E32_H |
24 | #define _BOARDOBJGRP_E32_H_ | 24 | #define NVGPU_BOARDOBJGRP_E32_H |
25 | 25 | ||
26 | #include "ctrl/ctrlboardobj.h" | 26 | #include "ctrl/ctrlboardobj.h" |
27 | #include "boardobj.h" | 27 | #include "boardobj.h" |
@@ -63,4 +63,4 @@ int boardobjgrpconstruct_e32(struct gk20a *g, | |||
63 | boardobjgrp_destruct boardobjgrpdestruct_e32; | 63 | boardobjgrp_destruct boardobjgrpdestruct_e32; |
64 | boardobjgrp_pmuhdrdatainit boardobjgrp_pmuhdrdatainit_e32; | 64 | boardobjgrp_pmuhdrdatainit boardobjgrp_pmuhdrdatainit_e32; |
65 | 65 | ||
66 | #endif | 66 | #endif /* NVGPU_BOARDOBJGRP_E32_H */ |
diff --git a/drivers/gpu/nvgpu/boardobj/boardobjgrpmask.h b/drivers/gpu/nvgpu/boardobj/boardobjgrpmask.h index c081284a..f4ed0af4 100644 --- a/drivers/gpu/nvgpu/boardobj/boardobjgrpmask.h +++ b/drivers/gpu/nvgpu/boardobj/boardobjgrpmask.h | |||
@@ -20,8 +20,8 @@ | |||
20 | * DEALINGS IN THE SOFTWARE. | 20 | * DEALINGS IN THE SOFTWARE. |
21 | */ | 21 | */ |
22 | 22 | ||
23 | #ifndef _BOARDOBJGRPMASK_H_ | 23 | #ifndef NVGPU_BOARDOBJGRPMASK_H |
24 | #define _BOARDOBJGRPMASK_H_ | 24 | #define NVGPU_BOARDOBJGRPMASK_H |
25 | 25 | ||
26 | #include "ctrl/ctrlboardobj.h" | 26 | #include "ctrl/ctrlboardobj.h" |
27 | 27 | ||
@@ -116,4 +116,4 @@ bool boardobjgrpmask_issubset(struct boardobjgrpmask *op1, | |||
116 | boardobjgrpmask_init(&(pmaske255)->super, \ | 116 | boardobjgrpmask_init(&(pmaske255)->super, \ |
117 | CTRL_BOARDOBJGRP_E255_MAX_OBJECTS, (pextmask)) | 117 | CTRL_BOARDOBJGRP_E255_MAX_OBJECTS, (pextmask)) |
118 | 118 | ||
119 | #endif | 119 | #endif /* NVGPU_BOARDOBJGRPMASK_H */ |