From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from wfhigh3-smtp.messagingengine.com (wfhigh3-smtp.messagingengine.com [64.147.123.154]) (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 8A2985645E; Sat, 11 May 2024 15:38:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.154 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715441941; cv=none; b=kt5IyfwGvscpDR8TWevSPBA3DK0Bw3a2QmnS9zk1t7uDguK+UPn0NDAycCT0fjW7R6BlQzdWFuUaSOLFJLxNIyadPD42W/jBGXCVQ+XFUdCQ7fOAivXiF4GfVwWTMucujzpPGHICYvJD79ZaowniynLhhhWoz6eeK4iybjx3JcQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715441941; c=relaxed/simple; bh=VjHyt4PxjoG0E9okA2UFHhBH4xk5VAMX/pgWQymeuBA=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=dBLMc/E8Qs4EFGmwxQER6z//PZAJ9Gj5r1bJaH0LF8rfW1ZfYaQmGC0XuC6fs18c84EHmqWVfI/gCuw/0LoWBo/h6AUlFPh07yJrLpQOKIyDco9hHShlb3gYVHEc1tgBNQpAtoiqnXYzwmXNRW3lyZ9/8idFZaus5uWn32/hx5I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=W3xYMTQ8; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=L9s0hzG7; arc=none smtp.client-ip=64.147.123.154 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="W3xYMTQ8"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="L9s0hzG7" Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfhigh.west.internal (Postfix) with ESMTP id 8A7821800132; Sat, 11 May 2024 11:38:57 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Sat, 11 May 2024 11:38:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1715441937; x=1715528337; bh=8b8AVLMPdkUb+D8MVCXQcH/74dxje6vo4/P3A1sCtUY=; b= W3xYMTQ8Cu6R/MGafIQnLV63habC+ESIvbsmHH2yv1D921mzlAQcWjsCfrRrBTz4 Iwz1pG6MZ5xF+/00K25sblSah+NR7xgHcoKIjjwyVR7JnqffYXG/LdSdbARppVcy YcPs+lu8D3937lyK+P+Skhy9m8EaZH+oszDqMZz7eye82ks51kKhX3CK/tAa7lT2 HlPYhWL7kg6gSMg35L4XvfNaMi3wb6BbrHmTudMBRLuUyiCLhpJmMQfNDKk4YQAa grSXPyGl6nIW1HSZDFfKX1kUNaHch1GrOTIKiOmMurzUWVLGuE1m7X37I7srjOv6 Ve1Vju6g6vjU0B2QMklCDw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1715441937; x= 1715528337; bh=8b8AVLMPdkUb+D8MVCXQcH/74dxje6vo4/P3A1sCtUY=; b=L 9s0hzG7qX7xl6mtn/ErqXc2WlD9Tw1tOe5z+ih5mad3pUPpu2KqCEG0dNQOkLjJI AFSIOzg0xM5Zv0ktX6NcFoSpogUcvolpdwZbBCZ7HRB51cezuiIbbcqYiSqoyXyM fFJsxd3nSK/okbyuEEHQ/WGcUGuy7llvZwIP30T19J9xCyuWxSrEWRAJOr41lGwu AOoUEge1eHP+PYxZLm1G6d8nWAnMxYG/scJbHdCx7SdV/4EJzrEGzFSNsYF1A9J/ 5DRDNkKJWhVEMWWSxFihS0k6pskANMEsd1AMfd7XUfcxQtzLq4AaSpUtxu9lxH5O JK0VOOPIJu0TKGkPd51Pg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdegtddgledtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtgfesthhqredtreerjeenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeegfeejhedvledvffeijeeijeeivddvhfeliedvleevheejleetgedukedt gfejveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id CE5DEB6008D; Sat, 11 May 2024 11:38:55 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-443-g0dc955c2a-fm-20240507.001-g0dc955c2 Precedence: bulk X-Mailing-List: linux-arch@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: In-Reply-To: References: <20240511100157.2334539-1-chenhuacai@loongson.cn> Date: Sat, 11 May 2024 17:38:35 +0200 From: "Arnd Bergmann" To: "Huacai Chen" Cc: "Huacai Chen" , loongarch@lists.linux.dev, Linux-Arch , "Xuefeng Li" , guoren , "WANG Xuerui" , "Jiaxun Yang" , linux-kernel@vger.kernel.org, loongson-kernel@lists.loongnix.cn, stable@vger.kernel.org Subject: Re: [PATCH] LoongArch: Define __ARCH_WANT_NEW_STAT in unistd.h Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable On Sat, May 11, 2024, at 16:28, Huacai Chen wrote: > On Sat, May 11, 2024 at 8:17=E2=80=AFPM Arnd Bergmann = wrote: >> Importantly, we can't just add fstatat64() on riscv32 because >> there is no time64 version for it other than statx(), and I don't >> want the architectures to diverge more than necessary. >> I would not mind adding a variant of statx() that works for >> both riscv32 and loongarch64 though, if it gets added to all >> architectures. > > As far as I know, Ren Guo is trying to implement riscv64 kernel + > riscv32 userspace, so I think riscv32 kernel won't be widely used? I was talking about the ABI, so it doesn't actually matter what the kernel is: any userspace ABI without CONFIG_COMPAT_32BIT_TIME is equally affected here. On riscv32 this is the only allowed configuration, while on others (arm32 or x86-32 userland) you can turn off COMPAT_32BIT_TIME on both 32-bit kernel and on 64-bit kernels with compat mode. Arnd