summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.h
diff options
context:
space:
mode:
authorsmadhavan <smadhavan@nvidia.com>2018-09-05 03:20:15 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-09-06 19:15:30 -0400
commitc4ac750e985dddebe25308c7f9bd0a27a98feaa8 (patch)
treeffe645a1becda6bca10f893f164209b192e80a9a /drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.h
parent4451cf29d46cee3415e4dce42a8f67f3cc49070c (diff)
nvgpu: gk20a: 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 caused by include guards by renaming them to follow the convention, 'NVGPU_PARENT-DIR_HEADER_H' JIRA NVGPU-1028 Change-Id: I478be317d067a75cdc8cb7fe9577a66d06318a11 Signed-off-by: smadhavan <smadhavan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1813068 GVS: Gerrit_Virtual_Submit Reviewed-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-by: Adeel Raza <araza@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.h b/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.h
index 10f8723f..e75472c5 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.h
@@ -1,7 +1,7 @@
1/* 1/*
2 * GK20A Graphics Context 2 * GK20A Graphics Context
3 * 3 *
4 * Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2011-2018, NVIDIA CORPORATION. All rights reserved.
5 * 5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a 6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"), 7 * copy of this software and associated documentation files (the "Software"),
@@ -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 __GR_CTX_GK20A_H__ 24#ifndef NVGPU_GK20A_GR_CTX_GK20A_H
25#define __GR_CTX_GK20A_H__ 25#define NVGPU_GK20A_GR_CTX_GK20A_H
26 26
27#include <nvgpu/kmem.h> 27#include <nvgpu/kmem.h>
28 28
@@ -203,4 +203,4 @@ int gr_gk20a_init_ctx_vars_sim(struct gk20a *g, struct gr_gk20a *gr);
203struct gpu_ops; 203struct gpu_ops;
204void gk20a_init_gr_ctx(struct gpu_ops *gops); 204void gk20a_init_gr_ctx(struct gpu_ops *gops);
205 205
206#endif /*__GR_CTX_GK20A_H__*/ 206#endif /*NVGPU_GK20A_GR_CTX_GK20A_H*/