diff options
| author | NeilBrown <neilb@suse.de> | 2012-08-01 20:40:02 +1000 | 
|---|---|---|
| committer | NeilBrown <neilb@suse.de> | 2012-08-01 20:40:02 +1000 | 
| commit | bb181e2e48f8c85db08c9cb015cbba9618dbf05c (patch) | |
| tree | 191bc24dd97bcb174535cc217af082f16da3b43d /arch/m32r/boot/compressed | |
| parent | d57368afe63b3b7b45ce6c2b8c5276417935be2f (diff) | |
| parent | c039c332f23e794deb6d6f37b9f07ff3b27fb2cf (diff) | |
Merge commit 'c039c332f23e794deb6d6f37b9f07ff3b27fb2cf' into md
Pull in pre-requisites for adding raid10 support to dm-raid.
Diffstat (limited to 'arch/m32r/boot/compressed')
| -rw-r--r-- | arch/m32r/boot/compressed/Makefile | 6 | ||||
| -rw-r--r-- | arch/m32r/boot/compressed/misc.c | 12 | 
2 files changed, 14 insertions, 4 deletions
diff --git a/arch/m32r/boot/compressed/Makefile b/arch/m32r/boot/compressed/Makefile index 177716b1d61..01729c2979b 100644 --- a/arch/m32r/boot/compressed/Makefile +++ b/arch/m32r/boot/compressed/Makefile @@ -43,9 +43,9 @@ endif  OBJCOPYFLAGS += -R .empty_zero_page -suffix_$(CONFIG_KERNEL_GZIP)	= gz -suffix_$(CONFIG_KERNEL_BZIP2)	= bz2 -suffix_$(CONFIG_KERNEL_LZMA)	= lzma +suffix-$(CONFIG_KERNEL_GZIP)	= gz +suffix-$(CONFIG_KERNEL_BZIP2)	= bz2 +suffix-$(CONFIG_KERNEL_LZMA)	= lzma  $(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/vmlinux.bin.$(suffix-y) FORCE  	$(call if_changed,ld) diff --git a/arch/m32r/boot/compressed/misc.c b/arch/m32r/boot/compressed/misc.c index 370d6088197..28a09529f20 100644 --- a/arch/m32r/boot/compressed/misc.c +++ b/arch/m32r/boot/compressed/misc.c @@ -28,7 +28,7 @@ static unsigned long free_mem_ptr;  static unsigned long free_mem_end_ptr;  #ifdef CONFIG_KERNEL_BZIP2 -static void *memset(void *s, int c, size_t n) +void *memset(void *s, int c, size_t n)  {  	char *ss = s; @@ -39,6 +39,16 @@ static void *memset(void *s, int c, size_t n)  #endif  #ifdef CONFIG_KERNEL_GZIP +void *memcpy(void *dest, const void *src, size_t n) +{ +	char *d = dest; +	const char *s = src; +	while (n--) +		*d++ = *s++; + +	return dest; +} +  #define BOOT_HEAP_SIZE             0x10000  #include "../../../../lib/decompress_inflate.c"  #endif  | 
