diff options
author | Christoph Hellwig <hch@lst.de> | 2022-02-14 11:44:42 +0100 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2022-04-18 07:21:09 +0200 |
commit | a2daa27c0c6137481226aee5b3136e453c642929 (patch) | |
tree | bb69da8b22d3fc7a225f78facfa8ec8c13f20036 /include/linux/swiotlb.h | |
parent | 3469d36d470df148e8d940c1a6399510562bf3b0 (diff) | |
download | lwn-a2daa27c0c6137481226aee5b3136e453c642929.tar.gz lwn-a2daa27c0c6137481226aee5b3136e453c642929.zip |
swiotlb: simplify swiotlb_max_segment
Remove the bogus Xen override that was usually larger than the actual
size and just calculate the value on demand. Note that
swiotlb_max_segment still doesn't make sense as an interface and should
eventually be removed.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tested-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Diffstat (limited to 'include/linux/swiotlb.h')
-rw-r--r-- | include/linux/swiotlb.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/swiotlb.h b/include/linux/swiotlb.h index f6c3638255d5..9fb3a568f0c5 100644 --- a/include/linux/swiotlb.h +++ b/include/linux/swiotlb.h @@ -164,7 +164,6 @@ static inline void swiotlb_adjust_size(unsigned long size) #endif /* CONFIG_SWIOTLB */ extern void swiotlb_print_info(void); -extern void swiotlb_set_max_segment(unsigned int); #ifdef CONFIG_DMA_RESTRICTED_POOL struct page *swiotlb_alloc(struct device *dev, size_t size); |