]> git.baikalelectronics.ru Git - kernel.git/commitdiff
block: remove the unused rq_end_sector macro
authorChristoph Hellwig <hch@lst.de>
Mon, 20 Sep 2021 12:33:19 +0000 (14:33 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Oct 2021 12:17:01 +0000 (06:17 -0600)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20210920123328.1399408-9-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/dm-rq.c
include/linux/elevator.h

index a896dea9750e434655b9ebef4363da84b59be91e..579ab6183d4d811c5c6697b60ecb21a44ade2a52 100644 (file)
@@ -7,7 +7,6 @@
 #include "dm-core.h"
 #include "dm-rq.h"
 
-#include <linux/elevator.h> /* for rq_end_sector() */
 #include <linux/blk-mq.h>
 
 #define DM_MSG_PREFIX "core-rq"
index ef9ceead3db13be8727d7c14f316f384324a808f..80633f3b600c2fd4cfc3692bf65c86617d5ad3f2 100644 (file)
@@ -162,7 +162,6 @@ extern struct request *elv_rb_find(struct rb_root *, sector_t);
 #define ELEVATOR_INSERT_FLUSH  5
 #define ELEVATOR_INSERT_SORT_MERGE     6
 
-#define rq_end_sector(rq)      (blk_rq_pos(rq) + blk_rq_sectors(rq))
 #define rb_entry_rq(node)      rb_entry((node), struct request, rb_node)
 
 #define rq_entry_fifo(ptr)     list_entry((ptr), struct request, queuelist)