| .. | .. |
|---|
| 13 | 13 | #include <linux/decompress/inflate.h> |
|---|
| 14 | 14 | #include <linux/decompress/unlzo.h> |
|---|
| 15 | 15 | #include <linux/decompress/unlz4.h> |
|---|
| 16 | +#include <linux/decompress/unzstd.h> |
|---|
| 16 | 17 | |
|---|
| 17 | 18 | #include <linux/types.h> |
|---|
| 18 | 19 | #include <linux/string.h> |
|---|
| .. | .. |
|---|
| 37 | 38 | #ifndef CONFIG_DECOMPRESS_LZ4 |
|---|
| 38 | 39 | # define unlz4 NULL |
|---|
| 39 | 40 | #endif |
|---|
| 41 | +#ifndef CONFIG_DECOMPRESS_ZSTD |
|---|
| 42 | +# define unzstd NULL |
|---|
| 43 | +#endif |
|---|
| 40 | 44 | |
|---|
| 41 | 45 | struct compress_format { |
|---|
| 42 | 46 | unsigned char magic[2]; |
|---|
| .. | .. |
|---|
| 52 | 56 | { {0xfd, 0x37}, "xz", unxz }, |
|---|
| 53 | 57 | { {0x89, 0x4c}, "lzo", unlzo }, |
|---|
| 54 | 58 | { {0x02, 0x21}, "lz4", unlz4 }, |
|---|
| 59 | + { {0x28, 0xb5}, "zstd", unzstd }, |
|---|
| 55 | 60 | { {0, 0}, NULL, NULL } |
|---|
| 56 | 61 | }; |
|---|
| 57 | 62 | |
|---|