Skip to content

Commit

Permalink
null_blk: fixup ->report_zones() for !CONFIG_BLK_DEV_ZONED
Browse files Browse the repository at this point in the history
A previous commit changed the prototype, but didn't adjust the function
for when zoned device support is disabled. Fix it up.

Fixes: bd976e5 ("block: Kill gfp_t argument of blkdev_report_zones()")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
Jens Axboe committed Jul 12, 2019
1 parent 2620292 commit e347946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/block/null_blk.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ static inline int null_zone_init(struct nullb_device *dev)
static inline void null_zone_exit(struct nullb_device *dev) {}
static inline int null_zone_report(struct gendisk *disk, sector_t sector,
struct blk_zone *zones,
unsigned int *nr_zones, gfp_t gfp_mask)
unsigned int *nr_zones)
{
return -EOPNOTSUPP;
}
Expand Down

0 comments on commit e347946

Please sign in to comment.