mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-25 14:25:44 +00:00
fix(versal): typecast expressions to match data type
This corrects the MISRA violation C2012-10.4: Both operands of an operator in which the usual arithmetic conversions are performed shall have the same essential type category. The condition is explicitly checked against 0U, appending 'U' and typecasting for unsigned comparison. Change-Id: Ide520aa8ec900d0e23e80753d7082e34b6897e8f Signed-off-by: Maheedhar Bollapalli <maheedharsai.bollapalli@amd.com>
This commit is contained in:
parent
83bcef3f50
commit
b802b2784c
4 changed files with 4 additions and 4 deletions
plat/xilinx/versal
|
@ -117,7 +117,7 @@ void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1,
|
|||
SET_PARAM_HEAD(&bl33_image_ep_info, PARAM_EP, VERSION_1, 0);
|
||||
SET_SECURITY_STATE(bl33_image_ep_info.h.attr, NON_SECURE);
|
||||
|
||||
PM_PACK_PAYLOAD4(payload, LOADER_MODULE_ID, 1, PM_LOAD_GET_HANDOFF_PARAMS,
|
||||
PM_PACK_PAYLOAD4(payload, LOADER_MODULE_ID, 1U, PM_LOAD_GET_HANDOFF_PARAMS,
|
||||
(uintptr_t)addr >> 32U, (uintptr_t)addr, max_size);
|
||||
ret_status = pm_ipi_send_sync(primary_proc, payload, NULL, 0);
|
||||
if (ret_status == PM_RET_SUCCESS) {
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#define PLATFORM_VERSION_MASK GENMASK(31U, 28U)
|
||||
|
||||
/* number of interrupt handlers. increase as required */
|
||||
#define MAX_INTR_EL3 2
|
||||
#define MAX_INTR_EL3 2U
|
||||
/* List all consoles */
|
||||
#define VERSAL_CONSOLE_ID_none 0
|
||||
#define VERSAL_CONSOLE_ID_pl011 1
|
||||
|
|
|
@ -222,7 +222,7 @@ static void versal_pwr_domain_off(const psci_power_state_t *target_state)
|
|||
* be set.
|
||||
*/
|
||||
ret = pm_feature_check((uint32_t)PM_SELF_SUSPEND, &version_type[0], SECURE_FLAG);
|
||||
if (ret == PM_RET_SUCCESS) {
|
||||
if (ret == (uint32_t)PM_RET_SUCCESS) {
|
||||
fw_api_version = version_type[0] & 0xFFFFU;
|
||||
if (fw_api_version >= 3U) {
|
||||
(void)pm_self_suspend(proc->node_id, MAX_LATENCY, PM_STATE_CPU_OFF, 0,
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#include "pm_defs.h"
|
||||
#include <versal_def.h>
|
||||
|
||||
#define UNDEFINED_CPUID (~0)
|
||||
#define UNDEFINED_CPUID (~0U)
|
||||
|
||||
DEFINE_BAKERY_LOCK(pm_client_secure_lock);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue