summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/priv_ring/priv_ring_gp10b.h
diff options
context:
space:
mode:
authorsmadhavan <smadhavan@nvidia.com>2018-09-14 00:51:53 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-09-25 00:17:39 -0400
commit75e59e40045c6fbf93c5b828d8a12ba84b573585 (patch)
tree849405a26ee469bad7914882027ee4d2bce4bbc9 /drivers/gpu/nvgpu/common/priv_ring/priv_ring_gp10b.h
parentf93565c51fb465aebc34dc52fd704ba038c917f7 (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/priv_ring/priv_ring_gp10b.h')
-rw-r--r--drivers/gpu/nvgpu/common/priv_ring/priv_ring_gp10b.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/common/priv_ring/priv_ring_gp10b.h b/drivers/gpu/nvgpu/common/priv_ring/priv_ring_gp10b.h
index dd418e5b..db96ec04 100644
--- a/drivers/gpu/nvgpu/common/priv_ring/priv_ring_gp10b.h
+++ b/drivers/gpu/nvgpu/common/priv_ring/priv_ring_gp10b.h
@@ -21,8 +21,8 @@
21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 * DEALINGS IN THE SOFTWARE. 22 * DEALINGS IN THE SOFTWARE.
23 */ 23 */
24#ifndef __PRIV_RING_GP10B_H__ 24#ifndef NVGPU_PRIV_RING_GP10B_H
25#define __PRIV_RING_GP10B_H__ 25#define NVGPU_PRIV_RING_GP10B_H
26 26
27struct gk20a; 27struct gk20a;
28 28
@@ -30,4 +30,4 @@ void gp10b_priv_ring_isr(struct gk20a *g);
30void gp10b_priv_ring_decode_error_code(struct gk20a *g, 30void gp10b_priv_ring_decode_error_code(struct gk20a *g,
31 u32 error_code); 31 u32 error_code);
32 32
33#endif /*__PRIV_RING_GP10B_H__*/ 33#endif /* NVGPU_PRIV_RING_GP10B_H */