diff options
author | smadhavan <smadhavan@nvidia.com> | 2018-09-10 05:24:10 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-09-27 02:35:33 -0400 |
commit | c18c8b5b28b839ac20ae2c4b1003e9b44199016a (patch) | |
tree | 19f94952adf9cbd581a804a32c4fe847655463dc /drivers/gpu/nvgpu/include/nvgpu/enabled.h | |
parent | d77785800b2ae4c27354500305303c395a18acf4 (diff) |
nvgpu: include: 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 the
include directory by renaming them to follow the convention,
'NVGPU_HEADER_H'.
JIRA NVGPU-1028
Change-Id: I0289a168252595d17ac47c5ed32cabc4eea33e25
Signed-off-by: smadhavan <smadhavan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1809755
Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
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/include/nvgpu/enabled.h')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/enabled.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/enabled.h b/drivers/gpu/nvgpu/include/nvgpu/enabled.h index 54c4d61c..ccf60546 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/enabled.h +++ b/drivers/gpu/nvgpu/include/nvgpu/enabled.h | |||
@@ -20,8 +20,8 @@ | |||
20 | * DEALINGS IN THE SOFTWARE. | 20 | * DEALINGS IN THE SOFTWARE. |
21 | */ | 21 | */ |
22 | 22 | ||
23 | #ifndef __NVGPU_ENABLED_H__ | 23 | #ifndef NVGPU_ENABLED_H |
24 | #define __NVGPU_ENABLED_H__ | 24 | #define NVGPU_ENABLED_H |
25 | 25 | ||
26 | struct gk20a; | 26 | struct gk20a; |
27 | 27 | ||
@@ -199,4 +199,4 @@ void __nvgpu_set_enabled(struct gk20a *g, int flag, bool state); | |||
199 | int nvgpu_init_enabled_flags(struct gk20a *g); | 199 | int nvgpu_init_enabled_flags(struct gk20a *g); |
200 | void nvgpu_free_enabled_flags(struct gk20a *g); | 200 | void nvgpu_free_enabled_flags(struct gk20a *g); |
201 | 201 | ||
202 | #endif | 202 | #endif /* NVGPU_ENABLED_H */ |