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/fb/fb_gv11b.h | |
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/fb/fb_gv11b.h')
-rw-r--r-- | drivers/gpu/nvgpu/common/fb/fb_gv11b.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/common/fb/fb_gv11b.h b/drivers/gpu/nvgpu/common/fb/fb_gv11b.h index 71fb3a41..66bf8e2c 100644 --- a/drivers/gpu/nvgpu/common/fb/fb_gv11b.h +++ b/drivers/gpu/nvgpu/common/fb/fb_gv11b.h | |||
@@ -22,8 +22,8 @@ | |||
22 | * DEALINGS IN THE SOFTWARE. | 22 | * DEALINGS IN THE SOFTWARE. |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #ifndef _NVGPU_GV11B_FB | 25 | #ifndef NVGPU_FB_GV11B_H |
26 | #define _NVGPU_GV11B_FB | 26 | #define NVGPU_FB_GV11B_H |
27 | 27 | ||
28 | #define NONREPLAY_REG_INDEX 0 | 28 | #define NONREPLAY_REG_INDEX 0 |
29 | #define REPLAY_REG_INDEX 1 | 29 | #define REPLAY_REG_INDEX 1 |
@@ -79,4 +79,4 @@ void fb_gv11b_write_mmu_fault_status(struct gk20a *g, u32 reg_val); | |||
79 | int gv11b_fb_mmu_invalidate_replay(struct gk20a *g, | 79 | int gv11b_fb_mmu_invalidate_replay(struct gk20a *g, |
80 | u32 invalidate_replay_val); | 80 | u32 invalidate_replay_val); |
81 | 81 | ||
82 | #endif | 82 | #endif /* NVGPU_FB_GV11B_H */ |