mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-22 20:38:03 +00:00
fix(zynqmp): variable conflicting with external linkage
This corrects the MISRA violation C2012-5.8: Identifiers that define objects or functions with external linkage shall be unique. Modify the variable name to prevent conflict with external object linkage. Change-Id: I32bed542c4810508174029ab0aaec18bcdf849a5 Signed-off-by: Maheedhar Bollapalli <maheedharsai.bollapalli@amd.com>
This commit is contained in:
parent
17a8f41e45
commit
eda23fa5aa
2 changed files with 6 additions and 6 deletions
|
@ -769,7 +769,7 @@ static enum pm_ret_status fw_api_version(uint32_t id, uint32_t *version,
|
|||
enum pm_ret_status check_api_dependency(uint8_t id)
|
||||
{
|
||||
uint8_t i;
|
||||
uint32_t version;
|
||||
uint32_t version_type;
|
||||
int ret;
|
||||
|
||||
for (i = 0U; i < ARRAY_SIZE(api_dep_table); i++) {
|
||||
|
@ -779,13 +779,13 @@ enum pm_ret_status check_api_dependency(uint8_t id)
|
|||
}
|
||||
|
||||
ret = fw_api_version(api_dep_table[i].api_id,
|
||||
&version, 1);
|
||||
&version_type, 1);
|
||||
if (ret != PM_RET_SUCCESS) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* Check if fw version matches TF-A expected version */
|
||||
if (version != tfa_expected_ver_id[api_dep_table[i].api_id]) {
|
||||
if (version_type != tfa_expected_ver_id[api_dep_table[i].api_id]) {
|
||||
return PM_RET_ERROR_NOTSUPPORTED;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -556,12 +556,12 @@ uint64_t pm_smc_handler(uint32_t smc_fid, uint64_t x1, uint64_t x2, uint64_t x3,
|
|||
|
||||
case PM_FEATURE_CHECK:
|
||||
{
|
||||
uint32_t version = 0;
|
||||
uint32_t version_type = 0;
|
||||
uint32_t bit_mask[2] = {0};
|
||||
|
||||
ret = pm_feature_check(pm_arg[0], &version, bit_mask,
|
||||
ret = pm_feature_check(pm_arg[0], &version_type, bit_mask,
|
||||
ARRAY_SIZE(bit_mask));
|
||||
SMC_RET2(handle, ((uint64_t)ret | ((uint64_t)version << 32U)),
|
||||
SMC_RET2(handle, ((uint64_t)ret | ((uint64_t)version_type << 32U)),
|
||||
((uint64_t)bit_mask[0] | ((uint64_t)bit_mask[1] << 32U)));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue