plat/arm: Fix header dependencies
authorAntonio Nino Diaz <antonio.ninodiaz@arm.com>
Tue, 15 Jan 2019 14:19:50 +0000 (14:19 +0000)
committerAntonio Nino Diaz <antonio.ninodiaz@arm.com>
Tue, 15 Jan 2019 14:19:50 +0000 (14:19 +0000)
commit234bc7f88ed42a5305016009c47e8a6dc3408f96
treee6716a4b5dde3282a08de2b534d49add178d6918
parentfe77b53e32692fc5d35df208e2b3d21a28f6228b
plat/arm: Fix header dependencies

From now on, platform_def.h must include any header with definitions that
are platform-specific (like arm_def.h) and the included headers mustn't
include back platform_def.h, and shouldn't be used by other files. Only
platform_def.h should be included in other files. This will ensure that all
needed definitions are present, rather than needing to include all the
headers in all the definitions' headers just in case.

This also prevents problems like cyclic dependencies.

Change-Id: I9d3cf4d1de4b956fa035c79545222697acdaf5ca
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
50 files changed:
include/plat/arm/common/arm_def.h
include/plat/arm/common/arm_spm_def.h
include/plat/arm/css/common/css_def.h
plat/arm/board/common/aarch32/board_arm_helpers.S
plat/arm/board/common/aarch64/board_arm_helpers.S
plat/arm/board/common/board_arm_trusted_boot.c
plat/arm/board/fvp/aarch32/fvp_helpers.S
plat/arm/board/fvp/aarch64/fvp_helpers.S
plat/arm/board/fvp/drivers/pwrc/fvp_pwrc.c
plat/arm/board/fvp/fvp_bl2_setup.c
plat/arm/board/fvp/fvp_bl2u_setup.c
plat/arm/board/fvp/fvp_common.c
plat/arm/board/fvp/fvp_pm.c
plat/arm/board/fvp/fvp_trusted_boot.c
plat/arm/board/fvp/include/plat_macros.S
plat/arm/board/juno/aarch32/juno_helpers.S
plat/arm/board/juno/aarch64/juno_helpers.S
plat/arm/board/juno/juno_bl1_setup.c
plat/arm/board/juno/juno_common.c
plat/arm/board/juno/juno_err.c
plat/arm/board/juno/juno_security.c
plat/arm/board/juno/juno_stack_protector.c
plat/arm/board/juno/juno_topology.c
plat/arm/board/juno/juno_trng.c
plat/arm/board/juno/juno_tzmp1_def.h
plat/arm/board/n1sdp/include/platform_def.h
plat/arm/board/n1sdp/n1sdp_plat.c
plat/arm/common/arm_bl1_setup.c
plat/arm/common/arm_bl2_el3_setup.c
plat/arm/common/arm_bl2_setup.c
plat/arm/common/arm_bl2u_setup.c
plat/arm/common/arm_bl31_setup.c
plat/arm/common/arm_gicv3.c
plat/arm/common/arm_image_load.c
plat/arm/common/arm_pm.c
plat/arm/common/arm_tzc400.c
plat/arm/common/arm_tzc_dmc500.c
plat/arm/common/tsp/arm_tsp_setup.c
plat/arm/css/common/aarch32/css_helpers.S
plat/arm/css/common/aarch64/css_helpers.S
plat/arm/css/common/css_bl2_setup.c
plat/arm/css/drivers/mhu/css_mhu.c
plat/arm/css/drivers/scp/css_bom_bootloader.c
plat/arm/css/drivers/scp/css_pm_scmi.c
plat/arm/css/drivers/scp/css_sds.c
plat/arm/css/drivers/scpi/css_scpi.c
plat/arm/css/drivers/sds/sds.c
plat/arm/css/sgi/sgi_plat.c
plat/arm/css/sgm/sgm_mmap_config.c
plat/arm/soc/common/soc_css_security.c