summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorLeon Romanovsky <leonro@nvidia.com>2025-12-17 11:41:24 +0200
committerJens Axboe <axboe@kernel.dk>2026-01-06 05:47:54 -0700
commitfcf463b92a08686d1aeb1e66674a72eb7a8bfb9b (patch)
tree272f483f934ee0aee2e2c84a897d99131efe4cc5 /block
parent073b9bf9af463d32555c5ebaf7e28c3a44c715d0 (diff)
types: move phys_vec definition to common header
Move the struct phys_vec definition from block/blk-mq-dma.c to include/linux/types.h to make it available for use across the kernel. The phys_vec structure represents a physical address range with a length, which is used by the new physical address-based DMA mapping API. This structure is already used by the block layer and will be needed for DMA phys API users. Moving this definition to types.h provides a centralized location for this common data structure and eliminates code duplication across subsystems that need to work with physical address ranges. Signed-off-by: Leon Romanovsky <leonro@nvidia.com> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
-rw-r--r--block/blk-mq-dma.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/block/blk-mq-dma.c b/block/blk-mq-dma.c
index a2bedc8f8666..752060d7261c 100644
--- a/block/blk-mq-dma.c
+++ b/block/blk-mq-dma.c
@@ -6,11 +6,6 @@
#include <linux/blk-mq-dma.h>
#include "blk.h"
-struct phys_vec {
- phys_addr_t paddr;
- size_t len;
-};
-
static bool __blk_map_iter_next(struct blk_map_iter *iter)
{
if (iter->iter.bi_size)