diff options
author | smadhavan <smadhavan@nvidia.com> | 2018-09-14 00:51:53 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-09-25 00:17:39 -0400 |
commit | 75e59e40045c6fbf93c5b828d8a12ba84b573585 (patch) | |
tree | 849405a26ee469bad7914882027ee4d2bce4bbc9 /drivers/gpu/nvgpu/common/xve | |
parent | f93565c51fb465aebc34dc52fd704ba038c917f7 (diff) |
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 <smadhavan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1809086
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/xve')
-rw-r--r-- | drivers/gpu/nvgpu/common/xve/xve_gp106.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/common/xve/xve_gp106.h b/drivers/gpu/nvgpu/common/xve/xve_gp106.h index e0be35ac..992f0c86 100644 --- a/drivers/gpu/nvgpu/common/xve/xve_gp106.h +++ b/drivers/gpu/nvgpu/common/xve/xve_gp106.h | |||
@@ -20,8 +20,8 @@ | |||
20 | * DEALINGS IN THE SOFTWARE. | 20 | * DEALINGS IN THE SOFTWARE. |
21 | */ | 21 | */ |
22 | 22 | ||
23 | #ifndef __XVE_GP106_H__ | 23 | #ifndef NVGPU_XVE_GP106_H |
24 | #define __XVE_GP106_H__ | 24 | #define NVGPU_XVE_GP106_H |
25 | 25 | ||
26 | #include "gk20a/gk20a.h" | 26 | #include "gk20a/gk20a.h" |
27 | 27 | ||
@@ -69,4 +69,4 @@ void xve_rearm_msi_gp106(struct gk20a *g); | |||
69 | void xve_enable_shadow_rom_gp106(struct gk20a *g); | 69 | void xve_enable_shadow_rom_gp106(struct gk20a *g); |
70 | void xve_disable_shadow_rom_gp106(struct gk20a *g); | 70 | void xve_disable_shadow_rom_gp106(struct gk20a *g); |
71 | 71 | ||
72 | #endif | 72 | #endif /* NVGPU_XVE_GP106_H */ |