All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] RISC-V: move riscv_cbom_block_size to the correct #ifdef block
@ 2022-09-14 14:36 Heiko Stuebner
  2022-09-14 14:46 ` Anup Patel
  2022-09-14 19:32 ` Conor.Dooley
  0 siblings, 2 replies; 8+ messages in thread
From: Heiko Stuebner @ 2022-09-14 14:36 UTC (permalink / raw)
  To: palmer
  Cc: linux-riscv, nathan, mail, atishp, ajones, anup, conor.dooley,
	Heiko Stuebner, kernel test robot

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@intel.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
---
 arch/riscv/include/asm/cacheflush.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/riscv/include/asm/cacheflush.h b/arch/riscv/include/asm/cacheflush.h
index a89c005b4bbf..5c16d901d3da 100644
--- a/arch/riscv/include/asm/cacheflush.h
+++ b/arch/riscv/include/asm/cacheflush.h
@@ -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
 
-- 
2.35.1


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-09-15 17:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-14 14:36 [PATCH] RISC-V: move riscv_cbom_block_size to the correct #ifdef block Heiko Stuebner
2022-09-14 14:46 ` Anup Patel
2022-09-14 14:54   ` Conor.Dooley
2022-09-14 14:56     ` Anup Patel
2022-09-14 14:58       ` Heiko Stuebner
2022-09-14 19:32 ` Conor.Dooley
2022-09-14 22:19   ` Heiko Stuebner
2022-09-15 17:09     ` Palmer Dabbelt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.