From f398b9c29e05af48ee73a4015dbf83273db33f1d Mon Sep 17 00:00:00 2001 From: "Gao, Shiqing" Date: Tue, 2 Jul 2024 16:40:34 +0800 Subject: [PATCH] release: fix the compilation error in release mode Commit `512c98fd7 hv: trace: show cpu usage of vms in pcpu sharing case` causes the compilation error in release mode: hypervisor/common/schedule.c:190: undefined reference to `TRACE_16STR' This patch fixes this issue. Tracked-On: #861 Signed-off-by: Gao, Shiqing --- hypervisor/release/trace.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hypervisor/release/trace.c b/hypervisor/release/trace.c index 75afc4f90..66769c190 100644 --- a/hypervisor/release/trace.c +++ b/hypervisor/release/trace.c @@ -17,3 +17,5 @@ void TRACE_6C(__unused uint32_t evid, __unused uint8_t a1, __unused uint8_t a2, __unused uint8_t a3, __unused uint8_t a4, __unused uint8_t b1, __unused uint8_t b2) { } + +void TRACE_16STR(__unused uint32_t evid, __unused const char name[]) {}