Re: [PATCH 08/14] zram: check that backends array has at least one backend

From: Sergey Senozhatsky
Date: Sun May 05 2024 - 01:13:20 EST


On (24/05/05 13:39), Sergey Senozhatsky wrote:
[..]
> > I guess just pick one if none were selected.

How do I pick one if none were selected? Does Kconfig support
something like that?

> : config ZRAM
> : tristate "Compressed RAM block device support"
> : depends on BLOCK && SYSFS && MMU
> : select ZSMALLOC
> : depends on (LZO_COMPRESS && LZO_DECOMPRESS) || \
> : (LZ4_COMPRESS && LZ4_DECOMPRESS) || \
> : (LZ4HC_COMPRESS && LZ4_DECOMPRESS) || \
> : (ZSTD_COMPRESS && ZSTD_DECOMPRESS) || \
> : (ZLIB_DEFLATE && ZLIB_INFLATE)

The problem I'm having with this is that FOO_COMPRESS can be M while
zram needs Y.