hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/lib/decompress.c
....@@ -13,6 +13,7 @@
1313 #include <linux/decompress/inflate.h>
1414 #include <linux/decompress/unlzo.h>
1515 #include <linux/decompress/unlz4.h>
16
+#include <linux/decompress/unzstd.h>
1617
1718 #include <linux/types.h>
1819 #include <linux/string.h>
....@@ -37,6 +38,9 @@
3738 #ifndef CONFIG_DECOMPRESS_LZ4
3839 # define unlz4 NULL
3940 #endif
41
+#ifndef CONFIG_DECOMPRESS_ZSTD
42
+# define unzstd NULL
43
+#endif
4044
4145 struct compress_format {
4246 unsigned char magic[2];
....@@ -52,6 +56,7 @@
5256 { {0xfd, 0x37}, "xz", unxz },
5357 { {0x89, 0x4c}, "lzo", unlzo },
5458 { {0x02, 0x21}, "lz4", unlz4 },
59
+ { {0x28, 0xb5}, "zstd", unzstd },
5560 { {0, 0}, NULL, NULL }
5661 };
5762