ARM: Add final piece to fix XIP decompressor in read-only memory
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 15 Mar 2010 14:29:22 +0000 (14:29 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 15 Mar 2010 14:29:22 +0000 (14:29 +0000)
This defines STATIC_RW_DATA, which prevents the read/write malloc
management data being declared with a static attribute.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/boot/compressed/decompress.c

index 0da382f..9c09707 100644 (file)
@@ -11,6 +11,7 @@ extern unsigned long free_mem_end_ptr;
 extern void error(char *);
 
 #define STATIC static
+#define STATIC_RW_DATA /* non-static please */
 
 #define ARCH_HAS_DECOMP_WDOG