Searched hist:"80 bb6afd23b29ffa9fec7c53e38d0402ddef42ba" (Results 1 – 2 of 2) sorted by relevance
| /rk3399_ARM-atf/include/plat/arm/soc/common/ |
| H A D | soc_css.h | 80bb6afd23b29ffa9fec7c53e38d0402ddef42ba Tue Aug 04 13:31:27 UTC 2015 Juan Castillo <juan.castillo@arm.com> Fix build error with optimizations disabled (-O0)
If Trusted Firmware is built with optimizations disabled (-O0), the linker throws the following error:
undefined reference to 'xxx'
Where 'xxx' is a raw inline function defined in a header file. The reason is that, with optimizations disabled, GCC may decide to skip the inlining. If that is the case, an external definition to the compilation unit must be provided. Because no external definition is present, the linker throws the error.
This patch fixes the problem by declaring the following inline functions static, so the internal definition is used:
inline void soc_css_security_setup(void) inline const arm_config_t *get_arm_config(void)
Change-Id: Id650d6be1b1396bdb48af1ac8a4c7900d212e95f
|
| /rk3399_ARM-atf/include/plat/arm/common/ |
| H A D | arm_config.h | 80bb6afd23b29ffa9fec7c53e38d0402ddef42ba Tue Aug 04 13:31:27 UTC 2015 Juan Castillo <juan.castillo@arm.com> Fix build error with optimizations disabled (-O0)
If Trusted Firmware is built with optimizations disabled (-O0), the linker throws the following error:
undefined reference to 'xxx'
Where 'xxx' is a raw inline function defined in a header file. The reason is that, with optimizations disabled, GCC may decide to skip the inlining. If that is the case, an external definition to the compilation unit must be provided. Because no external definition is present, the linker throws the error.
This patch fixes the problem by declaring the following inline functions static, so the internal definition is used:
inline void soc_css_security_setup(void) inline const arm_config_t *get_arm_config(void)
Change-Id: Id650d6be1b1396bdb48af1ac8a4c7900d212e95f
|