From: Jan Kiszka <[email protected]>

Avoid -1 as impossible exception value, rather use the equally
impossible INVALID_CPU_ID.

Signed-off-by: Jan Kiszka <[email protected]>
---
 hypervisor/include/jailhouse/control.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hypervisor/include/jailhouse/control.h 
b/hypervisor/include/jailhouse/control.h
index ececa026..35634e74 100644
--- a/hypervisor/include/jailhouse/control.h
+++ b/hypervisor/include/jailhouse/control.h
@@ -54,7 +54,7 @@ unsigned int next_cpu(unsigned int cpu, struct cpu_set 
*cpu_set,
  *
  * @see for_each_cpu_except
  */
-#define for_each_cpu(cpu, set) for_each_cpu_except(cpu, set, -1)
+#define for_each_cpu(cpu, set) for_each_cpu_except(cpu, set, INVALID_CPU_ID)
 
 /**
  * Loop-generating macro for iterating over all CPUs in a set, except the
-- 
2.36.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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/20220627131329.3659-10-ralf.ramsauer%40oth-regensburg.de.

Reply via email to