mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: falcon: fix misra 5.9 violation
Advisory Rule 5.9 states that identifiers that define objects or functions with internal linkage should be unique. This change eliminates an Advisory Rule 5.9 violation in our falcon code involving falcon_sw_init() by renaming it to falcon_sw_chip_init(). Jira NVGPU-3178 Change-Id: Ia064f383131ad3a7db56b5dcc02c754a7cc3e6f6 Signed-off-by: Scott Long <scottl@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2190094 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-by: Adeel Raza <araza@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
Alex Waterman
parent
06949c508f
commit
0a013812a5
@@ -428,7 +428,7 @@ struct nvgpu_falcon *nvgpu_falcon_get_instance(struct gk20a *g, u32 flcn_id)
|
|||||||
return flcn;
|
return flcn;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int falcon_sw_init(struct gk20a *g, struct nvgpu_falcon *flcn)
|
static int falcon_sw_chip_init(struct gk20a *g, struct nvgpu_falcon *flcn)
|
||||||
{
|
{
|
||||||
u32 ver = nvgpu_safe_add_u32(g->params.gpu_arch, g->params.gpu_impl);
|
u32 ver = nvgpu_safe_add_u32(g->params.gpu_arch, g->params.gpu_impl);
|
||||||
int err = 0;
|
int err = 0;
|
||||||
@@ -474,7 +474,7 @@ int nvgpu_falcon_sw_init(struct gk20a *g, u32 flcn_id)
|
|||||||
flcn->g = g;
|
flcn->g = g;
|
||||||
|
|
||||||
/* call SW init methods to assign flcn base & support of a falcon */
|
/* call SW init methods to assign flcn base & support of a falcon */
|
||||||
err = falcon_sw_init(g, flcn);
|
err = falcon_sw_chip_init(g, flcn);
|
||||||
if (err != 0) {
|
if (err != 0) {
|
||||||
nvgpu_err(g, "Chip specific falcon sw init failed %d", err);
|
nvgpu_err(g, "Chip specific falcon sw init failed %d", err);
|
||||||
return err;
|
return err;
|
||||||
|
|||||||
Reference in New Issue
Block a user