RISC-V: move riscv_cbom_block_size to the correct #ifdef

A patch from »RISC-V: move riscv_cbom_block_size to the correct #ifdef« in state Obsolete for linux-kernel

From: Heiko Stuebner <heiko@...> Date: Wed, 14 Sep 2022 16:29:31 +0200

Commit-Message

riscv_cbom_block_size is used by all current non-coherent dma operations, not only the zicbom variant. So move it over the block also containing the riscv_noncoherent_supported() prototype. Fixes: 8f7e001e0325 ("RISC-V: Clean up the Zicbom block size probing") Reported-by: kernel test robot <lkp@...> Signed-off-by: Heiko Stuebner <heiko@...>

Patch-Comment

arch/riscv/include/asm/cacheflush.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Statistics

  • 1 lines added
  • 1 lines removed

Changes

--------------------- arch/riscv/include/asm/cacheflush.h ----------------------
index a89c005b4bbf..5c16d901d3da 100644
@@ -43,13 +43,13 @@ void flush_icache_mm(struct mm_struct *mm, bool local);
#endif /* CONFIG_SMP */
#ifdef CONFIG_RISCV_ISA_ZICBOM
-extern unsigned int riscv_cbom_block_size;
void riscv_init_cbom_blocksize(void);
#else
static inline void riscv_init_cbom_blocksize(void) { }
#endif
#ifdef CONFIG_RISCV_DMA_NONCOHERENT
+extern unsigned int riscv_cbom_block_size;
void riscv_noncoherent_supported(void);
#endif
 
 

Recent Patches

About Us

Sed lacus. Donec lectus. Nullam pretium nibh ut turpis. Nam bibendum. In nulla tortor, elementum vel, tempor at, varius non, purus. Mauris vitae nisl nec metus placerat consectetuer.

Read More...