From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dd20012.kasserver.com (dd20012.kasserver.com [85.13.140.57]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9B58710E835 for ; Thu, 26 Oct 2023 17:15:43 +0000 (UTC) From: Bernd Kuhls To: igt-dev@lists.freedesktop.org Date: Thu, 26 Oct 2023 19:14:39 +0200 Message-Id: <20231026171440.4046190-6-bernd@kuhls.net> In-Reply-To: <20231026171440.4046190-1-bernd@kuhls.net> References: <20231026171440.4046190-1-bernd@kuhls.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH v2 5/6] lib/igt_halffloat.c: Fix musl/uclibc build List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stefano Ragni Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: From: Stefano Ragni Original patch was added to void-linux: https://github.com/void-linux/void-packages/commit/ddfc1f66a0c571b420303c33aed29fd38ace4fc7 Fixes build error: ../lib/igt_halffloat.c:205:6: error: ‘ifunc’ is not supported on this target 205 | void igt_float_to_half(const float *f, uint16_t *h, unsigned int num) ../lib/igt_halffloat.c:216:6: error: ‘ifunc’ is not supported on this target 216 | void igt_half_to_float(const uint16_t *h, float *f, unsigned int num) Bug report with request to split the original patch into some functional changes: Link: https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/issues/138 Signed-off-by: Stefano Ragni Signed-off-by: Bernd Kuhls --- lib/igt_halffloat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/igt_halffloat.c b/lib/igt_halffloat.c index 08ab05fce..5dbe08e01 100644 --- a/lib/igt_halffloat.c +++ b/lib/igt_halffloat.c @@ -162,7 +162,7 @@ static inline float _half_to_float(uint16_t val) return fi.f; } -#if defined(__x86_64__) && !defined(__clang__) +#if defined(__x86_64__) && !defined(__clang__) && defined(__GLIBC__) && !defined(__UCLIBC__) #pragma GCC push_options #pragma GCC target("f16c") -- 2.39.2