[PATCH v2] pstore: turn compression options back to 'bool'

From: liaoweixiong
Date: Fri Dec 14 2018 - 08:39:23 EST


On commit 58eb5b670747 ("pstore: fix crypto dependencies"),
dependency bug was fixed by selecting the crypto core rather than
turned compression sub-options to 'tristate'.
In addition, these options are used to enable/disable compression. They
are not modules, and mean nothing when set to 'M'.
So, this patch is going to turn them back to 'bool'.

Fixes: 58eb5b670747 ("pstore: fix crypto dependencies")
Acked-by: Kees Cook <keescook@xxxxxxxxxxxx>
Signed-off-by: liaoweixiong <liaoweixiong@xxxxxxxxxxxxxxxxx>
---
fs/pstore/Kconfig | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/fs/pstore/Kconfig b/fs/pstore/Kconfig
index 0d19d19..8b3ba27 100644
--- a/fs/pstore/Kconfig
+++ b/fs/pstore/Kconfig
@@ -14,7 +14,7 @@ config PSTORE
say N.

config PSTORE_DEFLATE_COMPRESS
- tristate "DEFLATE (ZLIB) compression"
+ bool "DEFLATE (ZLIB) compression"
default y
depends on PSTORE
select CRYPTO_DEFLATE
@@ -23,21 +23,21 @@ config PSTORE_DEFLATE_COMPRESS
algorithm support.

config PSTORE_LZO_COMPRESS
- tristate "LZO compression"
+ bool "LZO compression"
depends on PSTORE
select CRYPTO_LZO
help
This option enables LZO compression algorithm support.

config PSTORE_LZ4_COMPRESS
- tristate "LZ4 compression"
+ bool "LZ4 compression"
depends on PSTORE
select CRYPTO_LZ4
help
This option enables LZ4 compression algorithm support.

config PSTORE_LZ4HC_COMPRESS
- tristate "LZ4HC compression"
+ bool "LZ4HC compression"
depends on PSTORE
select CRYPTO_LZ4HC
help
--
1.9.1