fix(platforms): declare unused parameters as void
This corrects the MISRA violation C2012-2.7:
There should be no unused parameters in functions.
Declared unused function parameters as void.
Change-Id: Ifa48fa64e87481bb43a877f39f48108fd2e13c42
Signed-off-by: Nithin G <nithing@amd.com>
Signed-off-by: Maheedhar Bollapalli <maheedharsai.bollapalli@amd.com>
diff --git a/plat/common/plat_bl_common.c b/plat/common/plat_bl_common.c
index 990a36a..ff4d171 100644
--- a/plat/common/plat_bl_common.c
+++ b/plat/common/plat_bl_common.c
@@ -50,6 +50,7 @@
int32_t plat_is_smccc_feature_available(u_register_t fid __unused)
{
+ (void)fid;
return SMC_ARCH_CALL_NOT_SUPPORTED;
}
diff --git a/plat/common/plat_psci_common.c b/plat/common/plat_psci_common.c
index 72b79ad..3e0bdf7 100644
--- a/plat/common/plat_psci_common.c
+++ b/plat/common/plat_psci_common.c
@@ -162,6 +162,7 @@
const plat_local_state_t *states,
unsigned int ncpu)
{
+ (void)lvl;
plat_local_state_t target = PLAT_MAX_OFF_STATE, temp;
const plat_local_state_t *st = states;
unsigned int n = ncpu;