From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.zytor.com (terminus.zytor.com [198.137.202.136]) (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 0CD748635D for ; Sun, 15 Feb 2026 00:55:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.136 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771116914; cv=none; b=S+GAv7JiYgHJXIE0lX3GIjjdqTayXJHxG9b/tfTQoBSGaXktdtXlSlTg0vjFpvhu9wvuAtVOUDIHulXIqoWWNJV8qOOaJirxEszosw85xllUlMRiYSsFKy+CC9XHg7EaPkRgft3SnqWaubcAAS7UaL3+S+qHceybOHuhPbXZMRs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771116914; c=relaxed/simple; bh=MHIwOWsN4Kv75YXAH7mbb9Ow2XeS3+BRE7MZhGXIGCU=; h=Date:From:To:CC:Subject:In-Reply-To:References:Message-ID: MIME-Version:Content-Type; b=QZpHwkd5VowHIG4HUEM7eMRWVIl9HMgLj+vEp3GG8mUYiEJcZr41ynWc7rQ2OK8H4/rLKbnl/B515B1Qpy8f/wj7eykpnxyVLk9vhxOUDeLM/CMUCf1ULAK5on1S9RiXp/obN+UZTxiC3/rofVgQSHarDtR4zFQogrI6rIBnrHQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com; spf=pass smtp.mailfrom=zytor.com; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b=10uXyUv8; arc=none smtp.client-ip=198.137.202.136 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zytor.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b="10uXyUv8" Received: from ehlo.thunderbird.net (c-76-133-66-138.hsd1.ca.comcast.net [76.133.66.138]) (authenticated bits=0) by mail.zytor.com (8.18.1/8.17.1) with ESMTPSA id 61F0se1T1893176 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Sat, 14 Feb 2026 16:54:40 -0800 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 61F0se1T1893176 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2026012301; t=1771116881; bh=bTVx7pVhvnbbRp88M5TaYNZ78qutvosOR7kyOCLCHlc=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=10uXyUv8WSB6yHJcvd0Du1lFTDX5O42IpX0+HLjqpzOx9FmHJPF+9JpPS9VYRoHwM Ri69iOP8s95QgsVymmLQm63GBx2hl6kVuTUIH9y4wnUqbPb8fpV7aqWZMpz/IOJ2og xDoV6ZHzUAmmuAmXJMo4I7AZsShbLaoPCiRZNgn4gW1Ihs7ZzlXGWeXKBKKUAGsF0L X5Hb8U5uml/1XWQ0cw3SDsIuZ7ikqQHDRKcWx6uC/QTg/KgemxzoUSNamO9clPIzUd OvV8YvzZ9yqtBkjsVkv3P1IZq1DAedLItkvsrQDRObON5ywFW0udp2RTYguR+o0tiu gV32JKyrPj+Sg== Date: Sat, 14 Feb 2026 16:54:34 -0800 From: "H. Peter Anvin" To: Uros Bizjak , x86@kernel.org, linux-kernel@vger.kernel.org CC: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen Subject: =?US-ASCII?Q?Re=3A_=5BPATCH=5D_x86/local=3A_Remove_trailing_sem?= =?US-ASCII?Q?icolon_from_=5FASM=5FXADD_in_local=5Fadd=5Freturn=28=29?= User-Agent: K-9 Mail for Android In-Reply-To: <20260212105207.18510-1-ubizjak@gmail.com> References: <20260212105207.18510-1-ubizjak@gmail.com> Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On February 12, 2026 2:51:02 AM PST, Uros Bizjak wrot= e: >Remove the trailing semicolon from the inline assembly statement in >local_add_return()=2E > >The _ASM_XADD macro already expands to a complete instruction, making >the extra semicolon unnecessary=2E 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=2E > >No functional change intended=2E > >Signed-off-by: Uros Bizjak >Cc: Thomas Gleixner >Cc: Ingo Molnar >Cc: Borislav Petkov >Cc: Dave Hansen >Cc: "H=2E Peter Anvin" >--- > arch/x86/include/asm/local=2Eh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/arch/x86/include/asm/local=2Eh b/arch/x86/include/asm/local= =2Eh >index 59aa966dc212=2E=2E4957018fef3e 100644 >--- a/arch/x86/include/asm/local=2Eh >+++ b/arch/x86/include/asm/local=2Eh >@@ -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=2Ecounter) > : : "memory"); > return i + __i; Are you sure that gcc treats an empty statement or line as something that = should be counted? It is awkward as heck if so, and really ought to be fixe= d in gcc=2E