diff options
| author | Jens Axboe <axboe@kernel.dk> | 2012-07-30 03:03:10 -0400 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2012-07-30 03:03:10 -0400 |
| commit | 72ea1f74fcdf874cca6d2c0962379523bbd99e2c (patch) | |
| tree | 4c67be6c73356086ff44ef1b8b1c9479702689ca /arch/m32r/boot/compressed/misc.c | |
| parent | b1af9be5ef77898c05667bb9dbf3b180d91d3292 (diff) | |
| parent | a73ff3231df59a4b92ccd0dd4e73897c5822489b (diff) | |
Merge branch 'for-jens' of git://git.drbd.org/linux-drbd into for-3.6/drivers
Diffstat (limited to 'arch/m32r/boot/compressed/misc.c')
| -rw-r--r-- | arch/m32r/boot/compressed/misc.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/m32r/boot/compressed/misc.c b/arch/m32r/boot/compressed/misc.c index 370d60881977..28a09529f206 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; | |||
| 28 | static unsigned long free_mem_end_ptr; | 28 | static unsigned long free_mem_end_ptr; |
| 29 | 29 | ||
| 30 | #ifdef CONFIG_KERNEL_BZIP2 | 30 | #ifdef CONFIG_KERNEL_BZIP2 |
| 31 | static void *memset(void *s, int c, size_t n) | 31 | void *memset(void *s, int c, size_t n) |
| 32 | { | 32 | { |
| 33 | char *ss = s; | 33 | char *ss = s; |
| 34 | 34 | ||
| @@ -39,6 +39,16 @@ static void *memset(void *s, int c, size_t n) | |||
| 39 | #endif | 39 | #endif |
| 40 | 40 | ||
| 41 | #ifdef CONFIG_KERNEL_GZIP | 41 | #ifdef CONFIG_KERNEL_GZIP |
| 42 | void *memcpy(void *dest, const void *src, size_t n) | ||
| 43 | { | ||
| 44 | char *d = dest; | ||
| 45 | const char *s = src; | ||
| 46 | while (n--) | ||
| 47 | *d++ = *s++; | ||
| 48 | |||
| 49 | return dest; | ||
| 50 | } | ||
| 51 | |||
| 42 | #define BOOT_HEAP_SIZE 0x10000 | 52 | #define BOOT_HEAP_SIZE 0x10000 |
| 43 | #include "../../../../lib/decompress_inflate.c" | 53 | #include "../../../../lib/decompress_inflate.c" |
| 44 | #endif | 54 | #endif |
