arm-trusted-firmware/plat/st/stm32mp1
Madhukar Pappireddy ca661a0092 Enable -Wredundant-decls warning check
This flag warns if anything is declared more than once in the same
scope, even in cases where multiple declaration is valid and changes
nothing.

Consequently, this patch also fixes the issues reported by this
flag. Consider the following two lines of code from two different source
files(bl_common.h and bl31_plat_setup.c):

IMPORT_SYM(uintptr_t, __RO_START__, BL_CODE_BASE);
IMPORT_SYM(unsigned long, __RO_START__, BL2_RO_BASE);

The IMPORT_SYM macro which actually imports a linker symbol as a C expression.
The macro defines the __RO_START__ as an extern variable twice, one for each
instance. __RO_START__ symbol is defined by the linker script to mark the start
of the Read-Only area of the memory map.

Essentially, the platform code redefines the linker symbol with a different
(relevant) name rather than using the standard symbol. A simple solution to
fix this issue in the platform code for redundant declarations warning is
to remove the second IMPORT_SYM and replace it with following assignment

static const unsigned long BL2_RO_BASE = BL_CODE_BASE;

Change-Id: If4835d1ee462d52b75e5afd2a59b64828707c5aa
Signed-off-by: Madhukar Pappireddy <madhukar.pappireddy@arm.com>
2020-01-28 11:09:02 -06:00
..
include Enable -Wredundant-decls warning check 2020-01-28 11:09:02 -06:00
services stm322mp1: add BSEC service 2019-01-18 15:45:08 +01:00
sp_min stm32mp1: manage CONSOLE_FLAG_TRANSLATE_CRLF and cleanup driver 2019-09-10 17:21:58 +02:00
bl2_plat_setup.c stm32mp1: add authentication support for stm32image 2019-09-23 09:48:07 +00:00
plat_bl2_mem_params_desc.c stm32mp1: add OP-TEE support 2019-04-23 13:34:12 +02:00
plat_image_load.c Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
platform.mk stm32mp1: Add support for SPI-NOR boot device 2020-01-20 11:32:59 +01:00
stm32mp1.S stm32mp1: Link BL2, BL32 and DTB in one binary 2018-07-24 17:18:41 +02:00
stm32mp1.ld.S stm32mp1: add OP-TEE support 2019-04-23 13:34:12 +02:00
stm32mp1_boot_device.c Enable -Wredundant-decls warning check 2020-01-28 11:09:02 -06:00
stm32mp1_context.c stm32mp1: update clock driver 2019-02-14 11:20:23 +01:00
stm32mp1_dbgmcu.c stm32mp1: print information about SoC 2019-09-02 17:49:30 +02:00
stm32mp1_def.h Enable -Wredundant-decls warning check 2020-01-28 11:09:02 -06:00
stm32mp1_gic.c stm32mp1: split code between common and private parts 2019-02-14 11:20:23 +01:00
stm32mp1_helper.S stm32mp1: remove some dependencies on clocks and reset in drivers 2019-02-14 11:20:23 +01:00
stm32mp1_pm.c stm32mp1: update clock driver 2019-02-14 11:20:23 +01:00
stm32mp1_private.c bsec: move bsec_mode_is_closed_device() service to platform 2019-09-20 23:21:10 +02:00
stm32mp1_security.c stm32mp1: add OP-TEE support 2019-04-23 13:34:12 +02:00
stm32mp1_stack_protector.c Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
stm32mp1_syscfg.c stm32mp1: add general SYSCFG management 2019-06-17 14:03:51 +02:00
stm32mp1_topology.c Sanitise includes across codebase 2019-01-04 10:43:17 +00:00