mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
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 <araza@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1965693 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
f9490bd065
commit
9d92695e97
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user