From 3c3f80a687ae95c36341d9bf1753f63dfc4a06af Mon Sep 17 00:00:00 2001 From: smadhavan Date: Fri, 14 Sep 2018 11:58:41 +0530 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1809082 Reviewed-by: svc-misra-checker Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Tested-by: Debarshi Dutta Reviewed-by: Adeel Raza Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/perf/perf.h | 6 +++--- drivers/gpu/nvgpu/perf/vfe_equ.h | 6 +++--- drivers/gpu/nvgpu/perf/vfe_var.h | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'drivers/gpu/nvgpu/perf') diff --git a/drivers/gpu/nvgpu/perf/perf.h b/drivers/gpu/nvgpu/perf/perf.h index 17a9b0e1..71c8086b 100644 --- a/drivers/gpu/nvgpu/perf/perf.h +++ b/drivers/gpu/nvgpu/perf/perf.h @@ -19,8 +19,8 @@ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. */ -#ifndef _PERF_H_ -#define _PERF_H_ +#ifndef NVGPU_PERF_H +#define NVGPU_PERF_H #include #include "vfe_equ.h" @@ -82,4 +82,4 @@ struct perf_pmupstate { u32 perf_pmu_vfe_load(struct gk20a *g); -#endif +#endif /* NVGPU_PERF_H */ diff --git a/drivers/gpu/nvgpu/perf/vfe_equ.h b/drivers/gpu/nvgpu/perf/vfe_equ.h index 486a48f8..98222ee5 100644 --- a/drivers/gpu/nvgpu/perf/vfe_equ.h +++ b/drivers/gpu/nvgpu/perf/vfe_equ.h @@ -21,8 +21,8 @@ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. */ -#ifndef _VFE_EQU_H_ -#define _VFE_EQU_H_ +#ifndef NVGPU_PERF_VFE_EQU_H +#define NVGPU_PERF_VFE_EQU_H #include "boardobj/boardobjgrp.h" #include "perf/vfe_var.h" @@ -81,4 +81,4 @@ struct vfe_equ_quadratic { u32 coeffs[CTRL_PERF_VFE_EQU_QUADRATIC_COEFF_COUNT]; }; -#endif +#endif /* NVGPU_PERF_VFE_EQU_H */ diff --git a/drivers/gpu/nvgpu/perf/vfe_var.h b/drivers/gpu/nvgpu/perf/vfe_var.h index 535600a7..98b7c40b 100644 --- a/drivers/gpu/nvgpu/perf/vfe_var.h +++ b/drivers/gpu/nvgpu/perf/vfe_var.h @@ -20,8 +20,8 @@ * DEALINGS IN THE SOFTWARE. */ -#ifndef _VFE_VAR_H_ -#define _VFE_VAR_H_ +#ifndef NVGPU_PERF_VFE_VAR_H +#define NVGPU_PERF_VFE_VAR_H #include "boardobj/boardobjgrp.h" #include @@ -106,4 +106,4 @@ struct vfe_var_single_sensed_temp { int temp_default; }; -#endif +#endif /* NVGPU_PERF_VFE_VAR_H */ -- cgit v1.2.2