]> www.infradead.org Git - users/dwmw2/linux.git/commit
zram: ZRAM_DEF_COMP should depend on ZRAM
authorGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 5 Nov 2024 11:50:35 +0000 (12:50 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 12 Nov 2024 01:22:27 +0000 (17:22 -0800)
commit9f3310ccc71efff041fed3f8be5ad19b0feab30b
treed24e5edcc8831dc838f10c1539accffa454a4d4c
parente51e10fadb2a5d3fcf12c79cc0fa7171286d5836
zram: ZRAM_DEF_COMP should depend on ZRAM

When Compressed RAM block device support is disabled, the
CONFIG_ZRAM_DEF_COMP symbol still ends up in the generated config file:

    CONFIG_ZRAM_DEF_COMP="unset-value"

While this causes no real harm, avoid polluting the config file by
adding a dependency on ZRAM.

Link: https://lkml.kernel.org/r/64e05bad68a9bd5cc322efd114a04d25de525940.1730807319.git.geert@linux-m68k.org
Fixes: 917a59e81c34 ("zram: introduce custom comp backends API")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/block/zram/Kconfig