diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2013-09-06 22:53:35 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2013-09-06 22:53:35 -0400 |
commit | eeca9fad52fc4bfdf42c38bfcf383e932eb3e9d6 (patch) | |
tree | cc51c880459d41c0e8d7576405bef4c987bc7aa0 /lib/decompress.c | |
parent | ff6f83fc9d44db09997937c3475d525a6866fbb4 (diff) | |
parent | b48a97be8e6c2afdba2f3b61fd88c3c7743fbd73 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux
Merge upstream tree in order to reinstate crct10dif.
Diffstat (limited to 'lib/decompress.c')
-rw-r--r-- | lib/decompress.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/decompress.c b/lib/decompress.c index f8fdedaf7b3d..4d1cd0397aab 100644 --- a/lib/decompress.c +++ b/lib/decompress.c | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <linux/decompress/unxz.h> | 11 | #include <linux/decompress/unxz.h> |
12 | #include <linux/decompress/inflate.h> | 12 | #include <linux/decompress/inflate.h> |
13 | #include <linux/decompress/unlzo.h> | 13 | #include <linux/decompress/unlzo.h> |
14 | #include <linux/decompress/unlz4.h> | ||
14 | 15 | ||
15 | #include <linux/types.h> | 16 | #include <linux/types.h> |
16 | #include <linux/string.h> | 17 | #include <linux/string.h> |
@@ -31,6 +32,9 @@ | |||
31 | #ifndef CONFIG_DECOMPRESS_LZO | 32 | #ifndef CONFIG_DECOMPRESS_LZO |
32 | # define unlzo NULL | 33 | # define unlzo NULL |
33 | #endif | 34 | #endif |
35 | #ifndef CONFIG_DECOMPRESS_LZ4 | ||
36 | # define unlz4 NULL | ||
37 | #endif | ||
34 | 38 | ||
35 | struct compress_format { | 39 | struct compress_format { |
36 | unsigned char magic[2]; | 40 | unsigned char magic[2]; |
@@ -45,6 +49,7 @@ static const struct compress_format compressed_formats[] __initconst = { | |||
45 | { {0x5d, 0x00}, "lzma", unlzma }, | 49 | { {0x5d, 0x00}, "lzma", unlzma }, |
46 | { {0xfd, 0x37}, "xz", unxz }, | 50 | { {0xfd, 0x37}, "xz", unxz }, |
47 | { {0x89, 0x4c}, "lzo", unlzo }, | 51 | { {0x89, 0x4c}, "lzo", unlzo }, |
52 | { {0x02, 0x21}, "lz4", unlz4 }, | ||
48 | { {0, 0}, NULL, NULL } | 53 | { {0, 0}, NULL, NULL } |
49 | }; | 54 | }; |
50 | 55 | ||