From 115959bd408de954e5c5440a2b9b125f0a4fd0fe Mon Sep 17 00:00:00 2001 From: Nitin Kumbhar Date: Mon, 19 Aug 2019 19:56:47 +0530 Subject: [PATCH] gpu: nvgpu: fix DCL37-C violation of __here Rename reserved identifier __here to label_here to fix around 180 DCL37-C violations - "The reserved identifier "__here", which is reserved for use as identifiers with file scope in both the ordinary and tag name spaces, is declared. JIRA NVGPU-3908 Change-Id: Iecaaa03674800bec919d71dc5fd226d362fc6f56 Signed-off-by: Nitin Kumbhar Reviewed-on: https://git-master.nvidia.com/r/2178457 GVS: Gerrit_Virtual_Submit Reviewed-by: Vinod Gopalakrishnakurup Reviewed-by: Adeel Raza Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/include/nvgpu/utils.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/nvgpu/include/nvgpu/utils.h b/drivers/gpu/nvgpu/include/nvgpu/utils.h index 4f8a4ea49..b298036ce 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/utils.h +++ b/drivers/gpu/nvgpu/include/nvgpu/utils.h @@ -61,6 +61,7 @@ static inline u32 get_field(u32 reg, u32 mask) /* * MISRA Rule 11.6 compliant IP address generator. */ -#define NVGPU_GET_IP ({ __label__ __here; __here: &&__here; }) +#define NVGPU_GET_IP \ + ({ __label__ label_here; label_here: &&label_here; }) #endif /* NVGPU_UTILS_H */