From patchwork Tue Sep 24 03:21:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: caiyinyu X-Patchwork-Id: 1988740 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (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 4XCQLB1VNdz1xsN for ; Tue, 24 Sep 2024 13:28:18 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CC354385B508 for ; Tue, 24 Sep 2024 03:28:14 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by sourceware.org (Postfix) with ESMTP id 8B715385B508 for ; Tue, 24 Sep 2024 03:27:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8B715385B508 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=loongson.cn ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8B715385B508 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=114.242.206.163 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1727148471; cv=none; b=VD0PDInJ2tYAqgw7tz1vwikJUltnCJePuwR9IZrUwWTGtRm1vJxqC3nUzpHv5xrQ/U7xtYcavY4lKVK8DUZMGrH8Y64benAiC5EnurJJ2bfFD/bFrv4tLxbKZTZxUTDlljQK7GTOLMQVeFe0Qn/t52kKlRFpIdtRuSStZpFbKrQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1727148471; c=relaxed/simple; bh=ZpZqVDWpXyK7aAF2cDn4WT7aEqzPipbOtroUv69MHBA=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=xpIGa3oyrFFoJ/UK2HLqk6b2CID8DlVyQEVZ7cgnI2Enj8vCbUVLjdav+Rs7tCTQ8ynYFTzQXa3DxpoNChL4H/N/7fqPdIQBG34eghiKBFazHe+rVFa4kv+n0nzt3iTB9+gvmsrs0gNhoP+G9OQ2Iwdgkkt/WSHNH2nU1LMsCRg= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from loongson.cn (unknown [10.40.65.51]) by gateway (Coremail) with SMTP id _____8Dx2umiMfJmaKgNAA--.31408S3; Tue, 24 Sep 2024 11:27:31 +0800 (CST) Received: from localhost.localdomain (unknown [10.40.65.51]) by front2 (Coremail) with SMTP id qciowMCxrsegMfJmjlMQAA--.853S4; Tue, 24 Sep 2024 11:27:28 +0800 (CST) From: caiyinyu To: fweimer@redhat.com, libc-alpha@sourceware.org Cc: adhemerval.zanella@linaro.org, shankerwangmiao@gmail.com, xry111@xry111.site, caiyinyu Subject: [PATCH V2] LoongArch: Undef __NR_fstat and __NR_newfstatat. Date: Tue, 24 Sep 2024 11:21:53 +0800 Message-ID: <20240924032152.1346704-2-caiyinyu@loongson.cn> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-CM-TRANSID: qciowMCxrsegMfJmjlMQAA--.853S4 X-CM-SenderInfo: 5fdl5xhq1xqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBj93XoW7CrykJF1xKrW7Xr1UCFykWFX_yoW8tr18pr sxuF15CF1kG34xG393u3W7ZFn5Jrn3GrZIqrW3CrWUZ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T_PATCH_0, KAM_DMARC_STATUS, KAM_SHORT, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org In Linux 6.11, fstat and newfstatat are added back. To avoid the messy usage of the fstat, newfstatat, and statx system calls, we will continue using statx only in glibc, maintaining consistency with previous versions of the LoongArch-specific glibc implementation. Signed-off-by: caiyinyu Reviewed-by: Xi Ruoyao Reviewed-by: Miao Wang Reviewed-by: Florian Weimer V2: According to Florian Weimer's suggest, undef __NR_fstat and __NR_newfstatat in sysdeps/unix/sysv/linux/loongarch/fixup-asm-unistd.h. V1: https://sourceware.org/pipermail/libc-alpha/2024-September/159932.html Reviewed-by: Xi Ruoyao --- .../sysv/linux/loongarch/fixup-asm-unistd.h | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 sysdeps/unix/sysv/linux/loongarch/fixup-asm-unistd.h diff --git a/sysdeps/unix/sysv/linux/loongarch/fixup-asm-unistd.h b/sysdeps/unix/sysv/linux/loongarch/fixup-asm-unistd.h new file mode 100644 index 0000000000..0062756b5c --- /dev/null +++ b/sysdeps/unix/sysv/linux/loongarch/fixup-asm-unistd.h @@ -0,0 +1,21 @@ +/* Regularize definitions. LoongArch version. + Copyright (C) 2024 Free Software Foundation, Inc. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +/* To avoid the messy usage of the fstat, newfstatat, and statx system calls, we +only use statx. */ +#undef __NR_fstat +#undef __NR_newfstatat