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

arch: mips: mm: page: Remove unused function

Remove the function sb1_dma_init() that is not used anywhere.

This was partially found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Patchwork: https://patchwork.linux-mips.org/patch/8873/
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: John Crispin <blogic@openwrt.org>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org

authored by

Rickard Strandqvist and committed by
Paul Burton
829caee7 ff404a93

-15
-15
arch/mips/mm/page.c
··· 623 623 u64 pad_b; 624 624 } ____cacheline_aligned_in_smp page_descr[DM_NUM_CHANNELS]; 625 625 626 - void sb1_dma_init(void) 627 - { 628 - int i; 629 - 630 - for (i = 0; i < DM_NUM_CHANNELS; i++) { 631 - const u64 base_val = CPHYSADDR((unsigned long)&page_descr[i]) | 632 - V_DM_DSCR_BASE_RINGSZ(1); 633 - void *base_reg = IOADDR(A_DM_REGISTER(i, R_DM_DSCR_BASE)); 634 - 635 - __raw_writeq(base_val, base_reg); 636 - __raw_writeq(base_val | M_DM_DSCR_BASE_RESET, base_reg); 637 - __raw_writeq(base_val | M_DM_DSCR_BASE_ENABL, base_reg); 638 - } 639 - } 640 - 641 626 void clear_page(void *page) 642 627 { 643 628 u64 to_phys = CPHYSADDR((unsigned long)page);