summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include/nvgpu/ltc.h
diff options
context:
space:
mode:
authorsmadhavan <smadhavan@nvidia.com>2018-09-06 11:10:34 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-09-10 07:54:07 -0400
commit5366778e8e81da276dd4ceb3bf70fb2e9256a3b1 (patch)
tree028109ac53bfdd4ed9cc4e730a75a990cac8bdd0 /drivers/gpu/nvgpu/include/nvgpu/ltc.h
parent66f7bcc2f841f43e9bcd2a854361d6783bdb030e (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_PARENT-DIR_HEADER_H'. JIRA NVGPU-1028 Change-Id: I14e3558c80511314e32ef79c2b609a9fd9cf0a44 Signed-off-by: smadhavan <smadhavan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1813123 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com> Reviewed-by: Adeel Raza <araza@nvidia.com> Reviewed-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-by: Vijayakumar Subbu <vsubbu@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/ltc.h')
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/ltc.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/ltc.h b/drivers/gpu/nvgpu/include/nvgpu/ltc.h
index 21edcba7..a674a291 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/ltc.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/ltc.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a 4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"), 5 * copy of this software and associated documentation files (the "Software"),
@@ -20,8 +20,8 @@
20 * DEALINGS IN THE SOFTWARE. 20 * DEALINGS IN THE SOFTWARE.
21 */ 21 */
22 22
23#ifndef __NVGPU_LTC_H__ 23#ifndef NVGPU_LTC_H
24#define __NVGPU_LTC_H__ 24#define NVGPU_LTC_H
25 25
26#include <nvgpu/types.h> 26#include <nvgpu/types.h>
27 27
@@ -32,4 +32,4 @@ void nvgpu_ltc_sync_enabled(struct gk20a *g);
32int nvgpu_ltc_alloc_cbc(struct gk20a *g, size_t compbit_backing_size, 32int nvgpu_ltc_alloc_cbc(struct gk20a *g, size_t compbit_backing_size,
33 bool vidmem_alloc); 33 bool vidmem_alloc);
34 34
35#endif 35#endif /* NVGPU_LTC_H */