From 73dad7f9c70eb1a867791efefc077e80cef279e5 Mon Sep 17 00:00:00 2001 From: Anthony Zhou <anzhou@nvidia.com> Date: Fri, 28 Apr 2017 13:52:58 +0800 Subject: [PATCH] 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> --- plat/nvidia/tegra/soc/t194/drivers/mce/mce.c | 6 +++--- 1 file 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, -- GitLab