From d43c5b1d197da4cd62d7893dd06f060168023337 Mon Sep 17 00:00:00 2001 From: Jose Fonseca Date: Tue, 30 Aug 2022 23:13:58 +0800 Subject: [PATCH] util: Add macro util_get_cpu_caps in u_cpu_detect.c for avoid accidentally call it in u_cpu_detect.c Signed-off-by: Jose Fonseca Reviewed-by: Yonggang Luo Part-of: --- src/util/u_cpu_detect.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/util/u_cpu_detect.c b/src/util/u_cpu_detect.c index dd799f29056..52ea4440f39 100644 --- a/src/util/u_cpu_detect.c +++ b/src/util/u_cpu_detect.c @@ -90,6 +90,9 @@ #include #endif +// prevent inadvert infinite recursion +#define util_get_cpu_caps() util_get_cpu_caps_DO_NOT_USE() + DEBUG_GET_ONCE_BOOL_OPTION(dump_cpu, "GALLIUM_DUMP_CPU", false) static