mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
null_blk: fixup ->report_zones() for !CONFIG_BLK_DEV_ZONED
A previous commit changed the prototype, but didn't adjust the function
for when zoned device support is disabled. Fix it up.
Fixes: bd976e5272
("block: Kill gfp_t argument of blkdev_report_zones()")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
26202928fa
commit
e347946439
1 changed files with 1 additions and 1 deletions
|
@ -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 void null_zone_exit(struct nullb_device *dev) {}
|
||||||
static inline int null_zone_report(struct gendisk *disk, sector_t sector,
|
static inline int null_zone_report(struct gendisk *disk, sector_t sector,
|
||||||
struct blk_zone *zones,
|
struct blk_zone *zones,
|
||||||
unsigned int *nr_zones, gfp_t gfp_mask)
|
unsigned int *nr_zones)
|
||||||
{
|
{
|
||||||
return -EOPNOTSUPP;
|
return -EOPNOTSUPP;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue