diff options
author | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2019-01-11 13:12:58 +0000 |
---|---|---|
committer | Sandrine Bailleux <sandrine.bailleux@arm.com> | 2019-01-25 08:23:20 +0000 |
commit | 09a00ef98c6108fec75dafcc7dbdddacb2ee2e91 (patch) | |
tree | 77b585708a4fd850f0dac3a3f0fcaf34576fa8c9 /plat | |
parent | 9e550b6f75f064b53d74a4ad3c8672332d87451c (diff) | |
download | tf-a-tests-09a00ef98c6108fec75dafcc7dbdddacb2ee2e91.tar.gz |
Sanitise includes of include/drivers across codebase
Enforce full include path for includes.
The reason for this change is that having a global namespace for
includes isn't a good idea. It defeats one of the advantages of having
folders and it introduces problems that are sometimes subtle (because
you may not know the header you are actually including if there are two
of them with the same name).
Change-Id: I45e912b16c9fff81f50840dad7e7f90ed6637b2a
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Diffstat (limited to 'plat')
-rw-r--r-- | plat/arm/common/arm_fwu_io_storage.c | 6 | ||||
-rw-r--r-- | plat/arm/common/arm_io_storage.c | 4 | ||||
-rw-r--r-- | plat/arm/common/arm_setup.c | 6 | ||||
-rw-r--r-- | plat/arm/common/arm_timers.c | 2 | ||||
-rw-r--r-- | plat/arm/fvp/aarch32/plat_helpers.S | 2 | ||||
-rw-r--r-- | plat/arm/fvp/aarch64/plat_helpers.S | 2 | ||||
-rw-r--r-- | plat/arm/fvp/plat_setup.c | 2 | ||||
-rw-r--r-- | plat/arm/juno/aarch32/plat_helpers.S | 2 | ||||
-rw-r--r-- | plat/arm/juno/aarch64/plat_helpers.S | 2 | ||||
-rw-r--r-- | plat/arm/juno/juno_timers.c | 2 | ||||
-rw-r--r-- | plat/arm/juno/plat_setup.c | 2 | ||||
-rw-r--r-- | plat/arm/sgi/common/aarch64/plat_helpers.S | 2 | ||||
-rw-r--r-- | plat/arm/sgi/common/plat_setup.c | 2 | ||||
-rw-r--r-- | plat/common/fwu_nvm_accessors.c | 2 | ||||
-rw-r--r-- | plat/common/image_loader.c | 6 | ||||
-rw-r--r-- | plat/common/plat_common.c | 4 |
16 files changed, 24 insertions, 24 deletions
diff --git a/plat/arm/common/arm_fwu_io_storage.c b/plat/arm/common/arm_fwu_io_storage.c index 184f2af4d..5af3e0600 100644 --- a/plat/arm/common/arm_fwu_io_storage.c +++ b/plat/arm/common/arm_fwu_io_storage.c @@ -7,11 +7,11 @@ #include <arch_helpers.h> #include <assert.h> #include <debug.h> +#include <drivers/io/io_driver.h> +#include <drivers/io/io_fip.h> +#include <drivers/io/io_memmap.h> #include <firmware_image_package.h> #include <image_loader.h> -#include <io_driver.h> -#include <io_fip.h> -#include <io_memmap.h> #include <io_storage.h> #include <platform.h> #include <platform_def.h> diff --git a/plat/arm/common/arm_io_storage.c b/plat/arm/common/arm_io_storage.c index d9d8a389c..3fdaf8c2e 100644 --- a/plat/arm/common/arm_io_storage.c +++ b/plat/arm/common/arm_io_storage.c @@ -5,8 +5,8 @@ */ #include <assert.h> -#include <io_driver.h> -#include <io_nor_flash.h> +#include <drivers/io/io_driver.h> +#include <drivers/io/io_nor_flash.h> #include <io_storage.h> #include <platform.h> #include <tftf.h> diff --git a/plat/arm/common/arm_setup.c b/plat/arm/common/arm_setup.c index 79f463176..e345fd80a 100644 --- a/plat/arm/common/arm_setup.c +++ b/plat/arm/common/arm_setup.c @@ -4,11 +4,11 @@ * SPDX-License-Identifier: BSD-3-Clause */ -#include <arm_gic.h> -#include <console.h> #include <debug.h> +#include <drivers/arm/arm_gic.h> +#include <drivers/arm/pl011.h> +#include <drivers/console.h> #include <io_storage.h> -#include <pl011.h> #include <plat_arm.h> #include <platform.h> #include <platform_def.h> diff --git a/plat/arm/common/arm_timers.c b/plat/arm/common/arm_timers.c index c84cb845a..f43fdaa0c 100644 --- a/plat/arm/common/arm_timers.c +++ b/plat/arm/common/arm_timers.c @@ -5,9 +5,9 @@ */ #include <assert.h> +#include <drivers/arm/system_timer.h> #include <platform.h> #include <stddef.h> -#include <system_timer.h> #include <timer.h> #pragma weak plat_initialise_timer_ops diff --git a/plat/arm/fvp/aarch32/plat_helpers.S b/plat/arm/fvp/aarch32/plat_helpers.S index 1d923ad68..5865aaa15 100644 --- a/plat/arm/fvp/aarch32/plat_helpers.S +++ b/plat/arm/fvp/aarch32/plat_helpers.S @@ -6,7 +6,7 @@ #include <arch.h> #include <asm_macros.S> -#include <pl011.h> +#include <drivers/arm/pl011.h> #include "../fvp_def.h" .globl platform_get_core_pos diff --git a/plat/arm/fvp/aarch64/plat_helpers.S b/plat/arm/fvp/aarch64/plat_helpers.S index 4bd9f3d67..18cbbd4dc 100644 --- a/plat/arm/fvp/aarch64/plat_helpers.S +++ b/plat/arm/fvp/aarch64/plat_helpers.S @@ -6,7 +6,7 @@ #include <arch.h> #include <asm_macros.S> -#include <pl011.h> +#include <drivers/arm/pl011.h> #include "../fvp_def.h" .globl platform_get_core_pos diff --git a/plat/arm/fvp/plat_setup.c b/plat/arm/fvp/plat_setup.c index 0d816863a..fa978142b 100644 --- a/plat/arm/fvp/plat_setup.c +++ b/plat/arm/fvp/plat_setup.c @@ -4,7 +4,7 @@ * SPDX-License-Identifier: BSD-3-Clause */ -#include <arm_gic.h> +#include <drivers/arm/arm_gic.h> #include <plat_arm.h> #include <platform.h> diff --git a/plat/arm/juno/aarch32/plat_helpers.S b/plat/arm/juno/aarch32/plat_helpers.S index 99fedb485..68fb67ab1 100644 --- a/plat/arm/juno/aarch32/plat_helpers.S +++ b/plat/arm/juno/aarch32/plat_helpers.S @@ -6,7 +6,7 @@ #include <arch.h> #include <asm_macros.S> -#include <pl011.h> +#include <drivers/arm/pl011.h> #include "../juno_def.h" .globl platform_get_core_pos diff --git a/plat/arm/juno/aarch64/plat_helpers.S b/plat/arm/juno/aarch64/plat_helpers.S index 1efee4fbd..c221f6e0a 100644 --- a/plat/arm/juno/aarch64/plat_helpers.S +++ b/plat/arm/juno/aarch64/plat_helpers.S @@ -6,7 +6,7 @@ #include <arch.h> #include <asm_macros.S> -#include <pl011.h> +#include <drivers/arm/pl011.h> #include "../juno_def.h" .globl platform_get_core_pos diff --git a/plat/arm/juno/juno_timers.c b/plat/arm/juno/juno_timers.c index 1d1ce4884..604a2ddd9 100644 --- a/plat/arm/juno/juno_timers.c +++ b/plat/arm/juno/juno_timers.c @@ -5,9 +5,9 @@ */ #include <assert.h> +#include <drivers/arm/sp804.h> #include <platform.h> #include <platform_def.h> -#include <sp804.h> #include <stddef.h> #include <timer.h> diff --git a/plat/arm/juno/plat_setup.c b/plat/arm/juno/plat_setup.c index 8792cb343..324c9e669 100644 --- a/plat/arm/juno/plat_setup.c +++ b/plat/arm/juno/plat_setup.c @@ -4,7 +4,7 @@ * SPDX-License-Identifier: BSD-3-Clause */ -#include <arm_gic.h> +#include <drivers/arm/arm_gic.h> #include <mmio.h> #include <plat_arm.h> #include <platform.h> diff --git a/plat/arm/sgi/common/aarch64/plat_helpers.S b/plat/arm/sgi/common/aarch64/plat_helpers.S index 056a2f59c..9fe2ba962 100644 --- a/plat/arm/sgi/common/aarch64/plat_helpers.S +++ b/plat/arm/sgi/common/aarch64/plat_helpers.S @@ -5,7 +5,7 @@ */ #include <asm_macros.S> -#include <pl011.h> +#include <drivers/arm/pl011.h> #include <platform_def.h> .globl platform_get_core_pos diff --git a/plat/arm/sgi/common/plat_setup.c b/plat/arm/sgi/common/plat_setup.c index 211e8d41c..4b15f1a7e 100644 --- a/plat/arm/sgi/common/plat_setup.c +++ b/plat/arm/sgi/common/plat_setup.c @@ -4,7 +4,7 @@ * SPDX-License-Identifier: BSD-3-Clause */ -#include <arm_gic.h> +#include <drivers/arm/arm_gic.h> #include <xlat_tables_v2.h> static const mmap_region_t mmap[] = { diff --git a/plat/common/fwu_nvm_accessors.c b/plat/common/fwu_nvm_accessors.c index 5b32151d4..ec8bb7196 100644 --- a/plat/common/fwu_nvm_accessors.c +++ b/plat/common/fwu_nvm_accessors.c @@ -6,9 +6,9 @@ #include <assert.h> #include <debug.h> +#include <drivers/io/io_fip.h> #include <firmware_image_package.h> #include <fwu_nvm.h> -#include <io_fip.h> #include <io_storage.h> #include <platform.h> #include <platform_def.h> diff --git a/plat/common/image_loader.c b/plat/common/image_loader.c index 9b27f6f45..ffc997a44 100644 --- a/plat/common/image_loader.c +++ b/plat/common/image_loader.c @@ -7,11 +7,11 @@ #include <arch_helpers.h> #include <assert.h> #include <debug.h> +#include <drivers/io/io_driver.h> +#include <drivers/io/io_fip.h> +#include <drivers/io/io_memmap.h> #include <firmware_image_package.h> #include <image_loader.h> -#include <io_driver.h> -#include <io_fip.h> -#include <io_memmap.h> #include <io_storage.h> #include <platform.h> #include <platform_def.h> diff --git a/plat/common/plat_common.c b/plat/common/plat_common.c index 571387111..c5f4592c7 100644 --- a/plat/common/plat_common.c +++ b/plat/common/plat_common.c @@ -5,10 +5,10 @@ */ #include <arch_helpers.h> -#include <console.h> #include <debug.h> +#include <drivers/arm/sp805.h> +#include <drivers/console.h> #include <platform.h> -#include <sp805.h> #include <xlat_tables_v2.h> /* |