Skip to content

Commit 38b4e09

Browse files
committed
null_blk: fix inline misuse
You can't magically mark a function inline and expect that to work. Fixes: fceb5d1 ("null_blk: create a helper for zoned devices") Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent a3d7d67 commit 38b4e09

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

‎drivers/block/null_blk.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ int null_zone_init(struct nullb_device *dev);
9090
void null_zone_exit(struct nullb_device *dev);
9191
int null_zone_report(struct gendisk *disk, sector_t sector,
9292
struct blk_zone *zones, unsigned int *nr_zones);
93-
inline blk_status_t null_handle_zoned(struct nullb_cmd *cmd,
94-
enum req_opf op, sector_t sector,
95-
sector_t nr_sectors);
93+
blk_status_t null_handle_zoned(struct nullb_cmd *cmd,
94+
enum req_opf op, sector_t sector,
95+
sector_t nr_sectors);
9696
#else
9797
static inline int null_zone_init(struct nullb_device *dev)
9898
{

‎drivers/block/null_blk_zoned.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,8 @@ static blk_status_t null_zone_reset(struct nullb_cmd *cmd, sector_t sector)
148148
return BLK_STS_OK;
149149
}
150150

151-
inline blk_status_t null_handle_zoned(struct nullb_cmd *cmd,
152-
enum req_opf op, sector_t sector,
153-
sector_t nr_sectors)
151+
blk_status_t null_handle_zoned(struct nullb_cmd *cmd, enum req_opf op,
152+
sector_t sector, sector_t nr_sectors)
154153
{
155154
switch (op) {
156155
case REQ_OP_WRITE:

0 commit comments

Comments
 (0)