]> Pileus Git - ~andy/linux/commitdiff
iommu/vt-d, trivial: clean up unused code
authorJiang Liu <jiang.liu@linux.intel.com>
Mon, 6 Jan 2014 06:18:15 +0000 (14:18 +0800)
committerJoerg Roedel <joro@8bytes.org>
Thu, 9 Jan 2014 11:43:31 +0000 (12:43 +0100)
Remove dead code from VT-d related files.

Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: Joerg Roedel <joro@8bytes.org>
Conflicts:

drivers/iommu/dmar.c

drivers/iommu/dmar.c
drivers/iommu/intel-iommu.c

index e4c3ea0224281f5177075a51969ccd01acadded1..5a4e9afad3af329dc80cdaf1b5a2272868b68836 100644 (file)
@@ -1113,8 +1113,6 @@ static const char *irq_remap_fault_reasons[] =
        "Blocked an interrupt request due to source-id verification failure",
 };
 
-#define MAX_FAULT_REASON_IDX   (ARRAY_SIZE(fault_reason_strings) - 1)
-
 static const char *dmar_get_fault_reason(u8 fault_reason, int *fault_type)
 {
        if (fault_reason >= 0x20 && (fault_reason - 0x20 <
index 01922be564ca20c0d3904eca890f0bda9414c917..7a29a5e6e5a473242ae06ad5f5261757922e7692 100644 (file)
@@ -289,26 +289,6 @@ static inline void dma_clear_pte(struct dma_pte *pte)
        pte->val = 0;
 }
 
-static inline void dma_set_pte_readable(struct dma_pte *pte)
-{
-       pte->val |= DMA_PTE_READ;
-}
-
-static inline void dma_set_pte_writable(struct dma_pte *pte)
-{
-       pte->val |= DMA_PTE_WRITE;
-}
-
-static inline void dma_set_pte_snp(struct dma_pte *pte)
-{
-       pte->val |= DMA_PTE_SNP;
-}
-
-static inline void dma_set_pte_prot(struct dma_pte *pte, unsigned long prot)
-{
-       pte->val = (pte->val & ~3) | (prot & 3);
-}
-
 static inline u64 dma_pte_addr(struct dma_pte *pte)
 {
 #ifdef CONFIG_64BIT
@@ -319,11 +299,6 @@ static inline u64 dma_pte_addr(struct dma_pte *pte)
 #endif
 }
 
-static inline void dma_set_pte_pfn(struct dma_pte *pte, unsigned long pfn)
-{
-       pte->val |= (uint64_t)pfn << VTD_PAGE_SHIFT;
-}
-
 static inline bool dma_pte_present(struct dma_pte *pte)
 {
        return (pte->val & 3) != 0;