Skip to content

Commit c95a9c2

Browse files
mairacanaljoergroedel
authored andcommitted
iommu/vt-d: Remove unused dma_to_mm_pfn function
Remove dma_to_buf_pfn function, which is not used in the codebase. This was pointed by clang with the following warning: 'dma_to_mm_pfn' [-Wunused-function] static inline unsigned long dma_to_mm_pfn(unsigned long dma_pfn) ^ https://lore.kernel.org/r/YYhY7GqlrcTZlzuA@fedora drivers/iommu/intel/iommu.c:136:29: warning: unused function Signed-off-by: Maíra Canal <[email protected]> Reviewed-by: Nick Desaulniers <[email protected]> Signed-off-by: Lu Baolu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent f5209f9 commit c95a9c2

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/iommu/intel/iommu.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,6 @@ static inline unsigned long lvl_to_nr_pages(unsigned int lvl)
133133

134134
/* VT-d pages must always be _smaller_ than MM pages. Otherwise things
135135
are never going to work. */
136-
static inline unsigned long dma_to_mm_pfn(unsigned long dma_pfn)
137-
{
138-
return dma_pfn >> (PAGE_SHIFT - VTD_PAGE_SHIFT);
139-
}
140-
141136
static inline unsigned long mm_to_dma_pfn(unsigned long mm_pfn)
142137
{
143138
return mm_pfn << (PAGE_SHIFT - VTD_PAGE_SHIFT);

0 commit comments

Comments
 (0)