aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/swiotlb.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-03-18 17:14:24 +0100
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2021-03-19 04:58:25 +0000
commit2cbc2776efe4faed0e17c48ae076aa03a0fcc61f (patch)
tree9f3fbd9abc1e971ad0807dcd2e0645b9aafd8634 /include/linux/swiotlb.h
parentswiotlb: dynamically allocate io_tlb_default_mem (diff)
downloadlinux-dev-2cbc2776efe4faed0e17c48ae076aa03a0fcc61f.tar.xz
linux-dev-2cbc2776efe4faed0e17c48ae076aa03a0fcc61f.zip
swiotlb: remove swiotlb_nr_tbl
All callers just use it to check if swiotlb is active at all, for which they can just use is_swiotlb_active. In the longer run drivers need to stop using is_swiotlb_active as well, but let's do the simple step first. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'include/linux/swiotlb.h')
-rw-r--r--include/linux/swiotlb.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/swiotlb.h b/include/linux/swiotlb.h
index 63f7a63f61d0..216854a5e513 100644
--- a/include/linux/swiotlb.h
+++ b/include/linux/swiotlb.h
@@ -37,7 +37,6 @@ enum swiotlb_force {
extern void swiotlb_init(int verbose);
int swiotlb_init_with_tbl(char *tlb, unsigned long nslabs, int verbose);
-extern unsigned long swiotlb_nr_tbl(void);
unsigned long swiotlb_size_or_default(void);
extern int swiotlb_late_init_with_tbl(char *tlb, unsigned long nslabs);
extern int swiotlb_late_init_with_default_size(size_t default_size);