]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/vt-d: Remove unused dma_to_mm_pfn function
authorMaíra Canal <maira.canal@usp.br>
Fri, 17 Dec 2021 08:38:16 +0000 (16:38 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 17 Dec 2021 08:40:29 +0000 (09:40 +0100)
commita95cf9a3c9856a32e6efb2e5c531cdede1248da7
tree34728a0478b72234d0df857321d9571e7cd7f2ad
parent9ece5f8b9af2526d9b81dd91c68ce9abf25d8db2
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 <maira.canal@usp.br>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20211217083817.1745419-4-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/iommu.c