diff options
author | Antonio Niño Díaz <antonio.ninodiaz@arm.com> | 2019-04-01 11:25:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-01 11:25:21 +0100 |
commit | 18ff0b61bb205e01d2c4dba23f1be5fd1081c6b4 (patch) | |
tree | 2b9021e6c5debcaa07b7b561be48a9d1df882e33 /plat | |
parent | 9cadccdff382c2cfed9e5dd2f13c648f6c3f1eec (diff) | |
parent | 279faa6d5dbcc9f63ef1d5f5283119fc2452483c (diff) | |
download | platform_external_arm-trusted-firmware-18ff0b61bb205e01d2c4dba23f1be5fd1081c6b4.tar.gz platform_external_arm-trusted-firmware-18ff0b61bb205e01d2c4dba23f1be5fd1081c6b4.tar.bz2 platform_external_arm-trusted-firmware-18ff0b61bb205e01d2c4dba23f1be5fd1081c6b4.zip |
Merge pull request #1886 from ambroise-arm/av/static-checks
Fix extra compilation warnings
Diffstat (limited to 'plat')
-rw-r--r-- | plat/arm/board/fvp/fvp_pm.c | 1 | ||||
-rw-r--r-- | plat/arm/board/fvp/fvp_private.h | 3 | ||||
-rw-r--r-- | plat/arm/board/juno/juno_bl1_setup.c | 2 | ||||
-rw-r--r-- | plat/arm/board/juno/juno_err.c | 3 | ||||
-rw-r--r-- | plat/arm/board/juno/juno_topology.c | 4 | ||||
-rw-r--r-- | plat/arm/board/sgi575/sgi575_plat.c | 4 | ||||
-rw-r--r-- | plat/arm/board/sgi575/sgi575_security.c | 3 | ||||
-rw-r--r-- | plat/arm/css/sgi/sgi_bl31_setup.c | 5 | ||||
-rw-r--r-- | plat/arm/css/sgi/sgi_interconnect.c | 3 | ||||
-rw-r--r-- | plat/arm/css/sgi/sgi_topology.c | 1 | ||||
-rw-r--r-- | plat/common/plat_spm_rd.c | 3 | ||||
-rw-r--r-- | plat/common/plat_spm_sp.c | 3 |
12 files changed, 22 insertions, 13 deletions
diff --git a/plat/arm/board/fvp/fvp_pm.c b/plat/arm/board/fvp/fvp_pm.c index ecf0b0135..42dec8dfc 100644 --- a/plat/arm/board/fvp/fvp_pm.c +++ b/plat/arm/board/fvp/fvp_pm.c @@ -20,6 +20,7 @@ #include <platform_def.h> #include "fvp_private.h" +#include "../drivers/arm/gic/v3/gicv3_private.h" #if ARM_RECOM_STATE_ID_ENC diff --git a/plat/arm/board/fvp/fvp_private.h b/plat/arm/board/fvp/fvp_private.h index 3d9653739..5067d3a2f 100644 --- a/plat/arm/board/fvp/fvp_private.h +++ b/plat/arm/board/fvp/fvp_private.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014-2018, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2014-2019, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -20,5 +20,4 @@ void fvp_interconnect_enable(void); void fvp_interconnect_disable(void); void tsp_early_platform_setup(void); - #endif /* FVP_PRIVATE_H */ diff --git a/plat/arm/board/juno/juno_bl1_setup.c b/plat/arm/board/juno/juno_bl1_setup.c index f72a6ff1a..33f5c4791 100644 --- a/plat/arm/board/juno/juno_bl1_setup.c +++ b/plat/arm/board/juno/juno_bl1_setup.c @@ -61,7 +61,7 @@ static int is_watchdog_reset(void) ******************************************************************************/ int plat_arm_bl1_fwu_needed(void) { - const uint32_t *nv_flags_ptr = (const uint32_t *)V2M_SYS_NVFLAGS_ADDR; + const int32_t *nv_flags_ptr = (const int32_t *)V2M_SYS_NVFLAGS_ADDR; /* Check if TOC is invalid or watchdog reset happened. */ if ((arm_io_is_toc_valid() != 1) || diff --git a/plat/arm/board/juno/juno_err.c b/plat/arm/board/juno/juno_err.c index f80ff2452..700b96cb1 100644 --- a/plat/arm/board/juno/juno_err.c +++ b/plat/arm/board/juno/juno_err.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2015-2019, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -7,6 +7,7 @@ #include <errno.h> #include <arch_helpers.h> +#include <plat/arm/common/plat_arm.h> #include <plat/common/platform.h> #include <platform_def.h> diff --git a/plat/arm/board/juno/juno_topology.c b/plat/arm/board/juno/juno_topology.c index ca5c344d6..052ab9f8a 100644 --- a/plat/arm/board/juno/juno_topology.c +++ b/plat/arm/board/juno/juno_topology.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2018, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2016-2019, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -20,7 +20,7 @@ static scmi_channel_plat_info_t juno_scmi_plat_info = { .ring_doorbell = &mhu_ring_doorbell, }; -scmi_channel_plat_info_t *plat_css_get_scmi_info() +scmi_channel_plat_info_t *plat_css_get_scmi_info(void) { return &juno_scmi_plat_info; } diff --git a/plat/arm/board/sgi575/sgi575_plat.c b/plat/arm/board/sgi575/sgi575_plat.c index d1a1fbf46..0d3fd16ab 100644 --- a/plat/arm/board/sgi575/sgi575_plat.c +++ b/plat/arm/board/sgi575/sgi575_plat.c @@ -1,11 +1,13 @@ /* - * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <plat/common/platform.h> +#include <sgi_variant.h> + unsigned int plat_arm_sgi_get_platform_id(void) { return mmio_read_32(SSC_VERSION) & SSC_VERSION_PART_NUM_MASK; diff --git a/plat/arm/board/sgi575/sgi575_security.c b/plat/arm/board/sgi575/sgi575_security.c index 8417e1008..440f18d55 100644 --- a/plat/arm/board/sgi575/sgi575_security.c +++ b/plat/arm/board/sgi575/sgi575_security.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -8,6 +8,7 @@ #include <common/debug.h> #include <drivers/arm/tzc_dmc620.h> +#include <plat/arm/common/plat_arm.h> uintptr_t sgi575_dmc_base[] = { SGI575_DMC620_BASE0, diff --git a/plat/arm/css/sgi/sgi_bl31_setup.c b/plat/arm/css/sgi/sgi_bl31_setup.c index 8fa5b01b2..ba050d5f1 100644 --- a/plat/arm/css/sgi/sgi_bl31_setup.c +++ b/plat/arm/css/sgi/sgi_bl31_setup.c @@ -13,6 +13,7 @@ #include <drivers/arm/css/css_mhu_doorbell.h> #include <drivers/arm/css/scmi.h> #include <plat/arm/common/plat_arm.h> +#include <plat/common/platform.h> #include <sgi_ras.h> #include <sgi_variant.h> @@ -35,7 +36,7 @@ static scmi_channel_plat_info_t rd_n1e1_edge_scmi_plat_info = { .ring_doorbell = &mhuv2_ring_doorbell, }; -scmi_channel_plat_info_t *plat_css_get_scmi_info() +scmi_channel_plat_info_t *plat_css_get_scmi_info(void) { if (sgi_plat_info.platform_id == RD_N1E1_EDGE_SID_VER_PART_NUM) return &rd_n1e1_edge_scmi_plat_info; @@ -43,7 +44,7 @@ scmi_channel_plat_info_t *plat_css_get_scmi_info() return &sgi575_scmi_plat_info; else panic(); -}; +} void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1, u_register_t arg2, u_register_t arg3) diff --git a/plat/arm/css/sgi/sgi_interconnect.c b/plat/arm/css/sgi/sgi_interconnect.c index e86c760d1..e9cd81256 100644 --- a/plat/arm/css/sgi/sgi_interconnect.c +++ b/plat/arm/css/sgi/sgi_interconnect.c @@ -1,11 +1,12 @@ /* - * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <arch_helpers.h> #include <common/debug.h> +#include <plat/arm/common/plat_arm.h> /* * For SGI575 which support FCM (with automatic interconnect enter/exit), diff --git a/plat/arm/css/sgi/sgi_topology.c b/plat/arm/css/sgi/sgi_topology.c index f9dbdefe9..7aa9e40d3 100644 --- a/plat/arm/css/sgi/sgi_topology.c +++ b/plat/arm/css/sgi/sgi_topology.c @@ -5,6 +5,7 @@ */ #include <plat/arm/common/plat_arm.h> +#include <plat/common/platform.h> #include <sgi_variant.h> diff --git a/plat/common/plat_spm_rd.c b/plat/common/plat_spm_rd.c index 0c72cb7aa..ebd3e6dc6 100644 --- a/plat/common/plat_spm_rd.c +++ b/plat/common/plat_spm_rd.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018, Arm Limited. All rights reserved. + * Copyright (c) 2018-2019, Arm Limited. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -14,6 +14,7 @@ #include <common/debug.h> #include <common/fdt_wrappers.h> #include <lib/object_pool.h> +#include <plat/common/platform.h> #include <services/sp_res_desc.h> /******************************************************************************* diff --git a/plat/common/plat_spm_sp.c b/plat/common/plat_spm_sp.c index ce4827992..bc3d6a015 100644 --- a/plat/common/plat_spm_sp.c +++ b/plat/common/plat_spm_sp.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018, Arm Limited. All rights reserved. + * Copyright (c) 2018-2019, Arm Limited. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -9,6 +9,7 @@ #include <platform_def.h> #include <common/debug.h> +#include <plat/common/platform.h> #include <tools_share/sptool.h> static unsigned int sp_next; |