aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/null_blk_main.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-11-11 11:39:27 +0900
committerJens Axboe <axboe@kernel.dk>2019-11-12 19:12:01 -0700
commit7fc8fb51a143a7efc9b199179e43a6d28f69b1f9 (patch)
treec4ad2bb527857d4caed734b9f1be17a1cf4c01f9 /drivers/block/null_blk_main.c
parentnull_blk: clean up the block device operations (diff)
downloadlinux-dev-7fc8fb51a143a7efc9b199179e43a6d28f69b1f9.tar.xz
linux-dev-7fc8fb51a143a7efc9b199179e43a6d28f69b1f9.zip
null_blk: clean up report zones
Make the instance name match the method name and define the name to NULL instead of providing an inline stub, which is rather pointless for a method call. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/null_blk_main.c')
-rw-r--r--drivers/block/null_blk_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/null_blk_main.c b/drivers/block/null_blk_main.c
index 7371bd25964b..3a7a7763316c 100644
--- a/drivers/block/null_blk_main.c
+++ b/drivers/block/null_blk_main.c
@@ -1470,7 +1470,7 @@ static void null_config_discard(struct nullb *nullb)
static const struct block_device_operations null_ops = {
.owner = THIS_MODULE,
- .report_zones = null_zone_report,
+ .report_zones = null_report_zones,
};
static void null_init_queue(struct nullb *nullb, struct nullb_queue *nq)