We need this macro on RISC-V.

Signed-off-by: Ralf Ramsauer <ralf.ramsa...@oth-regensburg.de>
---
 hypervisor/arch/arm-common/irqchip.c   | 5 -----
 hypervisor/include/jailhouse/control.h | 5 +++++
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/hypervisor/arch/arm-common/irqchip.c 
b/hypervisor/arch/arm-common/irqchip.c
index 59e5dd53..c93117d1 100644
--- a/hypervisor/arch/arm-common/irqchip.c
+++ b/hypervisor/arch/arm-common/irqchip.c
@@ -24,11 +24,6 @@
 #include <asm/irqchip.h>
 #include <asm/smccc.h>
 
-#define for_each_irqchip(chip, config, counter)                                
\
-       for ((chip) = jailhouse_cell_irqchips(config), (counter) = 0;   \
-            (counter) < (config)->num_irqchips;                        \
-            (chip)++, (counter)++)
-
 spinlock_t dist_lock;
 
 void *gicd_base;
diff --git a/hypervisor/include/jailhouse/control.h 
b/hypervisor/include/jailhouse/control.h
index 2e2446f0..ddb9d039 100644
--- a/hypervisor/include/jailhouse/control.h
+++ b/hypervisor/include/jailhouse/control.h
@@ -106,6 +106,11 @@ unsigned int next_cpu(unsigned int cpu, struct cpu_set 
*cpu_set,
             (counter) < (config)->num_memory_regions;                  \
             (mem)++, (counter)++)
 
+#define for_each_irqchip(chip, config, counter)                                
\
+       for ((chip) = jailhouse_cell_irqchips(config), (counter) = 0;   \
+            (counter) < (config)->num_irqchips;                        \
+            (chip)++, (counter)++)
+
 /**
  * Check if the CPU is assigned to the specified cell.
  * @param cell         Cell the CPU may belong to.
-- 
2.40.1

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jailhouse-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/20230519204033.643200-45-ralf.ramsauer%40oth-regensburg.de.

Reply via email to