sw_apps:zynqmp_fsbl: Code changes done to avoid warnings

Warnings generated during compiling FSBL sources are addressed.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
Acked-by: Krishna Chaitanya Patakamuri <kpataka@xilinx.com>
This commit is contained in:
Sarat Chand Savitala 2015-08-08 15:44:21 +05:30 committed by Nava kishore Manne
parent 3662d31b97
commit 272bff49fb
5 changed files with 20 additions and 7 deletions

View file

@ -76,6 +76,8 @@ u32 XFsbl_HookAfterBSDownload(void );
u32 XFsbl_HookBeforeHandoff(u32 EarlyHandoff);
u32 XFsbl_HookBeforeFallback(void);
#ifdef __cplusplus
}

View file

@ -74,6 +74,12 @@ static u32 XFsbl_PrimaryBootDeviceInit(XFsblPs * FsblInstancePtr);
static u32 XFsbl_ValidateHeader(XFsblPs * FsblInstancePtr);
static u32 XFsbl_SecondaryBootDeviceInit(XFsblPs * FsblInstancePtr);
/* Functions from xfsbl_misc.c */
int psu_init();
/* Functions from uart.c of BSP */
void Init_Uart(void);
/**
* Functions from xfsbl_misc.c
*/

View file

@ -76,7 +76,6 @@ __inline void XFsbl_Printf(u32 DebugType,char *Format, ...)
}
#endif
/************************** Function Prototypes ******************************/
static char * XFsbl_Itoa(u32 Val, u32 Base);
static void XFsbl_UndefHandler (void);
#ifndef XFSBL_A53
static void XFsbl_SvcHandler (void);

View file

@ -83,7 +83,8 @@ static u32 XFsbl_CheckHandoffCpu (XFsblPs * FsblInstancePtr,
static u32 XFsbl_ConfigureMemory(u32 RunningCpu, u32 DestinationCpu,
u64 Address, u32 Length);
void XFsbl_EccInitialize(u32 Address, u32 Length);
u32 XFsbl_GetLoadAddress(u32 DestinationCpu, u64 * LoadAddressPtr, u32 Length);
u32 XFsbl_GetLoadAddress(u32 DestinationCpu, PTRSIZE * LoadAddressPtr,
u32 Length);
static void XFsbl_CheckPmuFw(XFsblPs * FsblInstancePtr, u32 PartitionNum);
/************************** Variable Definitions *****************************/
@ -513,10 +514,10 @@ void XFsbl_EccInitialize(u32 Address, u32 Length)
}
u32 XFsbl_GetLoadAddress(u32 DestinationCpu, u64 * LoadAddressPtr, u32 Length)
u32 XFsbl_GetLoadAddress(u32 DestinationCpu, PTRSIZE * LoadAddressPtr, u32 Length)
{
u32 Status = XFSBL_SUCCESS;
u64 Address=0U;
PTRSIZE Address=0U;
Address = *LoadAddressPtr;
@ -744,7 +745,7 @@ static u32 XFsbl_PartitionCopy(XFsblPs * FsblInstancePtr, u32 PartitionNum)
u32 ExecState=0U;
XFsblPs_PartitionHeader * PartitionHeader;
u32 SrcAddress=0U;
u64 LoadAddress=0U;
PTRSIZE LoadAddress=0U;
u32 Length=0U;
u32 RunningCpu=0U;
@ -969,7 +970,7 @@ static u32 XFsbl_PartitionValidation(XFsblPs * FsblInstancePtr,
u32 Length=0U;
#endif
#if defined(XFSBL_RSA) || defined(XFSBL_AES) || defined(XFSBL_BS)
u64 LoadAddress=0U;
PTRSIZE LoadAddress=0U;
#endif
#if defined(XFSBL_BS)
u32 BitstreamWordSize = 0;

View file

@ -346,7 +346,12 @@ static u32 XFsbl_GetQspiAddr(u32 Address )
break;
default:
/* RealAddr wont be assigned in this case; */
/*
* We should never reach here as error will be triggered during
* QSPI Init for invalid connection mode. Hence, assign a value (0)
* to RealAddr, to avoid warning.
*/
RealAddr = 0U;
break;
}