From nobody Mon Feb 9 09:22:54 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 0646B38F230; Tue, 13 Jan 2026 10:50:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768301405; cv=none; b=GeKvemr4d5reVwvFnfLliqZTVtGRkoEaQRV0R+SIKX7EqOVHtPXD0sOdtEABZMrrQO8fX2tXRVUV6Ad7Tsm8vtD1uRn2h7bRV1bCTry+D4vnD/flO7IlOi7ehARW9DyjRe5k2MEWRLxKlPeFXt89g6ivpa6lqCUmi/PkN6ORLy4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768301405; c=relaxed/simple; bh=WA3mHlSWVvC5hxoZyn7ix+XMwtXlYQCsVBbuXFH2mgI=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=bPT13DP9w+cM8fvM0Rjf5bdGLZzG+KcFbfof1/ferpYHhhSRj3r4/aF1b7HwRvN+DNv3mLNRIMvddmDe91AV46bJJ8IGgzeXcV0ShDkShJa0o5XMka2dWxFI/SJGe+DUOffWmz+en4u0/bH6/Em/GBl7pvaTZ5q7+t/gsQFI4BU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=M0vNmpsj; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=/PNhZbud; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="M0vNmpsj"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="/PNhZbud" Date: Tue, 13 Jan 2026 10:50:01 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1768301402; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=443CeVAZ/M7me+2l8fxGAcYE6GQzTBdQbWrdGQZCgfM=; b=M0vNmpsjjhjWmZDoEOubJn5wGeSwx0aug2IgjrxZvCgtFw2Bkk7DgBmMkzm5ps/uzkt8Tt qZdcUveXFYN81tiCxUsgGN6NWeOCj/DZxH6vtq8xB+vnooEx9d/8kUWPIy4OFeHxHbeKdb BD5b1u+KpAXcPLNMJjXJiTwX938iCAiGG0K11D8cY28gWQFVKQRr6a6jApqe4446DSvesN FEaAkRWrW/csmb05rXO9PnaaJ4vXLqEsP8WIRWAo4yTP8h0OS/67+dQ9CgWQFr3VBPRQZk 15V2jTj3tStprZBAgf9TzpYPg0Th/KioWiXvECbw1Nzdf5liku/GtN3c5WbVfQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1768301402; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=443CeVAZ/M7me+2l8fxGAcYE6GQzTBdQbWrdGQZCgfM=; b=/PNhZbudkwXQew0xtdhfP0rUwvrl0nxTmXEwAEBpOVp89i6s5Fon6Itg3UNSeULw5cxCo7 qGE8Et0vG0GAFaCA== From: "tip-bot2 for FUJITA Tomonori" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: locking/core] rust: helpers: Add i8/i16 atomic try_cmpxchg_acquire helpers Cc: FUJITA Tomonori , Boqun Feng , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20251227115951.1424458-3-fujita.tomonori@gmail.com> References: <20251227115951.1424458-3-fujita.tomonori@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <176830140125.510.6403449543264346345.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the locking/core branch of tip: Commit-ID: fed6aaa392c301721144303d64b7c68575d9d5ef Gitweb: https://git.kernel.org/tip/fed6aaa392c301721144303d64b7c6857= 5d9d5ef Author: FUJITA Tomonori AuthorDate: Sat, 27 Dec 2025 20:59:49 +09:00 Committer: Boqun Feng CommitterDate: Fri, 09 Jan 2026 19:01:41 +08:00 rust: helpers: Add i8/i16 atomic try_cmpxchg_acquire helpers Add i8/i16 atomic try_cmpxchg_acquire helpers that call try_cmpxchg_acquire() macro implementing atomic try_cmpxchg_acquire using architecture-specific instructions. [boqun: Use try_cmpxchg_acquire() instead of raw_try_cmpxchg_acquire()] Signed-off-by: FUJITA Tomonori Signed-off-by: Boqun Feng Link: https://patch.msgid.link/20251227115951.1424458-3-fujita.tomonori@gma= il.com --- rust/helpers/atomic_ext.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rust/helpers/atomic_ext.c b/rust/helpers/atomic_ext.c index 5ee127f..b6efec1 100644 --- a/rust/helpers/atomic_ext.c +++ b/rust/helpers/atomic_ext.c @@ -107,3 +107,13 @@ __rust_helper bool rust_helper_atomic_i16_try_cmpxchg(= s16 *ptr, s16 *old, s16 ne { return try_cmpxchg(ptr, old, new); } + +__rust_helper bool rust_helper_atomic_i8_try_cmpxchg_acquire(s8 *ptr, s8 *= old, s8 new) +{ + return try_cmpxchg_acquire(ptr, old, new); +} + +__rust_helper bool rust_helper_atomic_i16_try_cmpxchg_acquire(s16 *ptr, s1= 6 *old, s16 new) +{ + return try_cmpxchg_acquire(ptr, old, new); +}