summaryrefslogtreecommitdiff
path: root/include/plat
diff options
context:
space:
mode:
authorAntonio Nino Diaz <antonio.ninodiaz@arm.com>2019-01-15 14:19:50 +0000
committerAntonio Nino Diaz <antonio.ninodiaz@arm.com>2019-01-15 14:19:50 +0000
commit234bc7f88ed42a5305016009c47e8a6dc3408f96 (patch)
treee6716a4b5dde3282a08de2b534d49add178d6918 /include/plat
parentfe77b53e32692fc5d35df208e2b3d21a28f6228b (diff)
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>
Diffstat (limited to 'include/plat')
-rw-r--r--include/plat/arm/common/arm_def.h2
-rw-r--r--include/plat/arm/common/arm_spm_def.h2
-rw-r--r--include/plat/arm/css/common/css_def.h2
3 files changed, 0 insertions, 6 deletions
diff --git a/include/plat/arm/common/arm_def.h b/include/plat/arm/common/arm_def.h
index 4e9c70aa..e27dd80e 100644
--- a/include/plat/arm/common/arm_def.h
+++ b/include/plat/arm/common/arm_def.h
@@ -6,8 +6,6 @@
#ifndef ARM_DEF_H
#define ARM_DEF_H
-#include <platform_def.h>
-
#include <arch.h>
#include <common/interrupt_props.h>
#include <common/tbbr/tbbr_img_def.h>
diff --git a/include/plat/arm/common/arm_spm_def.h b/include/plat/arm/common/arm_spm_def.h
index bdcbc96a..1c6f6e73 100644
--- a/include/plat/arm/common/arm_spm_def.h
+++ b/include/plat/arm/common/arm_spm_def.h
@@ -9,8 +9,6 @@
#include <lib/utils_def.h>
#include <lib/xlat_tables/xlat_tables_defs.h>
-#include <arm_def.h>
-
/*
* Reserve 4 MiB for binaries of Secure Partitions and Resource Description
* blobs.
diff --git a/include/plat/arm/css/common/css_def.h b/include/plat/arm/css/common/css_def.h
index 6b355a4e..575db04f 100644
--- a/include/plat/arm/css/common/css_def.h
+++ b/include/plat/arm/css/common/css_def.h
@@ -11,8 +11,6 @@
#include <drivers/arm/gic_common.h>
#include <drivers/arm/tzc400.h>
-#include <arm_def.h>
-
/*************************************************************************
* Definitions common to all ARM Compute SubSystems (CSS)
*************************************************************************/