[PATCH v2 2/3] riscv: make header self-contained

Ahmad Fatoum
2026-04-14T08:07:30Z

In preparation for adding a call to sync_caches_for_execution() into
common code, make sure inclusion of asm/cache.h on RISC-V doesn't
require any extra headers to be included beforehand.

Signed-off-by: Ahmad Fatoum <a.fatoum@barebox.org>
---
v1 -> v2:
- new commit to fix CI breakage (Sascha)
---
arch/riscv/include/asm/cache.h | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/riscv/include/asm/cache.h b/arch/riscv/include/asm/cache.h
index 8c3cde669c30..55a34354c526 100644
--- a/arch/riscv/include/asm/cache.h
+++ b/arch/riscv/include/asm/cache.h
@@ -6,6 +6,7 @@
#ifndef _ASM_RISCV_CACHE_H
#define _ASM_RISCV_CACHE_H

+#include <asm/system.h>
#include <asm/vendorid_list.h>

static inline void thead_local_flush_icache_all(void)
--
2.47.3