microblaze: remove consistent_sync and consistent_sync_page
authorChristoph Hellwig <hch@lst.de>
Thu, 19 Jul 2018 12:54:40 +0000 (05:54 -0700)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 20 Jul 2018 12:29:54 +0000 (14:29 +0200)
Both unused.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/microblaze/include/asm/pgtable.h
arch/microblaze/mm/consistent.c

index 8a2e654b709f26f6cd37f9c907dc363d89dc76d5..7b650ab14fa089f22cf2953c135fdcff08da7e9a 100644 (file)
@@ -553,9 +553,6 @@ void __init *early_get_page(void);
 
 extern unsigned long ioremap_bot, ioremap_base;
 
-void consistent_sync(void *vaddr, size_t size, int direction);
-void consistent_sync_page(struct page *page, unsigned long offset,
-       size_t size, int direction);
 unsigned long consistent_virt_to_pfn(void *vaddr);
 
 void setup_memory(void);
index b9a9c8c3397be381ba04f37e8f932db435093342..c9a278ac795a88885d151ebdf3bd27dd559006c4 100644 (file)
@@ -220,48 +220,3 @@ void arch_dma_free(struct device *dev, size_t size, void *vaddr,
        flush_tlb_all();
 #endif
 }
-
-/*
- * make an area consistent.
- */
-void consistent_sync(void *vaddr, size_t size, int direction)
-{
-       unsigned long start;
-       unsigned long end;
-
-       start = (unsigned long)vaddr;
-
-       /* Convert start address back down to unshadowed memory region */
-#ifdef CONFIG_XILINX_UNCACHED_SHADOW
-       start &= ~UNCACHED_SHADOW_MASK;
-#endif
-       end = start + size;
-
-       switch (direction) {
-       case PCI_DMA_NONE:
-               BUG();
-       case PCI_DMA_FROMDEVICE:        /* invalidate only */
-               invalidate_dcache_range(start, end);
-               break;
-       case PCI_DMA_TODEVICE:          /* writeback only */
-               flush_dcache_range(start, end);
-               break;
-       case PCI_DMA_BIDIRECTIONAL:     /* writeback and invalidate */
-               flush_dcache_range(start, end);
-               break;
-       }
-}
-EXPORT_SYMBOL(consistent_sync);
-
-/*
- * consistent_sync_page makes memory consistent. identical
- * to consistent_sync, but takes a struct page instead of a
- * virtual address
- */
-void consistent_sync_page(struct page *page, unsigned long offset,
-       size_t size, int direction)
-{
-       unsigned long start = (unsigned long)page_address(page) + offset;
-       consistent_sync((void *)start, size, direction);
-}
-EXPORT_SYMBOL(consistent_sync_page);