gpu: nvgpu: fix MISRA 21.x violations in utils

Below MISRA 21.1 violation is reported in nvgpu.common.utils

${TEGRA_TOP}/kernel/nvgpu/drivers/gpu/nvgpu/include/nvgpu/utils.h:56:
misra_violation: The NVGPU_GET_IP shall not be defined or undefined.

Below MISRA 21.2 violation is reported in nvgpu.common.utils

${TEGRA_TOP}/kernel/nvgpu/drivers/gpu/nvgpu/include/nvgpu/utils.h:56:
misra_violation: The NVGPU_GET_IP shall not be declared.

Fix this by renaming _NVGPU_GET_IP_ to NVGPU_GET_IP

Jira NVGPU-3327

Change-Id: Ied94d8c8d80c2b26df8e742c18255c3dc657d59a
Signed-off-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2116696
GVS: Gerrit_Virtual_Submit
Reviewed-by: Philip Elcan <pelcan@nvidia.com>
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Thomas Fleury
2019-05-10 11:16:25 -07:00
committed by mobile promotions
parent 076555efb8
commit 6e9fdd57eb
3 changed files with 8 additions and 8 deletions

View File

@@ -53,6 +53,6 @@ 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__ __here; __here: &&__here; })
#endif /* NVGPU_UTILS_H */