diff options
author | Mark Brown <broonie@sirena.org.uk> | 2010-03-10 13:10:28 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-03-13 05:48:21 -0500 |
commit | a2302b45d8ab41a55e84c39a6c6f813586ad8493 (patch) | |
tree | 8d1f78cea3a0af0a62c17b850773447ffd3254ec /arch | |
parent | daf9fe2ee9a203c4fc555cfe5c5f3d9f660e743c (diff) |
ARM: 5985/2: ARM: Fix Samsung build after "ARM: Eliminate decompressor -Dstatic= PIC hack"
Commit 5de813b6 (ARM: Eliminate decompressor -Dstatic= PIC hack) among
other things changed the declared type of the error() function to an
extern, conflicting with the forward declartion in the Samsung
plat/uncompress.h which appears to have been relying on the static
being defined away, causing build failures since error() ends up with
a GOT relocation but the linker script discards all GOT relocated
data and functions:
arch/arm/boot/compressed/decompress.o: In function `gunzip':
/home/broonie/git/linux-2.6/arch/arm/boot/compressed/../../../../lib/decompress_
+inflate.c:68: undefined reference to `error'
and so on. Fix this by moving the declaration into uncompress/misc.c
where it is shared with the rest of the code, correcting the definition
as we go.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/boot/compressed/misc.c | 1 | ||||
-rw-r--r-- | arch/arm/plat-samsung/include/plat/uncompress.h | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/boot/compressed/misc.c b/arch/arm/boot/compressed/misc.c index d32bc71c1f78..d2b2ef41cd4f 100644 --- a/arch/arm/boot/compressed/misc.c +++ b/arch/arm/boot/compressed/misc.c | |||
@@ -33,6 +33,7 @@ unsigned int __machine_arch_type; | |||
33 | #else | 33 | #else |
34 | 34 | ||
35 | static void putstr(const char *ptr); | 35 | static void putstr(const char *ptr); |
36 | extern void error(char *x); | ||
36 | 37 | ||
37 | #include <mach/uncompress.h> | 38 | #include <mach/uncompress.h> |
38 | 39 | ||
diff --git a/arch/arm/plat-samsung/include/plat/uncompress.h b/arch/arm/plat-samsung/include/plat/uncompress.h index e87ce8ffbbcd..7d6ed7263d57 100644 --- a/arch/arm/plat-samsung/include/plat/uncompress.h +++ b/arch/arm/plat-samsung/include/plat/uncompress.h | |||
@@ -140,8 +140,6 @@ static void arch_decomp_error(const char *x) | |||
140 | #define arch_error arch_decomp_error | 140 | #define arch_error arch_decomp_error |
141 | #endif | 141 | #endif |
142 | 142 | ||
143 | static void error(char *err); | ||
144 | |||
145 | #ifdef CONFIG_S3C_BOOT_UART_FORCE_FIFO | 143 | #ifdef CONFIG_S3C_BOOT_UART_FORCE_FIFO |
146 | static inline void arch_enable_uart_fifo(void) | 144 | static inline void arch_enable_uart_fifo(void) |
147 | { | 145 | { |