From 97043ac98e13a726dbf8b3b41654dca759e3da2c Mon Sep 17 00:00:00 2001 From: Dan Handley Date: Wed, 9 Apr 2014 13:14:54 +0100 Subject: Reduce deep nesting of header files Reduce the number of header files included from other header files as much as possible without splitting the files. Use forward declarations where possible. This allows removal of some unnecessary "#ifndef __ASSEMBLY__" statements. Also, review the .c and .S files for which header files really need including and reorder the #include statements alphabetically. Fixes ARM-software/tf-issues#31 Change-Id: Iec92fb976334c77453e010b60bcf56f3be72bd3e --- include/bl1/bl1.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'include/bl1') diff --git a/include/bl1/bl1.h b/include/bl1/bl1.h index 1750a1f0..d8afae46 100644 --- a/include/bl1/bl1.h +++ b/include/bl1/bl1.h @@ -31,16 +31,16 @@ #ifndef __BL1_H__ #define __BL1_H__ -#include -#ifndef __ASSEMBLY__ +/****************************************** + * Forward declarations + *****************************************/ +struct meminfo; /****************************************** * Function prototypes *****************************************/ extern void bl1_platform_setup(void); -extern meminfo_t *bl1_plat_sec_mem_layout(void); - -#endif /*__ASSEMBLY__*/ +extern struct meminfo *bl1_plat_sec_mem_layout(void); #endif /* __BL1_H__ */ -- cgit v1.2.3