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/boardobj/boardobjgrp_e255.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'drivers/gpu/nvgpu/boardobj/boardobjgrp_e255.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 @@ * DEALINGS IN THE SOFTWARE. */ -#ifndef _BOARDOBJGRP_E255_H_ -#define _BOARDOBJGRP_E255_H_ +#ifndef NVGPU_BOARDOBJGRP_E255_H +#define NVGPU_BOARDOBJGRP_E255_H #include "ctrl/ctrlboardobj.h" #include "boardobj.h" @@ -48,4 +48,4 @@ int boardobjgrpconstruct_e255(struct gk20a *g, boardobjgrp_destruct boardobjgrpdestruct_e255; boardobjgrp_pmuhdrdatainit boardobjgrp_pmuhdrdatainit_e255; -#endif +#endif /* NVGPU_BOARDOBJGRP_E255_H */ -- cgit v1.2.2