aboutsummaryrefslogtreecommitdiffstats
path: root/plat
diff options
context:
space:
mode:
authorAnthony Zhou <anzhou@nvidia.com>2017-04-28 13:52:58 +0800
committerVarun Wadekar <vwadekar@nvidia.com>2019-11-13 13:28:03 -0800
commit73dad7f9c70eb1a867791efefc077e80cef279e5 (patch)
treebd54d95df7acd21f6160e231f7ec4206b9dfa502 /plat
parent2fdd9ae6c7b79b2e667a743eb3d781ea0e7f1da0 (diff)
downloadplatform_external_arm-trusted-firmware-73dad7f9c70eb1a867791efefc077e80cef279e5.tar.gz
platform_external_arm-trusted-firmware-73dad7f9c70eb1a867791efefc077e80cef279e5.tar.bz2
platform_external_arm-trusted-firmware-73dad7f9c70eb1a867791efefc077e80cef279e5.zip
Tegra194: mce: fix function declaration conflicts
To fix MISRA defects, remove union in t186 MCE drivers this driver should compatible with that. Change-Id: I09e96a1874dd86626c7e41c92a1484a84e387402 Signed-off-by: Anthony Zhou <anzhou@nvidia.com>
Diffstat (limited to 'plat')
-rw-r--r--plat/nvidia/tegra/soc/t194/drivers/mce/mce.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plat/nvidia/tegra/soc/t194/drivers/mce/mce.c b/plat/nvidia/tegra/soc/t194/drivers/mce/mce.c
index f13643fc0..0a6515e1c 100644
--- a/plat/nvidia/tegra/soc/t194/drivers/mce/mce.c
+++ b/plat/nvidia/tegra/soc/t194/drivers/mce/mce.c
@@ -25,7 +25,7 @@
/*******************************************************************************
* Common handler for all MCE commands
******************************************************************************/
-int32_t mce_command_handler(mce_cmd_t cmd, uint64_t arg0, uint64_t arg1,
+int32_t mce_command_handler(uint64_t cmd, uint64_t arg0, uint64_t arg1,
uint64_t arg2)
{
uint64_t ret64 = 0, arg3, arg4, arg5;
@@ -161,7 +161,7 @@ int32_t mce_command_handler(mce_cmd_t cmd, uint64_t arg0, uint64_t arg1,
break;
default:
- ERROR("unknown MCE command (%lld)\n", cmd);
+ ERROR("unknown MCE command (%llu)\n", cmd);
ret = EINVAL;
break;
}
@@ -196,7 +196,7 @@ int32_t mce_update_gsc_tzram(void)
/*******************************************************************************
* Handler to issue the UPDATE_CSTATE_INFO request
******************************************************************************/
-void mce_update_cstate_info(mce_cstate_info_t *cstate)
+void mce_update_cstate_info(const mce_cstate_info_t *cstate)
{
/* issue the UPDATE_CSTATE_INFO request */
nvg_update_cstate_info(cstate->cluster, cstate->ccplex, cstate->system,