From nobody Thu Apr 2 19:02:18 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 A809438E10C; Sun, 8 Mar 2026 19:13:13 +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=1772997194; cv=none; b=jrDP8ICc9saXMvOsyhPpfUSDFDu8OXjlDq49dgn2fcXGP+Sy46HOklDPHGyxAryyYD/sVUFneuTM4M0dmYp6DNlnGmSP0jNsYwITGMeM+bjY/a0Mu2G9JDO6qt5UmaiFYSRfEz6U4VTe3jk58UQbAPmiwZjXvMXVA5gVA5ooQZE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772997194; c=relaxed/simple; bh=8ZEE2+IXdOWX6cgq/J8dnPpPOTUJgl1vWwzob6gubbs=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=uK+o4uzU8gSIvAY10LnVTtLlujh5HskRgBRnToqxy4TkbAFJFBHdIJFjkkB6gWKLTP9+NlrMg1vxtvprq+WIIJclb6tcfMiyvDXA/jS+1H+zv/Dq/LZ9xKuPQAK+3ZYVt+d2COtu81FsbgZ0yTU+6iK2A7FsDENIUwV4//mnf50= 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=0Q30KndO; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=1SWW6xWj; 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="0Q30KndO"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="1SWW6xWj" Date: Sun, 08 Mar 2026 19:13:04 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1772997186; 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=xDX+NG7mgzvS6wXbJehWk6iIMXI8etPYJRuQW3IetN4=; b=0Q30KndOUO9KQkHrAPlGpxEp8HnkVsD97TDYQve+BFSsitnr9PEJa6FVvv5cRAahoucSNA rlxB2GQ95LpRKqQmev08UcG/1B6h9Q17dA3lvq0F6rqUAcuWdV+lMMiog9jP22OCYdIRBZ lqQMn6m7til76K2OITwZwl6ziu35P4/teDj/JFCAug/Ga9WxpOFlWnkpwvjmSVjsa4Wf27 /bzX3fZ7qLZNK2gJe91WVGJvKqSbCDIf+Eqmia+XA9CI3giXJl/Oo2onQMzMmuUDxCcI0N UzF3vC1JzzAXoVlENpxPQ+t9hkuQPM0CMLt9Qt95xEpZabLClwfIo92JN0Djow== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1772997186; 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=xDX+NG7mgzvS6wXbJehWk6iIMXI8etPYJRuQW3IetN4=; b=1SWW6xWjZLXn+y1TTuQJfdiaqZdBf7i5lPXJ7iuD1ca5i5w0p38jbi4guVPPGGYmDD5cTA +Oq30B8/web5hhDA== From: "tip-bot2 for Uros Bizjak" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cleanups] x86/local: Remove trailing semicolon from _ASM_XADD in local_add_return() Cc: Uros Bizjak , "Borislav Petkov (AMD)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260308171250.7278-1-ubizjak@gmail.com> References: <20260308171250.7278-1-ubizjak@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177299718452.1647592.532324403432778675.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 x86/cleanups branch of tip: Commit-ID: ceea7868b594ccf376562af40b9463d9f2fb7dd0 Gitweb: https://git.kernel.org/tip/ceea7868b594ccf376562af40b9463d9f= 2fb7dd0 Author: Uros Bizjak AuthorDate: Sun, 08 Mar 2026 18:12:35 +01:00 Committer: Borislav Petkov (AMD) CommitterDate: Sun, 08 Mar 2026 19:56:49 +01:00 x86/local: Remove trailing semicolon from _ASM_XADD in local_add_return() Remove the trailing semicolon from the inline assembly statement in local_add_return(). The _ASM_XADD macro already expands to a complete instruction, making the extra semicolon unnecessary. More importantly, the stray semicolon causes GCC to treat the inline asm as containing multiple instructions, which can skew its internal instruction count estimation and affect optimization heuristics. No functional change intended. Signed-off-by: Uros Bizjak Signed-off-by: Borislav Petkov (AMD) Link: https://patch.msgid.link/20260308171250.7278-1-ubizjak@gmail.com --- arch/x86/include/asm/local.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/local.h b/arch/x86/include/asm/local.h index 59aa966..4957018 100644 --- a/arch/x86/include/asm/local.h +++ b/arch/x86/include/asm/local.h @@ -106,7 +106,7 @@ static inline bool local_add_negative(long i, local_t *= l) static inline long local_add_return(long i, local_t *l) { long __i =3D i; - asm volatile(_ASM_XADD "%0, %1;" + asm volatile(_ASM_XADD "%0, %1" : "+r" (i), "+m" (l->a.counter) : : "memory"); return i + __i;