From patchwork Fri May 17 09:28:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitriy Chestnykh X-Patchwork-Id: 1936360 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=CFu0Xjie; 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 4VghVJ2Z7Kz20dJ for ; Fri, 17 May 2024 19:28:53 +1000 (AEST) Received: from helium.openadk.org (localhost [IPv6:::1]) by helium.openadk.org (Postfix) with ESMTP id 8497F3528329; Fri, 17 May 2024 11:28:37 +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=CFu0Xjie; dkim-atps=neutral Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) by helium.openadk.org (Postfix) with ESMTPS id 589623528325 for ; Fri, 17 May 2024 11:28:32 +0200 (CEST) Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-523bb4c7e2dso28163e87.0 for ; Fri, 17 May 2024 02:28:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715938111; x=1716542911; 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=lFC+fOi2m1RpWN4wjqinpcyalCQw2wPv9MT1Lfh6wH0=; b=CFu0Xjie/24IaflTRMEisuniSFw9qoKv47Z4EYXI7dGF7UdM8/lZ9BfRFYpX8lFNNJ zvOTIh+IgUD7oGNTnjbk64JwXSVspN7Pm11ZL4yPvheqypKwY+dZIgAC3jIvoDLjAqbL 1jFRx98pzxvxq4JqsEs0s1kj0T/aRbLH7vcVas7LlUdlTQyBQLC/Hzva83BdaKBS8Pvu nfey76c/hoYnV0xewwCnCgv2sLZFlY36ba4o7K/y8tkgTIXz1SOOS7JgzEA+D5spn+B5 NE8+JSr97i8LUCn1jMkckb+9VLt19NGKKtJM1fD/GQTEc2GGKcXvZvo6GYmOmkimUri8 5uXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715938111; x=1716542911; 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=lFC+fOi2m1RpWN4wjqinpcyalCQw2wPv9MT1Lfh6wH0=; b=rlNpFlbQmVWydJCLtsdp0qZiu9B4eQjdJ+0Hpfbqg/sKkV5tcC138LvToF7Z4fmwR1 ysHBi0cO+nrFXqt0FhcPB1G/KMQW2RhrwadlDDMINH6O7u0OUcywI3Mrcku3cqatZuxp ulZsCygLPmg/CKB/dDNu5t2Ek06sJfLNRg0515DX65vL6nNUyYiG4zMEmPP0CSV4FOnB Bp/fawspCz1ObIczDclvk0vLfQGK+5d1hy4QLbt5uah7PH4iDIuhvbScUwmKqYHKnBcY 9Sh3R2rY9gKY45ER4zZqnhq+e4P4Yt77PtQ5TzzPHJqmRFx737UjTishqFbImL5YxpNY CxKw== X-Gm-Message-State: AOJu0Yy/umNQok8TWd5lAH19kSj7xuFr4UF+zYYDa1pU6KkjdvZuhpGG WJR2cgs8yDWfYxdrKHRd8XG+Phy0l+hSGnLyz6FaIwolBPC9inl3Rl8AkQ== X-Google-Smtp-Source: AGHT+IGM7RvwJ59NQqPxB0Y17uIauBD3hdAQiFeqRdZI1mPYPNvkTfmgEu1TYfaQYKWGTi+IghJh/w== X-Received: by 2002:a05:6512:281a:b0:51f:103b:532b with SMTP id 2adb3069b0e04-5221027cd0emr16454491e87.3.1715938110682; Fri, 17 May 2024 02:28:30 -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-521f38d8c38sm3247249e87.211.2024.05.17.02.28.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 02:28:29 -0700 (PDT) From: Dmitry Chestnykh To: devel@uclibc-ng.org Date: Fri, 17 May 2024 12:28:07 +0300 Message-ID: <20240517092807.295586-1-dm.chestnykh@gmail.com> X-Mailer: git-send-email 2.45.1 MIME-Version: 1.0 Message-ID-Hash: CY5N2F5ML2U7PHN7JM6FZZ3JPQQOLNBY X-Message-ID-Hash: CY5N2F5ML2U7PHN7JM6FZZ3JPQQOLNBY 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 uClibc build for nds32 with gcc-14. List-Id: uClibc-ng Development Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Signed-off-by: Dmitry Chestnykh --- libc/sysdeps/linux/common/fstat64.c | 2 +- libc/sysdeps/linux/nds32/jmpbuf-unwind.h | 2 +- libpthread/nptl/sysdeps/nds32/dl-tls.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libc/sysdeps/linux/common/fstat64.c b/libc/sysdeps/linux/common/fstat64.c index 359c22af6..ca25bde5e 100644 --- a/libc/sysdeps/linux/common/fstat64.c +++ b/libc/sysdeps/linux/common/fstat64.c @@ -30,7 +30,7 @@ int fstat64(int fd, struct stat64 *buf) return result; #else - return __syscall_fstat64(fd, buf); + return __syscall_fstat64(fd, (struct kernel_stat64 *)buf); #endif } libc_hidden_def(fstat64) diff --git a/libc/sysdeps/linux/nds32/jmpbuf-unwind.h b/libc/sysdeps/linux/nds32/jmpbuf-unwind.h index 8499e99b4..5b85f4d23 100644 --- a/libc/sysdeps/linux/nds32/jmpbuf-unwind.h +++ b/libc/sysdeps/linux/nds32/jmpbuf-unwind.h @@ -20,7 +20,7 @@ static inline uintptr_t __attribute__ ((unused)) _jmpbuf_sp (__jmp_buf regs) { - uintptr_t sp = &(regs)[0].__regs[__JMP_BUF_SP]; + uintptr_t sp = (uintptr_t) &(regs)[0].__regs[__JMP_BUF_SP]; return sp; } diff --git a/libpthread/nptl/sysdeps/nds32/dl-tls.h b/libpthread/nptl/sysdeps/nds32/dl-tls.h index 3b11e7f42..f0107cacb 100644 --- a/libpthread/nptl/sysdeps/nds32/dl-tls.h +++ b/libpthread/nptl/sysdeps/nds32/dl-tls.h @@ -50,7 +50,7 @@ struct tlsdesc_dynamic_arg extern void *__tls_get_addr (tls_index *ti); extern ptrdiff_t attribute_hidden - _dl_tlsdesc_return(struct tlsdesc_dynamic_arg *); + _dl_tlsdesc_return(struct tlsdesc *); extern void *_dl_make_tlsdesc_dynamic (struct link_map *map, size_t ti_offset); extern ptrdiff_t attribute_hidden