From 9d92695e973cad02de681b6eb8ad63b5b3aa70ab Mon Sep 17 00:00:00 2001 From: Adeel Raza Date: Tue, 4 Dec 2018 18:49:46 -0800 Subject: [PATCH] gpu: nvgpu: bios: change bit to bios_bit MISRA Rule 5.7 Definition: A tag name shall be a unique identifier. Rule 5.7 violations can occur if a variable has the same name as a struct. bios.c defines a "struct bit". "bit" is a very common name for variables which causes a name conflict with "struct bit". Therefore, change "struct bit" to "struct bios_bit" to resolve rule 5.7 violations. Jira NVGPU-845 Change-Id: I02f2fa6cf1701c7de2e365635b18ecee0f8296fa Signed-off-by: Adeel Raza Reviewed-on: https://git-master.nvidia.com/r/1965693 Reviewed-by: svc-mobile-coverity Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svc-misra-checker GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/vbios/bios.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/nvgpu/common/vbios/bios.c b/drivers/gpu/nvgpu/common/vbios/bios.c index ef674720b..5d59c3708 100644 --- a/drivers/gpu/nvgpu/common/vbios/bios.c +++ b/drivers/gpu/nvgpu/common/vbios/bios.c @@ -62,7 +62,7 @@ static u32 nvgpu_bios_rdu32(struct gk20a *g, int offset) return val; } -struct bit { +struct bios_bit { u16 id; u32 signature; u16 bcd_version; @@ -815,7 +815,7 @@ void *nvgpu_bios_get_perf_table_ptrs(struct gk20a *g, static void nvgpu_bios_parse_bit(struct gk20a *g, int offset) { - struct bit bit; + struct bios_bit bit; struct bit_token bit_token; int i;