We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5209f9 commit c95a9c2Copy full SHA for c95a9c2
drivers/iommu/intel/iommu.c
@@ -133,11 +133,6 @@ static inline unsigned long lvl_to_nr_pages(unsigned int lvl)
133
134
/* VT-d pages must always be _smaller_ than MM pages. Otherwise things
135
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
-
141
static inline unsigned long mm_to_dma_pfn(unsigned long mm_pfn)
142
{
143
return mm_pfn << (PAGE_SHIFT - VTD_PAGE_SHIFT);
0 commit comments