Skip to content

Commit 9cc0aae

Browse files
John Garryjoergroedel
authored andcommitted
iova: Make has_iova_flush_queue() private
Function has_iova_flush_queue() has no users outside iova.c, so make it private. Signed-off-by: John Garry <[email protected]> Acked-by: Will Deacon <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent 6ee1d74 commit 9cc0aae

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

drivers/iommu/iova.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ init_iova_domain(struct iova_domain *iovad, unsigned long granule,
5555
}
5656
EXPORT_SYMBOL_GPL(init_iova_domain);
5757

58-
bool has_iova_flush_queue(struct iova_domain *iovad)
58+
static bool has_iova_flush_queue(struct iova_domain *iovad)
5959
{
6060
return !!iovad->fq;
6161
}

include/linux/iova.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ struct iova *reserve_iova(struct iova_domain *iovad, unsigned long pfn_lo,
153153
void copy_reserved_iova(struct iova_domain *from, struct iova_domain *to);
154154
void init_iova_domain(struct iova_domain *iovad, unsigned long granule,
155155
unsigned long start_pfn);
156-
bool has_iova_flush_queue(struct iova_domain *iovad);
157156
int init_iova_flush_queue(struct iova_domain *iovad,
158157
iova_flush_cb flush_cb, iova_entry_dtor entry_dtor);
159158
struct iova *find_iova(struct iova_domain *iovad, unsigned long pfn);
@@ -223,11 +222,6 @@ static inline void init_iova_domain(struct iova_domain *iovad,
223222
{
224223
}
225224

226-
static inline bool has_iova_flush_queue(struct iova_domain *iovad)
227-
{
228-
return false;
229-
}
230-
231225
static inline int init_iova_flush_queue(struct iova_domain *iovad,
232226
iova_flush_cb flush_cb,
233227
iova_entry_dtor entry_dtor)

0 commit comments

Comments
 (0)