From 75e59e40045c6fbf93c5b828d8a12ba84b573585 Mon Sep 17 00:00:00 2001 From: smadhavan Date: Fri, 14 Sep 2018 10:21:53 +0530 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1809086 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/mm/buddy_allocator_priv.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'drivers/gpu/nvgpu/common/mm') diff --git a/drivers/gpu/nvgpu/common/mm/buddy_allocator_priv.h b/drivers/gpu/nvgpu/common/mm/buddy_allocator_priv.h index 7a22f030..794922d7 100644 --- a/drivers/gpu/nvgpu/common/mm/buddy_allocator_priv.h +++ b/drivers/gpu/nvgpu/common/mm/buddy_allocator_priv.h @@ -20,8 +20,8 @@ * DEALINGS IN THE SOFTWARE. */ -#ifndef BUDDY_ALLOCATOR_PRIV_H -#define BUDDY_ALLOCATOR_PRIV_H +#ifndef NVGPU_MM_BUDDY_ALLOCATOR_PRIV_H +#define NVGPU_MM_BUDDY_ALLOCATOR_PRIV_H #include #include @@ -221,4 +221,4 @@ static inline struct nvgpu_allocator *balloc_owner( return a->owner; } -#endif +#endif /* NVGPU_MM_BUDDY_ALLOCATOR_PRIV_H */ -- cgit v1.2.2