Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

microblaze: remove consistent_sync and consistent_sync_page

Both unused.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>

authored by

Christoph Hellwig and committed by
Michal Simek
ed207a74 5411ad27

-48
-3
arch/microblaze/include/asm/pgtable.h
··· 553 553 554 554 extern unsigned long ioremap_bot, ioremap_base; 555 555 556 - void consistent_sync(void *vaddr, size_t size, int direction); 557 - void consistent_sync_page(struct page *page, unsigned long offset, 558 - size_t size, int direction); 559 556 unsigned long consistent_virt_to_pfn(void *vaddr); 560 557 561 558 void setup_memory(void);
-45
arch/microblaze/mm/consistent.c
··· 220 220 flush_tlb_all(); 221 221 #endif 222 222 } 223 - 224 - /* 225 - * make an area consistent. 226 - */ 227 - void consistent_sync(void *vaddr, size_t size, int direction) 228 - { 229 - unsigned long start; 230 - unsigned long end; 231 - 232 - start = (unsigned long)vaddr; 233 - 234 - /* Convert start address back down to unshadowed memory region */ 235 - #ifdef CONFIG_XILINX_UNCACHED_SHADOW 236 - start &= ~UNCACHED_SHADOW_MASK; 237 - #endif 238 - end = start + size; 239 - 240 - switch (direction) { 241 - case PCI_DMA_NONE: 242 - BUG(); 243 - case PCI_DMA_FROMDEVICE: /* invalidate only */ 244 - invalidate_dcache_range(start, end); 245 - break; 246 - case PCI_DMA_TODEVICE: /* writeback only */ 247 - flush_dcache_range(start, end); 248 - break; 249 - case PCI_DMA_BIDIRECTIONAL: /* writeback and invalidate */ 250 - flush_dcache_range(start, end); 251 - break; 252 - } 253 - } 254 - EXPORT_SYMBOL(consistent_sync); 255 - 256 - /* 257 - * consistent_sync_page makes memory consistent. identical 258 - * to consistent_sync, but takes a struct page instead of a 259 - * virtual address 260 - */ 261 - void consistent_sync_page(struct page *page, unsigned long offset, 262 - size_t size, int direction) 263 - { 264 - unsigned long start = (unsigned long)page_address(page) + offset; 265 - consistent_sync((void *)start, size, direction); 266 - } 267 - EXPORT_SYMBOL(consistent_sync_page);