Commit dc6aad2e authored by Roberto Vargas's avatar Roberto Vargas
Browse files

Fix MISRA rule 8.3 Part 1



Rule 8.3: All declarations of an object or function shall
          use the same names and type qualifiers.

Fixed for:

	make DEBUG=1 PLAT=fvp LOG_LEVEL=50 all

Change-Id: I48201c9ef022f6bd42ea8644529afce70f9b3f22
Signed-off-by: default avatarRoberto Vargas <roberto.vargas@arm.com>
parent ce3f9a6d
/* /*
* Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved. * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
...@@ -402,7 +402,7 @@ void gicv3_disable_interrupt(unsigned int id, unsigned int proc_num); ...@@ -402,7 +402,7 @@ void gicv3_disable_interrupt(unsigned int id, unsigned int proc_num);
void gicv3_set_interrupt_priority(unsigned int id, unsigned int proc_num, void gicv3_set_interrupt_priority(unsigned int id, unsigned int proc_num,
unsigned int priority); unsigned int priority);
void gicv3_set_interrupt_type(unsigned int id, unsigned int proc_num, void gicv3_set_interrupt_type(unsigned int id, unsigned int proc_num,
unsigned int group); unsigned int type);
void gicv3_raise_secure_g0_sgi(int sgi_num, u_register_t target); void gicv3_raise_secure_g0_sgi(int sgi_num, u_register_t target);
void gicv3_set_spi_routing(unsigned int id, unsigned int irm, void gicv3_set_spi_routing(unsigned int id, unsigned int irm,
u_register_t mpidr); u_register_t mpidr);
......
/* /*
* Copyright (c) 2014-2016, ARM Limited and Contributors. All rights reserved. * Copyright (c) 2014-2018, ARM Limited and Contributors. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
...@@ -118,7 +118,7 @@ void tzc400_configure_region(unsigned int filters, ...@@ -118,7 +118,7 @@ void tzc400_configure_region(unsigned int filters,
unsigned long long region_base, unsigned long long region_base,
unsigned long long region_top, unsigned long long region_top,
tzc_region_attributes_t sec_attr, tzc_region_attributes_t sec_attr,
unsigned int ns_device_access); unsigned int nsaid_permissions);
void tzc400_set_action(tzc_action_t action); void tzc400_set_action(tzc_action_t action);
void tzc400_enable_filters(void); void tzc400_enable_filters(void);
void tzc400_disable_filters(void); void tzc400_disable_filters(void);
......
...@@ -70,7 +70,7 @@ typedef struct io_block_spec { ...@@ -70,7 +70,7 @@ typedef struct io_block_spec {
/* Open a connection to a device */ /* Open a connection to a device */
int io_dev_open(const struct io_dev_connector *dev_con, int io_dev_open(const struct io_dev_connector *dev_con,
const uintptr_t dev_spec, const uintptr_t dev_spec,
uintptr_t *dev_handle); uintptr_t *handle);
/* Initialise a device explicitly - to permit lazy initialisation or /* Initialise a device explicitly - to permit lazy initialisation or
......
...@@ -125,7 +125,7 @@ int arm_validate_ns_entrypoint(uintptr_t entrypoint); ...@@ -125,7 +125,7 @@ int arm_validate_ns_entrypoint(uintptr_t entrypoint);
void arm_system_pwr_domain_save(void); void arm_system_pwr_domain_save(void);
void arm_system_pwr_domain_resume(void); void arm_system_pwr_domain_resume(void);
void arm_program_trusted_mailbox(uintptr_t address); void arm_program_trusted_mailbox(uintptr_t address);
int arm_psci_read_mem_protect(int *val); int arm_psci_read_mem_protect(int *enabled);
int arm_nor_psci_write_mem_protect(int val); int arm_nor_psci_write_mem_protect(int val);
void arm_nor_psci_do_mem_protect(void); void arm_nor_psci_do_mem_protect(void);
int arm_psci_mem_protect_chk(uintptr_t base, u_register_t length); int arm_psci_mem_protect_chk(uintptr_t base, u_register_t length);
......
/* /*
* Copyright (c) 2013-2016, ARM Limited and Contributors. All rights reserved. * Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
...@@ -40,13 +40,13 @@ ...@@ -40,13 +40,13 @@
/******************************************************************************* /*******************************************************************************
* Function & variable prototypes * Function & variable prototypes
******************************************************************************/ ******************************************************************************/
void fvp_pwrc_write_pcoffr(u_register_t); void fvp_pwrc_write_pcoffr(u_register_t mpidr);
void fvp_pwrc_write_ppoffr(u_register_t); void fvp_pwrc_write_ppoffr(u_register_t mpidr);
void fvp_pwrc_write_pponr(u_register_t); void fvp_pwrc_write_pponr(u_register_t mpidr);
void fvp_pwrc_set_wen(u_register_t); void fvp_pwrc_set_wen(u_register_t mpidr);
void fvp_pwrc_clr_wen(u_register_t); void fvp_pwrc_clr_wen(u_register_t mpidr);
unsigned int fvp_pwrc_read_psysr(u_register_t); unsigned int fvp_pwrc_read_psysr(u_register_t mpidr);
unsigned int fvp_pwrc_get_cpu_wkr(u_register_t); unsigned int fvp_pwrc_get_cpu_wkr(u_register_t mpidr);
#endif /*__ASSEMBLY__*/ #endif /*__ASSEMBLY__*/
......
/* /*
* Copyright (c) 2013-2017, ARM Limited and Contributors. All rights reserved. * Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
...@@ -74,10 +74,10 @@ static void fvp_cluster_pwrdwn_common(void) ...@@ -74,10 +74,10 @@ static void fvp_cluster_pwrdwn_common(void)
* support SYSTEM_SUSPEND and it is `faked` in firmware. Hence, for wake up * support SYSTEM_SUSPEND and it is `faked` in firmware. Hence, for wake up
* from `fake` system suspend the GIC must not be powered off. * from `fake` system suspend the GIC must not be powered off.
*/ */
void arm_gicv3_distif_pre_save(unsigned int proc_num) void arm_gicv3_distif_pre_save(unsigned int rdist_proc_num)
{} {}
void arm_gicv3_distif_post_restore(unsigned int proc_num) void arm_gicv3_distif_post_restore(unsigned int rdist_proc_num)
{} {}
static void fvp_power_domain_on_finish_common(const psci_power_state_t *target_state) static void fvp_power_domain_on_finish_common(const psci_power_state_t *target_state)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment