mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-05-08 18:41:22 +00:00
PSCI: Fix MISRA defects in common and setup code
MISRA C-2012 Rules 10.1, 10.3, 17.8 and 20.7. Change-Id: I3980bd2a1d845559af4bbe2887a0250d0506a064 Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
This commit is contained in:
parent
abce1dce8b
commit
6b7b0f3686
6 changed files with 214 additions and 164 deletions
|
@ -344,7 +344,7 @@ int psci_affinity_info(u_register_t target_affinity,
|
|||
unsigned int lowest_affinity_level);
|
||||
int psci_migrate(u_register_t target_cpu);
|
||||
int psci_migrate_info_type(void);
|
||||
long psci_migrate_info_up_cpu(void);
|
||||
u_register_t psci_migrate_info_up_cpu(void);
|
||||
int psci_node_hw_state(u_register_t target_cpu,
|
||||
unsigned int power_level);
|
||||
int psci_features(unsigned int psci_fid);
|
||||
|
|
|
@ -58,17 +58,17 @@ typedef struct psci_lib_args {
|
|||
.h.type = (uint8_t)PARAM_PSCI_LIB_ARGS, \
|
||||
.h.version = (uint8_t)VERSION_1, \
|
||||
.h.size = (uint16_t)sizeof(_name), \
|
||||
.h.attr = 0, \
|
||||
.h.attr = 0U, \
|
||||
.mailbox_ep = (_entry) \
|
||||
}
|
||||
|
||||
/* Helper macro to verify the pointer to psci_lib_args_t structure */
|
||||
#define VERIFY_PSCI_LIB_ARGS_V1(_p) ((_p) \
|
||||
#define VERIFY_PSCI_LIB_ARGS_V1(_p) (((_p) != NULL) \
|
||||
&& ((_p)->h.type == PARAM_PSCI_LIB_ARGS) \
|
||||
&& ((_p)->h.version == VERSION_1) \
|
||||
&& ((_p)->h.size == sizeof(*(_p))) \
|
||||
&& ((_p)->h.attr == 0) \
|
||||
&& ((_p)->mailbox_ep))
|
||||
&& ((_p)->mailbox_ep != NULL))
|
||||
|
||||
/******************************************************************************
|
||||
* PSCI Library Interfaces
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue