swiotlb: move struct io_tlb_slot to swiotlb.c
authorChristoph Hellwig <hch@lst.de>
Tue, 12 Jul 2022 06:43:07 +0000 (08:43 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 18 Jul 2022 04:50:18 +0000 (06:50 +0200)
No need to expose this structure definition in the header.

Signed-off-by: Christoph Hellwig <hch@lst.de>
include/linux/swiotlb.h
kernel/dma/swiotlb.c

index d3ae03edbbd2361a73fdc33d3e15ebb5a7f17e08..35bc4e281c2125d352d46abbe96705ccb32bdcb0 100644 (file)
@@ -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;
 
index 608923e8dab1d1247fdd5c3273d0c78f2828da26..39dee400443954071793c8ddd9cdf807a2649a24 100644 (file)
 
 #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;