Skip to content

Commit 9fc18f6

Browse files
author
Christoph Hellwig
committed
dma-mapping: mark dma_supported static
Now that the remaining users in drivers are gone, this function can be marked static. Signed-off-by: Christoph Hellwig <hch@lst.de>
1 parent 43b9190 commit 9fc18f6

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

include/linux/dma-mapping.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ int dma_mmap_attrs(struct device *dev, struct vm_area_struct *vma,
139139
void *cpu_addr, dma_addr_t dma_addr, size_t size,
140140
unsigned long attrs);
141141
bool dma_can_mmap(struct device *dev);
142-
int dma_supported(struct device *dev, u64 mask);
143142
bool dma_pci_p2pdma_supported(struct device *dev);
144143
int dma_set_mask(struct device *dev, u64 mask);
145144
int dma_set_coherent_mask(struct device *dev, u64 mask);
@@ -248,10 +247,6 @@ static inline bool dma_can_mmap(struct device *dev)
248247
{
249248
return false;
250249
}
251-
static inline int dma_supported(struct device *dev, u64 mask)
252-
{
253-
return 0;
254-
}
255250
static inline bool dma_pci_p2pdma_supported(struct device *dev)
256251
{
257252
return false;

kernel/dma/mapping.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ int dma_mmap_noncontiguous(struct device *dev, struct vm_area_struct *vma,
707707
}
708708
EXPORT_SYMBOL_GPL(dma_mmap_noncontiguous);
709709

710-
int dma_supported(struct device *dev, u64 mask)
710+
static int dma_supported(struct device *dev, u64 mask)
711711
{
712712
const struct dma_map_ops *ops = get_dma_ops(dev);
713713

@@ -721,7 +721,6 @@ int dma_supported(struct device *dev, u64 mask)
721721
return 1;
722722
return ops->dma_supported(dev, mask);
723723
}
724-
EXPORT_SYMBOL(dma_supported);
725724

726725
bool dma_pci_p2pdma_supported(struct device *dev)
727726
{

0 commit comments

Comments
 (0)