Skip to contentSkip to conversation

bdev: remove unused BVEC_ITER_ALL_INIT

PATCH Applied Caleb Sander Mateos 2 participants 2 messages Apr 3 – Apr 4 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bdev: remove unused BVEC_ITER_ALL_INIT

This macro no longer has any users, so remove it.

---
 include/linux/bvec.h | 9 ---------
 1 file changed, 9 deletions(-)
include/linux/bvec.h +0 -9
index 06fb60471aaf..d36dd476feda 100644
@@ -201,19 +201,10 @@ static inline void bvec_iter_advance_single(const struct bio_vec *bv,
 	for (iter = (start);						\
 	     (iter).bi_size &&						\
 		((bvl = mp_bvec_iter_bvec((bio_vec), (iter))), 1);	\
 	     bvec_iter_advance_single((bio_vec), &(iter), (bvl).bv_len))
 
-/* for iterating one bio from start to end */
-#define BVEC_ITER_ALL_INIT (struct bvec_iter)				\
-{									\
-	.bi_sector	= 0,						\
-	.bi_size	= UINT_MAX,					\
-	.bi_idx		= 0,						\
-	.bi_bvec_done	= 0,						\
-}
-
 static inline struct bio_vec *bvec_init_iter_all(struct bvec_iter_all *iter_all)
 {
 	iter_all->done = 0;
 	iter_all->idx = 0;
 
Signature · 1 line
2.45.2
maintainer Applied
#1 lore raw
Quoted 1 line · Caleb Sander Mateos

This macro no longer has any users, so remove it.

Applied, thanks!

[1/1] bdev: remove unused BVEC_ITER_ALL_INIT

      commit: 8b155f2e4a91f3507951e6ace4b413688ac28b96

Best regards,

Signature · 1 line
Jens Axboe