summaryrefslogtreecommitdiff
path: root/kernel/module/Kconfig
diff options
context:
space:
mode:
authorStephen Boyd <swboyd@chromium.org>2022-12-06 13:53:18 -0800
committerLuis Chamberlain <mcgrof@kernel.org>2022-12-07 12:05:05 -0800
commit169a58ad824d896b9e291a27193342616e651b82 (patch)
tree22d8ae2d46fd94981687cf582cb9bbce035b4103 /kernel/module/Kconfig
parentc86a514f5fad1fdd11f690c6538161413f63d777 (diff)
downloadlinux-169a58ad824d896b9e291a27193342616e651b82.tar.gz
linux-169a58ad824d896b9e291a27193342616e651b82.tar.bz2
linux-169a58ad824d896b9e291a27193342616e651b82.zip
module/decompress: Support zstd in-kernel decompression
Add support for zstd compressed modules to the in-kernel decompression code. This allows zstd compressed modules to be decompressed by the kernel, similar to the existing support for gzip and xz compressed modules. Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com> Cc: Piotr Gorski <lucjan.lucjanov@gmail.com> Cc: Nick Terrell <terrelln@fb.com> Signed-off-by: Stephen Boyd <swboyd@chromium.org> Reviewed-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Reviewed-by: Piotr Gorski <lucjan.lucjanov@gmail.com> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'kernel/module/Kconfig')
-rw-r--r--kernel/module/Kconfig3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/module/Kconfig b/kernel/module/Kconfig
index 26ea5d04f56c..424b3bc58f3f 100644
--- a/kernel/module/Kconfig
+++ b/kernel/module/Kconfig
@@ -221,9 +221,10 @@ endchoice
config MODULE_DECOMPRESS
bool "Support in-kernel module decompression"
- depends on MODULE_COMPRESS_GZIP || MODULE_COMPRESS_XZ
+ depends on MODULE_COMPRESS_GZIP || MODULE_COMPRESS_XZ || MODULE_COMPRESS_ZSTD
select ZLIB_INFLATE if MODULE_COMPRESS_GZIP
select XZ_DEC if MODULE_COMPRESS_XZ
+ select ZSTD_DECOMPRESS if MODULE_COMPRESS_ZSTD
help
Support for decompressing kernel modules by the kernel itself