From nobody Thu Dec 18 13:40:49 2025 Received: from xry111.site (xry111.site [89.208.246.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 972A0286889 for ; Mon, 15 Dec 2025 03:36:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=89.208.246.23 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765769805; cv=none; b=UwpxGIxqX7yrX+v6J6g7ksrriaRw+b8mOvcqsioduP6amhtzAFgO1wnxbvbW6evpkM6srNHM676Sx0mpBC5nWeiFaAPoSaos5V9g+GbaFjCIqvmuAMH2tk6F1lKCL9U52l4Z22u2taCjRm02XpcV+BZ5AE3HuCuuNiEWowTkYUM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765769805; c=relaxed/simple; bh=4rbaI/WygUcZnQbVdTD185zvLjB232LXjmpdEWznem0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ACENCP1QatkSX2PhlOGFKsJOAUE5o3T8+mFLirtRHk+mYdW2E9dJwyEJk78l3l732n0kYKnVTlqd0h18OGn2CIeFJzsQulJhTskaPpdJiKNxah61jVkHQ1tLiMc21dvIs+SXBiIgakAWRQxzGWLQsv6QqkhNuvF+c3A7hdjPWtA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=xry111.site; spf=pass smtp.mailfrom=xry111.site; dkim=pass (1024-bit key) header.d=xry111.site header.i=@xry111.site header.b=LJIdwbAg; arc=none smtp.client-ip=89.208.246.23 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=xry111.site Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xry111.site Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=xry111.site header.i=@xry111.site header.b="LJIdwbAg" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xry111.site; s=default; t=1765769796; bh=nGLE8uK3PMZZv+yu5MXweRNj4FmhY68AJ/VNDWuaJY8=; h=From:To:Cc:Subject:Date:From; b=LJIdwbAgitsNxFOQPvOXjv8J2cSjqDa9u94dHEPc6ZVb44mmocJlkm79dutEg30CG vcVITn3OVOBYsp5OdRM1QVClohOTi+DGdlIm2UYUpMRFNnG7ZwMmeVhJLQb+Wjhhvf qZ9znRCgaWtVI3UMDGW9VyLF6ddAPqKvfg5Ev/Tc= Received: from stargazer (unknown [IPv6:2409:8a4c:e19:b211::256]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 28211671F1; Sun, 14 Dec 2025 22:36:33 -0500 (EST) From: Xi Ruoyao To: Huacai Chen , WANG Xuerui , Arnd Bergmann Cc: Mingcong Bai , loongarch@lists.linux.dev, Xi Ruoyao , Jiaxun Yang , linux-kernel@vger.kernel.org (open list) Subject: [PATCH] LoongArch: Don't define __ARCH_WANT_NEW_STAT for LA32 Date: Mon, 15 Dec 2025 11:34:42 +0800 Message-ID: <20251215033443.196159-2-xry111@xry111.site> X-Mailer: git-send-email 2.52.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" While on LA64 we had added __ARCH_WANT_NEW_STAT back for technological aesthetics reason, on LA32 the newstat family suffers Y2038 issue and it should not be used at all, as the commit 82b355d161c9 ("y2038: Remove newstat family from default syscall set") has already pointed out. Fixes: 14338e631afd ("LoongArch: Adjust system call for 32BIT/64BIT") Signed-off-by: Xi Ruoyao Reviewed-by: Jiaxun Yang --- arch/loongarch/include/asm/unistd.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/loongarch/include/asm/unistd.h b/arch/loongarch/include/a= sm/unistd.h index e2c0f3d86c7b..4a7e4a6b6627 100644 --- a/arch/loongarch/include/asm/unistd.h +++ b/arch/loongarch/include/asm/unistd.h @@ -8,7 +8,10 @@ =20 #include =20 +#if defined(__LP64__) && !defined(__SYSCALL_COMPAT) #define __ARCH_WANT_NEW_STAT +#endif + #define __ARCH_WANT_SYS_CLONE =20 #define NR_syscalls (__NR_syscalls) --=20 2.52.0