Skip to content

Commit

Permalink
swiotlb: move struct io_tlb_slot to swiotlb.c
Browse files Browse the repository at this point in the history
No need to expose this structure definition in the header.

Signed-off-by: Christoph Hellwig <hch@lst.de>
  • Loading branch information
Christoph Hellwig committed Jul 18, 2022
1 parent 57e6840 commit 942a818
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 1 addition & 5 deletions include/linux/swiotlb.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
6 changes: 6 additions & 0 deletions kernel/dma/swiotlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 942a818

Please sign in to comment.