From d74754adb5e687e4bbb4b5da4d08cfd0605f937b Mon Sep 17 00:00:00 2001 From: Michael Mueller Date: Mon, 27 Mar 2023 17:07:13 +0200 Subject: [PATCH] base: Use define MAX_SUPPORTED_CPUS for dimensioning affinity array. --- repos/base/src/core/include/topo_session_component.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/repos/base/src/core/include/topo_session_component.h b/repos/base/src/core/include/topo_session_component.h index 10ffb0e7b0..e86ffd7665 100644 --- a/repos/base/src/core/include/topo_session_component.h +++ b/repos/base/src/core/include/topo_session_component.h @@ -20,6 +20,7 @@ #include #include #include +#include #include namespace Genode { @@ -32,7 +33,7 @@ class Genode::Topo_session_component : public Session_object Genode::Affinity &_affinity; Sliced_heap _md_alloc; - Topology::Numa_region _node_affinities[64][64]; + Topology::Numa_region _node_affinities[Genode::Platform::MAX_SUPPORTED_CPUS][Genode::Platform::MAX_SUPPORTED_CPUS]; unsigned _node_count; Topology::Numa_region _nodes[64];