From 75e59e40045c6fbf93c5b828d8a12ba84b573585 Mon Sep 17 00:00:00 2001 From: smadhavan Date: Fri, 14 Sep 2018 10:21:53 +0530 Subject: nvgpu: common: 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 common directory 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: Idf10f6b179cfd96bfb8ab8e9e2bf79c26591905d Signed-off-by: smadhavan Reviewed-on: https://git-master.nvidia.com/r/1809086 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/fb/fb_gv100.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'drivers/gpu/nvgpu/common/fb/fb_gv100.h') diff --git a/drivers/gpu/nvgpu/common/fb/fb_gv100.h b/drivers/gpu/nvgpu/common/fb/fb_gv100.h index d47fded2..161d4cd7 100644 --- a/drivers/gpu/nvgpu/common/fb/fb_gv100.h +++ b/drivers/gpu/nvgpu/common/fb/fb_gv100.h @@ -1,7 +1,7 @@ /* * GV100 FB * - * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -22,8 +22,8 @@ * DEALINGS IN THE SOFTWARE. */ -#ifndef _NVGPU_GV100_FB -#define _NVGPU_GV100_FB +#ifndef NVGPU_FB_GV100_H +#define NVGPU_FB_GV100_H struct gk20a; @@ -35,4 +35,4 @@ int gv100_fb_init_nvlink(struct gk20a *g); int gv100_fb_enable_nvlink(struct gk20a *g); size_t gv100_fb_get_vidmem_size(struct gk20a *g); -#endif +#endif /* NVGPU_FB_GV100_H */ -- cgit v1.2.2