From: Christoph Hellwig Date: Tue, 12 Jul 2022 06:43:07 +0000 (+0200) Subject: swiotlb: move struct io_tlb_slot to swiotlb.c X-Git-Tag: v6.0-rc1~89^2~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=942a8186eb445;p=thirdparty%2Fkernel%2Flinux.git swiotlb: move struct io_tlb_slot to swiotlb.c No need to expose this structure definition in the header. Signed-off-by: Christoph Hellwig --- diff --git a/include/linux/swiotlb.h b/include/linux/swiotlb.h index d3ae03edbbd23..35bc4e281c212 100644 --- a/include/linux/swiotlb.h +++ b/include/linux/swiotlb.h @@ -101,11 +101,7 @@ struct io_tlb_mem { unsigned int nareas; unsigned int area_nslabs; struct io_tlb_area *areas; - struct io_tlb_slot { - phys_addr_t orig_addr; - size_t alloc_size; - unsigned int list; - } *slots; + struct io_tlb_slot *slots; }; extern struct io_tlb_mem io_tlb_default_mem; diff --git a/kernel/dma/swiotlb.c b/kernel/dma/swiotlb.c index 608923e8dab1d..39dee40044395 100644 --- a/kernel/dma/swiotlb.c +++ b/kernel/dma/swiotlb.c @@ -62,6 +62,12 @@ #define INVALID_PHYS_ADDR (~(phys_addr_t)0) +struct io_tlb_slot { + phys_addr_t orig_addr; + size_t alloc_size; + unsigned int list; +}; + static bool swiotlb_force_bounce; static bool swiotlb_force_disable;