linux/drivers/block/zram
Jens Axboe d422f40163 zram: only make zram_wb_devops for CONFIG_ZRAM_WRITEBACK
If writeback isn't configured, then we get the following warning when
compiling zram:

drivers/block/zram/zram_drv.c:1824:45: warning: unused variable 'zram_wb_devops' [-Wunused-const-variable]

Make sure we only define the block_device_operations if that option is
enabled.

Link: https://lore.kernel.org/lkml/202111261614.gCJMqcyh-lkp@intel.com/
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-11-26 09:57:32 -07:00
..
Kconfig zram: break the strict dependency from lzo 2020-12-15 12:13:47 -08:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
zcomp.c zram: break the strict dependency from lzo 2020-12-15 12:13:47 -08:00
zcomp.h zram: Use local lock to protect per-CPU data 2020-05-28 10:31:10 +02:00
zram_drv.c zram: only make zram_wb_devops for CONFIG_ZRAM_WRITEBACK 2021-11-26 09:57:32 -07:00
zram_drv.h Merge branch 'akpm' (patches from Andrew) 2021-07-02 12:08:10 -07:00