Commit 38b4e09f authored by Jens Axboe's avatar Jens Axboe

null_blk: fix inline misuse

You can't magically mark a function inline and expect that to work.

Fixes: fceb5d1b ("null_blk: create a helper for zoned devices")
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent a3d7d674
...@@ -90,9 +90,9 @@ int null_zone_init(struct nullb_device *dev); ...@@ -90,9 +90,9 @@ int null_zone_init(struct nullb_device *dev);
void null_zone_exit(struct nullb_device *dev); void null_zone_exit(struct nullb_device *dev);
int null_zone_report(struct gendisk *disk, sector_t sector, int null_zone_report(struct gendisk *disk, sector_t sector,
struct blk_zone *zones, unsigned int *nr_zones); struct blk_zone *zones, unsigned int *nr_zones);
inline blk_status_t null_handle_zoned(struct nullb_cmd *cmd, blk_status_t null_handle_zoned(struct nullb_cmd *cmd,
enum req_opf op, sector_t sector, enum req_opf op, sector_t sector,
sector_t nr_sectors); sector_t nr_sectors);
#else #else
static inline int null_zone_init(struct nullb_device *dev) static inline int null_zone_init(struct nullb_device *dev)
{ {
......
...@@ -148,9 +148,8 @@ static blk_status_t null_zone_reset(struct nullb_cmd *cmd, sector_t sector) ...@@ -148,9 +148,8 @@ static blk_status_t null_zone_reset(struct nullb_cmd *cmd, sector_t sector)
return BLK_STS_OK; return BLK_STS_OK;
} }
inline blk_status_t null_handle_zoned(struct nullb_cmd *cmd, blk_status_t null_handle_zoned(struct nullb_cmd *cmd, enum req_opf op,
enum req_opf op, sector_t sector, sector_t sector, sector_t nr_sectors)
sector_t nr_sectors)
{ {
switch (op) { switch (op) {
case REQ_OP_WRITE: case REQ_OP_WRITE:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment