[igt-dev] [PATCH 7/7] benchmarks/gem_syslatency.c: Fix musl build

Bernd Kuhls bernd at kuhls.net
Sun Oct 22 15:52:26 UTC 2023


From: Stefano Ragni <st3r4g at protonmail.com>

Original patch was added to void-linux:
https://github.com/void-linux/void-packages/commit/ddfc1f66a0c571b420303c33aed29fd38ace4fc7

Bug report with request to split the original patch into some
functional changes:
https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/issues/138

Fixes build error:
../benchmarks/gem_syslatency.c:166:13: error: ‘union <anonymous>’ has no member named ‘sigev_notify_thread_id’
  166 |         sev.sigev_notify_thread_id = gettid();

Signed-off-by: Bernd Kuhls <bernd at kuhls.net>
---
 benchmarks/gem_syslatency.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/benchmarks/gem_syslatency.c b/benchmarks/gem_syslatency.c
index 312c428b7..e0740fc11 100644
--- a/benchmarks/gem_syslatency.c
+++ b/benchmarks/gem_syslatency.c
@@ -46,6 +46,8 @@
 #include <linux/unistd.h>
 #endif
 
+#define sigev_notify_thread_id sigev_notify_function
+
 #include "i915/gem_create.h"
 #include "i915/gem_ring.h"
 #include "igt_aux.h"
-- 
2.39.2



More information about the igt-dev mailing list