diff options
author | smadhavan <smadhavan@nvidia.com> | 2018-09-05 03:20:15 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-09-06 19:15:30 -0400 |
commit | c4ac750e985dddebe25308c7f9bd0a27a98feaa8 (patch) | |
tree | ffe645a1becda6bca10f893f164209b192e80a9a /drivers/gpu/nvgpu/gk20a/hal.h | |
parent | 4451cf29d46cee3415e4dce42a8f67f3cc49070c (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/hal.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/hal.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/hal.h b/drivers/gpu/nvgpu/gk20a/hal.h index b26b2ef5..0a6e7094 100644 --- a/drivers/gpu/nvgpu/gk20a/hal.h +++ b/drivers/gpu/nvgpu/gk20a/hal.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * NVIDIA GPU Hardware Abstraction Layer functions definitions. | 2 | * NVIDIA GPU Hardware Abstraction Layer functions definitions. |
3 | * | 3 | * |
4 | * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2014-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"), |
@@ -22,11 +22,11 @@ | |||
22 | * DEALINGS IN THE SOFTWARE. | 22 | * DEALINGS IN THE SOFTWARE. |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #ifndef __HAL_GPU__ | 25 | #ifndef NVGPU_GK20A_HAL_H |
26 | #define __HAL_GPU__ | 26 | #define NVGPU_GK20A_HAL_H |
27 | 27 | ||
28 | struct gk20a; | 28 | struct gk20a; |
29 | 29 | ||
30 | int gpu_init_hal(struct gk20a *g); | 30 | int gpu_init_hal(struct gk20a *g); |
31 | 31 | ||
32 | #endif /* __HAL_GPU__ */ | 32 | #endif /* NVGPU_GK20A_HAL_H */ |