From 6f43299f3b6a9ed7eb264ea39ead12f2dd0373fc Mon Sep 17 00:00:00 2001 From: Liam Girdwood Date: Fri, 4 Feb 2022 17:08:15 +0000 Subject: [PATCH] testbench: take the global data off the stack. Testbench prm is global data used by many thread. Take it off the stack. Signed-off-by: Liam Girdwood --- tools/testbench/testbench.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/testbench/testbench.c b/tools/testbench/testbench.c index ef5306155..c002a14ae 100644 --- a/tools/testbench/testbench.c +++ b/tools/testbench/testbench.c @@ -726,9 +726,10 @@ static void *pipline_test(void *data) return NULL; } +static struct testbench_prm tp; + int main(int argc, char **argv) { - struct testbench_prm tp; struct pipeline_thread_data ptdata[CONFIG_CORE_COUNT]; int i, err;