summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTianyu Li <tianyu.li@arm.com>2022-04-12 03:58:29 +0000
committerTianyu Li <tianyu.li@arm.com>2022-04-13 14:13:08 +0800
commita80a5b00aac2637aac5160cc34941372d0641c9d (patch)
treeba461fde68395346f1144b93e42e57d1f497d1f1
parente4fa1d2f6b8721318c0f104f2615588b5d4e0441 (diff)
vppinfra: fix clang-10 build error with asm inline
clang start to support parse asm inline from clang-11, Use asm volatile instead. Type: fix Fixes: d5045e68a782 ("vppinfra: introduce clib_perfmom") Signed-off-by: Tianyu Li <tianyu.li@arm.com> Change-Id: I00e5e19856caaed94e22f8fa6cf4f918483976a4
-rw-r--r--src/vppinfra/perfmon/perfmon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vppinfra/perfmon/perfmon.c b/src/vppinfra/perfmon/perfmon.c
index 9ec90b88d67..f44f225a86c 100644
--- a/src/vppinfra/perfmon/perfmon.c
+++ b/src/vppinfra/perfmon/perfmon.c
@@ -179,7 +179,7 @@ __clib_export void
clib_perfmon_warmup (clib_perfmon_ctx_t *ctx)
{
for (u64 i = 0; i < (u64) ctx->ref_clock; i++)
- asm inline("" : : "r"(i * i) : "memory");
+ asm volatile("" : : "r"(i * i) : "memory");
}
__clib_export u8 *