From: Po-Yu Chuang Date: Tue, 15 Feb 2011 22:54:35 +0000 (+0000) Subject: arm: get_sp() should always be compiled X-Git-Tag: v2011.03-rc2~29 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3a8a83e08d832dc14e715f046aaf0d010d36c523;p=u-boot arm: get_sp() should always be compiled get_sp() was incorrectly excluded if none of CONFIG_SETUP_MEMORY_TAGS CONFIG_CMDLINE_TAG CONFIG_INITRD_TAG CONFIG_SERIAL_TAG CONFIG_REVISION_TAG were defined. Signed-off-by: Po-Yu Chuang --- diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c index a1649eef0d..77349530f0 100644 --- a/arch/arm/lib/bootm.c +++ b/arch/arm/lib/bootm.c @@ -327,12 +327,12 @@ void setup_revision_tag(struct tag **in_params) } #endif /* CONFIG_REVISION_TAG */ - static void setup_end_tag (bd_t *bd) { params->hdr.tag = ATAG_NONE; params->hdr.size = 0; } +#endif /* CONFIG_SETUP_MEMORY_TAGS || CONFIG_CMDLINE_TAG || CONFIG_INITRD_TAG */ static ulong get_sp(void) { @@ -341,5 +341,3 @@ static ulong get_sp(void) asm("mov %0, sp" : "=r"(ret) : ); return ret; } - -#endif /* CONFIG_SETUP_MEMORY_TAGS || CONFIG_CMDLINE_TAG || CONFIG_INITRD_TAG */