mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-18 18:44:22 +00:00
fix(versal): add external declaration
This corrects the MISRA violation C2012-8.4: A compatible declaration shall be visible when an object or function with external linkage is defined. Change-Id: I91817596c5de84b259a5dffcc01a7b1106a5b7a4 Signed-off-by: Maheedhar Bollapalli <maheedharsai.bollapalli@amd.com>
This commit is contained in:
parent
6c08d1df0c
commit
16c611f8a6
5 changed files with 13 additions and 9 deletions
|
@ -8,6 +8,7 @@
|
|||
#include <plat/common/platform.h>
|
||||
|
||||
#include <platform_def.h>
|
||||
#include <plat_clkfunc.h>
|
||||
#include <plat_private.h>
|
||||
|
||||
uint32_t plat_get_syscnt_freq2(void)
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#include <common/debug.h>
|
||||
#include <lib/mmio.h>
|
||||
#include <lib/smccc.h>
|
||||
#include <plat/common/platform.h>
|
||||
#include <services/arm_arch_svc.h>
|
||||
|
||||
#include <plat_private.h>
|
||||
|
|
|
@ -34,6 +34,8 @@ void plat_versal_gic_cpuif_disable(void);
|
|||
void plat_versal_gic_pcpu_init(void);
|
||||
void plat_versal_gic_save(void);
|
||||
void plat_versal_gic_resume(void);
|
||||
void plat_versal_gic_redistif_on(void);
|
||||
void plat_versal_gic_redistif_off(void);
|
||||
|
||||
uint32_t versal_calc_core_pos(u_register_t mpidr);
|
||||
/*
|
||||
|
|
|
@ -126,7 +126,7 @@ static void versal_pwr_domain_suspend_finish(
|
|||
plat_versal_gic_cpuif_enable();
|
||||
}
|
||||
|
||||
void versal_pwr_domain_on_finish(const psci_power_state_t *target_state)
|
||||
static void versal_pwr_domain_on_finish(const psci_power_state_t *target_state)
|
||||
{
|
||||
/* Enable the gic cpu interface */
|
||||
plat_versal_gic_pcpu_init();
|
||||
|
|
|
@ -68,14 +68,14 @@ static int32_t sip_svc_setup(void)
|
|||
*
|
||||
* Return: Unused.
|
||||
*/
|
||||
uintptr_t sip_svc_smc_handler(uint32_t smc_fid,
|
||||
u_register_t x1,
|
||||
u_register_t x2,
|
||||
u_register_t x3,
|
||||
u_register_t x4,
|
||||
void *cookie,
|
||||
void *handle,
|
||||
u_register_t flags)
|
||||
static uintptr_t sip_svc_smc_handler(uint32_t smc_fid,
|
||||
u_register_t x1,
|
||||
u_register_t x2,
|
||||
u_register_t x3,
|
||||
u_register_t x4,
|
||||
void *cookie,
|
||||
void *handle,
|
||||
u_register_t flags)
|
||||
{
|
||||
VERBOSE("SMCID: 0x%08x, x1: 0x%016" PRIx64 ", x2: 0x%016" PRIx64 ", x3: 0x%016" PRIx64 ", x4: 0x%016" PRIx64 "\n",
|
||||
smc_fid, x1, x2, x3, x4);
|
||||
|
|
Loading…
Add table
Reference in a new issue