Patch "zram: ZRAM_DEF_COMP should depend on ZRAM" has been added to the 6.12-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    zram: ZRAM_DEF_COMP should depend on ZRAM

to the 6.12-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     zram-zram_def_comp-should-depend-on-zram.patch
and it can be found in the queue-6.12 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit d7deef7bf177777691073e38d9a032c8ac72f8e7
Author: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
Date:   Tue Nov 5 12:50:35 2024 +0100

    zram: ZRAM_DEF_COMP should depend on ZRAM
    
    [ Upstream commit 9f3310ccc71efff041fed3f8be5ad19b0feab30b ]
    
    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@xxxxxxxxxxxxxx
    Fixes: 917a59e81c34 ("zram: introduce custom comp backends API")
    Signed-off-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
    Reviewed-by: Sergey Senozhatsky <senozhatsky@xxxxxxxxxxxx>
    Cc: Jens Axboe <axboe@xxxxxxxxx>
    Cc: Minchan Kim <minchan@xxxxxxxxxx>
    Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/block/zram/Kconfig b/drivers/block/zram/Kconfig
index 6aea609b795c2..402b7b1758632 100644
--- a/drivers/block/zram/Kconfig
+++ b/drivers/block/zram/Kconfig
@@ -94,6 +94,7 @@ endchoice
 
 config ZRAM_DEF_COMP
 	string
+	depends on ZRAM
 	default "lzo-rle" if ZRAM_DEF_COMP_LZORLE
 	default "lzo" if ZRAM_DEF_COMP_LZO
 	default "lz4" if ZRAM_DEF_COMP_LZ4




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux