From c18c8b5b28b839ac20ae2c4b1003e9b44199016a Mon Sep 17 00:00:00 2001 From: smadhavan Date: Mon, 10 Sep 2018 14:54:10 +0530 Subject: nvgpu: include: 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 the include directory by renaming them to follow the convention, 'NVGPU_HEADER_H'. JIRA NVGPU-1028 Change-Id: I0289a168252595d17ac47c5ed32cabc4eea33e25 Signed-off-by: smadhavan Reviewed-on: https://git-master.nvidia.com/r/1809755 Reviewed-by: svc-misra-checker Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Adeel Raza Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/include/nvgpu/log.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'drivers/gpu/nvgpu/include/nvgpu/log.h') diff --git a/drivers/gpu/nvgpu/include/nvgpu/log.h b/drivers/gpu/nvgpu/include/nvgpu/log.h index e64c72f3..70a16762 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/log.h +++ b/drivers/gpu/nvgpu/include/nvgpu/log.h @@ -20,8 +20,8 @@ * DEALINGS IN THE SOFTWARE. */ -#ifndef __NVGPU_DEBUGGING_H__ -#define __NVGPU_DEBUGGING_H__ +#ifndef NVGPU_LOG_H +#define NVGPU_LOG_H #include #include @@ -180,4 +180,4 @@ extern u64 nvgpu_dbg_mask; #define gk20a_dbg_fn(fmt, arg...) gk20a_dbg(gpu_dbg_fn, fmt, ##arg) #define gk20a_dbg_info(fmt, arg...) gk20a_dbg(gpu_dbg_info, fmt, ##arg) -#endif +#endif /* NVGPU_LOG_H */ -- cgit v1.2.2