]> git.baikalelectronics.ru Git - kernel.git/commit
zram: fix unused 'zram_wb_devops' warning
authorKefeng Wang <wangkefeng.wang@huawei.com>
Wed, 8 Jun 2022 07:25:34 +0000 (15:25 +0800)
committerakpm <akpm@linux-foundation.org>
Mon, 18 Jul 2022 00:14:48 +0000 (17:14 -0700)
commit4fb16a4ed18802e26d026e13e11ae5a3f0d5f260
tree5a519495c9f146b45ef444aa8523ae2dd1e09417
parent43ec2932d2a9235375c01130a14dfd4456b574a2
zram: fix unused 'zram_wb_devops' warning

drivers/block/zram/zram_drv.c:55:45: warning: 'zram_wb_devops' defined but not used [-Wunused-const-variable=]

Fix the above warning if CONFIG_ZRAM_WRITEBACK not enabled.

Link: https://lkml.kernel.org/r/20220608072534.68850-1-wangkefeng.wang@huawei.com
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Nitin Gupta <ngupta@vflare.org>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/block/zram/zram_drv.c