From patchwork Sat May 18 05:59:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Chestnykh X-Patchwork-Id: 1936659 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=LwIfhSTA; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=uclibc-ng.org (client-ip=2a00:1828:2000:679::23; helo=helium.openadk.org; envelope-from=devel-bounces@uclibc-ng.org; receiver=patchwork.ozlabs.org) Received: from helium.openadk.org (helium.openadk.org [IPv6:2a00:1828:2000:679::23]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VhCqQ13TSz1ydW for ; Sat, 18 May 2024 16:00:31 +1000 (AEST) Received: from helium.openadk.org (localhost [IPv6:::1]) by helium.openadk.org (Postfix) with ESMTP id A24DA3528329; Sat, 18 May 2024 08:00:23 +0200 (CEST) Authentication-Results: helium.openadk.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=LwIfhSTA; dkim-atps=neutral Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) by helium.openadk.org (Postfix) with ESMTPS id D5A3F35210E4 for ; Sat, 18 May 2024 08:00:09 +0200 (CEST) Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-5238a0486baso218338e87.3 for ; Fri, 17 May 2024 23:00:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716012008; x=1716616808; darn=uclibc-ng.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=U25IpDA1S5vpvA8ZN7diUZmu7h8qj3GDKjdWhEc4Mok=; b=LwIfhSTA/hZ3zsYwSKTxw4eUEQR4xj9PMXODGQMxPoAAnDOMoOKzzzdVsI0Od24/X1 S4ebkN6nl1X5/+otz4wZqv1KSUEnmwQTHatLYqjZ4Ico4KAw2CJ8gwKyciTsnCFpl5A0 6+8SR4A1kLifnyPOSpx+eP6x46fNgrYh83rBqdQnjk2Aef0vvShnEimhrIRIMB1I9c5Y nzYYhFfwbDFjxkPMSIIi1ZFKB0yEbnNsyZp3xJfPCm1GFxIcDWXPRK7t1tqk3nD/l1tH e2WjT0yURlq9E5lsRI7PhShXOx6vIV7eycxrlmgXN6lQa85Wmt3fXhihsGXXHJQpjiux h8dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716012008; x=1716616808; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=U25IpDA1S5vpvA8ZN7diUZmu7h8qj3GDKjdWhEc4Mok=; b=JnxulLfuMTz0/JEmyDRfL7fIjTvp7UB2K5WlceLGZ1D1sags/7uE5UQfFdasmiTMUw wxomYh1MUevhEXVPGXKQZVLt7cPkqI+DsvUjnrJFt2nr706K07lyTLwcpyPyhn89rBY0 qnDpHyfiHeOqCZfJnPCzJN1U+qSCuKR1QCi6WdKaXTGYwFgSB8GQ2QXEEX4/W5WNpKQ/ Ol0UqHCMV/HMW0ZIBlodT54NpWM/D3RTCme67EJv/CK7J/XkJLFzvD7jdORO9MfqiXUs 1gAlBgVeBN4HICKf1tFQjfscUNGw2oAoxSeXynZm4ckwiHv6gWbnciTFisr3v2GmrTLc lmAg== X-Gm-Message-State: AOJu0YwbdTo8wX/WDVqd4T9il2RK40hzjZnqkR/o3sHN/bQV/B1jDN1w N05jSOJmAY7hMf29+hQXm6O0Okk/35qAgZmbnVfCeDt2QwjSbUa/fdf/Ug== X-Google-Smtp-Source: AGHT+IE0Kg67EHudwFuyUOZhl/TD3hELYofnCJ/VMbgjIO+zLvgSXZpXWaCBhKqZVEatDauDI645Bg== X-Received: by 2002:a05:6512:690:b0:516:c241:a912 with SMTP id 2adb3069b0e04-5220fe78817mr16795071e87.1.1716012007773; Fri, 17 May 2024 23:00:07 -0700 (PDT) Received: from localhost.localdomain (109-252-38-243.nat.spd-mgts.ru. [109.252.38.243]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52392148c0bsm1209873e87.55.2024.05.17.23.00.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 23:00:07 -0700 (PDT) From: Dmitry Chestnykh To: devel@uclibc-ng.org Date: Sat, 18 May 2024 08:59:47 +0300 Message-ID: <20240518055947.166657-1-dm.chestnykh@gmail.com> X-Mailer: git-send-email 2.45.1 MIME-Version: 1.0 Message-ID-Hash: PLQ4I65VWPAWKLBXM3I74JSLHTGDMLRE X-Message-ID-Hash: PLQ4I65VWPAWKLBXM3I74JSLHTGDMLRE X-MailFrom: dm.chestnykh@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Dmitry Chestnykh X-Mailman-Version: 3.3.3 Precedence: list Subject: [uclibc-ng-devel] [PATCH] Fix riscv32 build with gcc-14. List-Id: uClibc-ng Development Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Add missing includes and function decls. Signed-off-by: Dmitry Chestnykh --- libc/sysdeps/linux/common/not-cancel.h | 2 ++ libpthread/linuxthreads/sysdeps/pthread/not-cancel.h | 2 ++ libpthread/nptl/sysdeps/unix/sysv/linux/not-cancel.h | 2 ++ 3 files changed, 6 insertions(+) diff --git a/libc/sysdeps/linux/common/not-cancel.h b/libc/sysdeps/linux/common/not-cancel.h index e4fb1d7fe..426edcc46 100644 --- a/libc/sysdeps/linux/common/not-cancel.h +++ b/libc/sysdeps/linux/common/not-cancel.h @@ -19,6 +19,7 @@ #include #include +#include #ifdef NOT_IN_libc @@ -114,6 +115,7 @@ extern __typeof(pause) __pause_nocancel; # define nanosleep_not_cancel(requested_time, remaining) \ INLINE_SYSCALL (nanosleep, 2, requested_time, remaining) #else +extern int __nanosleep_nocancel (const struct timespec *requested_time, struct timespec *remaining); # define nanosleep_not_cancel(requested_time, remaining) \ __nanosleep_nocancel (requested_time, remaining) #endif diff --git a/libpthread/linuxthreads/sysdeps/pthread/not-cancel.h b/libpthread/linuxthreads/sysdeps/pthread/not-cancel.h index bbdb0739c..6d7c4d70a 100644 --- a/libpthread/linuxthreads/sysdeps/pthread/not-cancel.h +++ b/libpthread/linuxthreads/sysdeps/pthread/not-cancel.h @@ -19,6 +19,7 @@ #include #include +#include /* Uncancelable open. */ #if defined __NR_openat && !defined __NR_open @@ -104,6 +105,7 @@ extern int __openat64_nocancel (int fd, const char *fname, int oflag, # define nanosleep_not_cancel(requested_time, remaining) \ INLINE_SYSCALL (nanosleep, 2, requested_time, remaining) #else +extern int __nanosleep_nocancel (const struct timespec *requested_time, struct timespec *remaining); # define nanosleep_not_cancel(requested_time, remaining) \ __nanosleep_nocancel (requested_time, remaining) #endif diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/not-cancel.h b/libpthread/nptl/sysdeps/unix/sysv/linux/not-cancel.h index bbdb0739c..6d7c4d70a 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/not-cancel.h +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/not-cancel.h @@ -19,6 +19,7 @@ #include #include +#include /* Uncancelable open. */ #if defined __NR_openat && !defined __NR_open @@ -104,6 +105,7 @@ extern int __openat64_nocancel (int fd, const char *fname, int oflag, # define nanosleep_not_cancel(requested_time, remaining) \ INLINE_SYSCALL (nanosleep, 2, requested_time, remaining) #else +extern int __nanosleep_nocancel (const struct timespec *requested_time, struct timespec *remaining); # define nanosleep_not_cancel(requested_time, remaining) \ __nanosleep_nocancel (requested_time, remaining) #endif