diff options
Diffstat (limited to 'arch/mips/boot/compressed/decompress.c')
-rw-r--r-- | arch/mips/boot/compressed/decompress.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/arch/mips/boot/compressed/decompress.c b/arch/mips/boot/compressed/decompress.c index a8c6fd6a4406..c00c4ddf4514 100644 --- a/arch/mips/boot/compressed/decompress.c +++ b/arch/mips/boot/compressed/decompress.c | |||
@@ -43,33 +43,11 @@ void error(char *x) | |||
43 | /* activate the code for pre-boot environment */ | 43 | /* activate the code for pre-boot environment */ |
44 | #define STATIC static | 44 | #define STATIC static |
45 | 45 | ||
46 | #if defined(CONFIG_KERNEL_GZIP) || defined(CONFIG_KERNEL_XZ) || \ | ||
47 | defined(CONFIG_KERNEL_LZ4) | ||
48 | void *memcpy(void *dest, const void *src, size_t n) | ||
49 | { | ||
50 | int i; | ||
51 | const char *s = src; | ||
52 | char *d = dest; | ||
53 | |||
54 | for (i = 0; i < n; i++) | ||
55 | d[i] = s[i]; | ||
56 | return dest; | ||
57 | } | ||
58 | #endif | ||
59 | #ifdef CONFIG_KERNEL_GZIP | 46 | #ifdef CONFIG_KERNEL_GZIP |
60 | #include "../../../../lib/decompress_inflate.c" | 47 | #include "../../../../lib/decompress_inflate.c" |
61 | #endif | 48 | #endif |
62 | 49 | ||
63 | #ifdef CONFIG_KERNEL_BZIP2 | 50 | #ifdef CONFIG_KERNEL_BZIP2 |
64 | void *memset(void *s, int c, size_t n) | ||
65 | { | ||
66 | int i; | ||
67 | char *ss = s; | ||
68 | |||
69 | for (i = 0; i < n; i++) | ||
70 | ss[i] = c; | ||
71 | return s; | ||
72 | } | ||
73 | #include "../../../../lib/decompress_bunzip2.c" | 51 | #include "../../../../lib/decompress_bunzip2.c" |
74 | #endif | 52 | #endif |
75 | 53 | ||