From 6da774015491418918f74ad20ffba12c5152ec06 Mon Sep 17 00:00:00 2001 From: Guillaume Solignac Date: Wed, 13 Apr 2022 12:03:48 +0200 Subject: vppinfra: fix GCC 7.3 build error with asm inline GCC added asm inline in 8.3, so we change asm inline to asm volatile. Type: fix Fixes: d5045e68a782 ("vppinfra: introduce clib_perfmom") Signed-off-by: Guillaume Solignac Change-Id: I9f7781ba9de66211404348ff477a17059b408a78 --- src/vppinfra/perfmon/perfmon.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/vppinfra') diff --git a/src/vppinfra/perfmon/perfmon.h b/src/vppinfra/perfmon/perfmon.h index 0d09dc6fb23..d940921d6bf 100644 --- a/src/vppinfra/perfmon/perfmon.h +++ b/src/vppinfra/perfmon/perfmon.h @@ -69,10 +69,10 @@ static_always_inline void clib_perfmon_ioctl (int fd, u32 req) { #ifdef __x86_64__ - asm inline("syscall" - : - : "D"(fd), "S"(req), "a"(__NR_ioctl), "d"(PERF_IOC_FLAG_GROUP) - : "rcx", "r11" /* registers modified by kernel */); + asm volatile("syscall" + : + : "D"(fd), "S"(req), "a"(__NR_ioctl), "d"(PERF_IOC_FLAG_GROUP) + : "rcx", "r11" /* registers modified by kernel */); #else ioctl (fd, req, PERF_IOC_FLAG_GROUP); #endif -- cgit 1.2.3-korg