From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv1-f53.google.com (mail-qv1-f53.google.com [209.85.219.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A180F1EB5E1 for ; Sun, 25 Jan 2026 15:27:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769354838; cv=none; b=ixz24jFsaVpSPMCdJ1TewRdRUdZ//nNPCUzgcVokA2eQr2oAmXk3JAgj/l16vpSJInLreR7vcvkf3TuXRmig/nB0ee0PS3bVeNv00GnhKu7BpPg0IGMg6qHj53WygIJSCxdq4XEMEceVxbMKYsh66PWiDejid1emW7T9698hFkA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769354838; c=relaxed/simple; bh=i0LliBZZvCPjfGdcNIN3FJXdmIkOx2DHqsgOD50iyF0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Mq+ngEvkBa7/r5OkMrqeF0zA6sQ/pdG2RDZMkFYU5RmH1Ept4m4iDqkFP6Q9xWeljGuY4Q+Wf2UFPbbFs5EtePVYGeCA1ceJ1ZECAKN8MaPhYCQcHv7MY6gXf12LAht7HDHRSGim9Jzcb9LPgadoyzP2uZ//rQbWg6h/xr+Iqz8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ZbN7AQOw; arc=none smtp.client-ip=209.85.219.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZbN7AQOw" Received: by mail-qv1-f53.google.com with SMTP id 6a1803df08f44-888bd3bd639so53774586d6.1 for ; Sun, 25 Jan 2026 07:27:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769354836; x=1769959636; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :feedback-id:from:to:cc:subject:date:message-id:reply-to; bh=yy7k14o1sWbjI231i5MKZYrUy+zJJVej7vuLZUeWjds=; b=ZbN7AQOweyAszxTLHXlbmEgtcG79ieAGSwX021Wwdzs+h8rJb/TKkJ1wqtHRAC9bf0 LIYd86HDBRty3w0jA8nDd7niZs85afiyIGaPaKVnAl9eHprIuUzPcGl5WLfYTbnW6g1C 4yDAFuMPKiBe7KmxBTQBrQJDb5kkx1vLuYZ9mooTgctxWJFV4cw6/slF2NNQ/HXblPI4 ZLAb1+eUCbgiETZbEcBz/zO4S7+Eca/P/9RrwchqzllEVsuIRM9w/Z6pXDiXk1/Ll04K zQaOP5jo58OakTj2ROjJmIdkXS8w8VF41rqA5GPZLUwcK71M2Tpo/hFOxdBuRIMAaV88 wb4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769354836; x=1769959636; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :feedback-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=yy7k14o1sWbjI231i5MKZYrUy+zJJVej7vuLZUeWjds=; b=LpwFemi1fNuE2Th4PixnSL1SyLjwRmRexsKETpa7SMswhaP4adbghShXIv7nVUmHu6 EMeYWJ9wmtJfsKUufHMUH658ei40AV7WVTZn25PtH9OZ8bLALb0VgPi/Sx7lOBgbxgEn b/ZH6vUgCp1Dya0ghAJ0j+N8xyT8EG3ZgMHypiOLEdNqOmwWrTKOKv1BNoZSAVI5dwAB UIQIO2rjDy4RGjv2CwfKe75ZqG1gne1BB9ObrYTPpc8PM/0zHEcgWAKtYCGjXWgZXjTl G4kvBGtXV32PkSgkaQpESoFnjJq4ZPkSuvdEIQFU3u1PK4H7UN++KOmub+u5Z5Jae0oC FC6w== X-Forwarded-Encrypted: i=1; AJvYcCXzPfIesIwGfX7A2XbjyxcF8PWwxXDQacCs8Ax4thEts1nosZnMx4VTl3nBhhH8nFhSsZiiSCw=@vger.kernel.org X-Gm-Message-State: AOJu0YyvXrpKTCbtUZdJWjdRgnIZslpAvcE8QCdBcZyAPUjRJtSLb9NS qQrZHaqlwI8opwfpR9bKsAWbMyNTpqlARhAAN867SOCdQG8mjxlXmc55 X-Gm-Gg: AZuq6aJxPkg/nRplhTMQrRZQChRiDLD4r2kv5mtWAUjNG97bxN4BXp1/ZtUglQ9qxU7 2di6XKOkV2Gi/S14uy9Ays9MUFvsRTx/d5YDLmiH35Xqj/gUdbSzpGQDmpliwrwTMF+qoTM7U5s xumpTJHAjlUPe2Bn//+FCzP33BRIjJLgPRVJo52v8bwLl0wgJqy0ZxUnpFC7t/KEML3xvSsyV1O GF5ArkEqiaCTMR4JbNcgs1jsS5hwD4yNL2/ICayuDaHCPiIu8VbqBF+G8Q9fwResM2j/ecq1bnE YiGDwzCYahKnXimtlTGV+MyBks6WM3bjcD5c9b/k7SZji1LtDIbydEet9aeKC7QPQlRy3eNYjzv HZcy1j3p0mCKXWCOkRBqnJ7Nf/7ySmOJIYGTTO5f3362XGJV0a/9/wsma3SmGtxVwxJ52npZXFy irBSHwzv4tK4CNAQb2RW7Z+mIALhM3HvmVMflD2QJU/GQv+4h3bMr8FqjqHvLpmwMQV3M4U91Q5 mYLxgE0HYMCP0c= X-Received: by 2002:a05:6214:1d26:b0:880:4548:a059 with SMTP id 6a1803df08f44-894b0418081mr24338246d6.15.1769354835571; Sun, 25 Jan 2026 07:27:15 -0800 (PST) Received: from fauth-a2-smtp.messagingengine.com (fauth-a2-smtp.messagingengine.com. [103.168.172.201]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-894991b796dsm56027646d6.27.2026.01.25.07.27.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Jan 2026 07:27:15 -0800 (PST) Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfauth.phl.internal (Postfix) with ESMTP id A35DFF40074; Sun, 25 Jan 2026 10:27:14 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Sun, 25 Jan 2026 10:27:14 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduheehudehucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkfhggtggugfgjsehtkeertddttdejnecuhfhrohhmpeeuohhquhhn ucfhvghnghcuoegsohhquhhnrdhfvghnghesghhmrghilhdrtghomheqnecuggftrfgrth htvghrnhepvefghfeuveekudetgfevudeuudejfeeltdfhgfehgeekkeeigfdukefhgfeg leefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepsg hoqhhunhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqieelvdeghedtieeg qddujeejkeehheehvddqsghoqhhunhdrfhgvnhhgpeepghhmrghilhdrtghomhesfhhigi hmvgdrnhgrmhgvpdhnsggprhgtphhtthhopeduiedpmhhouggvpehsmhhtphhouhhtpdhr tghpthhtohepmhhighhuvghlrdhojhgvuggrrdhsrghnughonhhishesghhmrghilhdrtg homhdprhgtphhtthhopehojhgvuggrsehkvghrnhgvlhdrohhrghdprhgtphhtthhopeif ihhllheskhgvrhhnvghlrdhorhhgpdhrtghpthhtohepphgvthgvrhiisehinhhfrhgrug gvrggurdhorhhgpdhrtghpthhtohepmhgrrhhkrdhruhhtlhgrnhgusegrrhhmrdgtohhm pdhrtghpthhtohepghgrrhihsehgrghrhihguhhordhnvghtpdhrtghpthhtoheplhhinh hugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtohepsghj ohhrnhefpghghhesphhrohhtohhnmhgrihhlrdgtohhmpdhrtghpthhtoheplhhoshhsih hnsehkvghrnhgvlhdrohhrgh X-ME-Proxy: Feedback-ID: iad51458e:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 25 Jan 2026 10:27:13 -0500 (EST) Date: Sun, 25 Jan 2026 07:27:12 -0800 From: Boqun Feng To: Miguel Ojeda Cc: Miguel Ojeda , Will Deacon , Peter Zijlstra , Mark Rutland , Gary Guo , linux-kernel@vger.kernel.org, =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , rust-for-linux@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] rust: sync: atomic: Provide stub for `rusttest` 32-bit hosts Message-ID: References: <20260123233432.22703-1-ojeda@kernel.org> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Sun, Jan 25, 2026 at 03:23:45PM +0100, Miguel Ojeda wrote: > On Sat, Jan 24, 2026 at 12:35 AM Miguel Ojeda wrote: > > > > For arm32, on a x86_64 builder, running the `rusttest` target yields: > > > > error[E0080]: evaluation of constant value failed > > --> rust/kernel/static_assert.rs:37:23 > > | > > 37 | const _: () = ::core::assert!($condition $(,$arg)?); > > | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'assertion failed: size_of::() == size_of::()', rust/kernel/sync/atomic/predefine.rs:68:1 > > | > > ::: rust/kernel/sync/atomic/predefine.rs:68:1 > > | > > 68 | static_assert!(size_of::() == size_of::()); > > | -------------------------------------------------------------------- in this macro invocation > > | > > = note: this error originates in the macro `::core::assert` which comes from the expansion of the macro `static_assert` (in Nightly builds, run with -Z macro-backtrace for more info) > > > > The reason is that `rusttest` runs on the host, so for e.g. a x86_64 > > builder `isize` is 64 bits but it is not a `CONFIG_64BIT` build. > > > > Fix it by providing a stub for `rusttest` as usual. > > > > Fixes: 84c6d36bcaf9 ("rust: sync: atomic: Add Atomic<{usize,isize}>") > > Cc: stable@vger.kernel.org > > Signed-off-by: Miguel Ojeda > > Boqun et al.: in case it helps, I will send a fixes PR early this > week, so if you happen to want me to pick this one up with the rest, Thank you, that'll be great! Acked-by: Boqun Feng Regards, Boqun > please let me know. > > Cheers, > Miguel