Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp779607lqm; Wed, 1 May 2024 16:02:04 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXuozH7uRSNwwC8UtpD6ZeedixMOz6la2qjDLs/fJxEmERhzqXMFTHlF9T6ii76uNFpdSVl1CMg1zpVEXV6bvlgS4z5VmvT75wlKRAohA== X-Google-Smtp-Source: AGHT+IGZi4vQRQ0ChEVhlg80S8x8cMj/+cmAfK5tk7CDtrv9hW06O9iokJhtu7/0DaTxrxudhCRU X-Received: by 2002:ac8:570d:0:b0:43a:d3e6:43af with SMTP id 13-20020ac8570d000000b0043ad3e643afmr257135qtw.42.1714604524495; Wed, 01 May 2024 16:02:04 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c13-20020a05622a024d00b0043af54f5a95si7675560qtx.347.2024.05.01.16.02.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 16:02:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165799-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b=EEEi0dJQ; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-165799-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165799-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id F3B4B1C20310 for ; Wed, 1 May 2024 23:01:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 876D216ABFA; Wed, 1 May 2024 23:01:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="EEEi0dJQ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 9C4B64F897; Wed, 1 May 2024 23:01:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714604492; cv=none; b=Sz+/7jJNIe/mHXDX1hbUnbCC4xqvlhvy7MScKO3k9DUNOdj7Z54NNjs9TMW0/N9hNgCxIw4QOLrrOwj0qq8/45RfpJTPFqV3n/V4Lgnp5UOyZHCnfGQ33pl6ILzOY+k0hkJUJ/M18vzwJESwjq3U3J60IEyzc0XTZ2+XYnNAZlw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714604492; c=relaxed/simple; bh=Gwo0L9nG/Bxq+TZGLagGgn6iVboBxYsc87SIRn3872E=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=CA+N7shms4YPvVWXzZnrdaos/25MmElkKbjXoH+oo2891OiU72d/cC9tw/c8SLwY71Ky+BrUjwHTr8DTXEdGtGlZYVsbUUO4ToMtFqjepWHdkV1WJRb+ihR9YD6VPIY2xxZI/Csg8XAKkCguSkOLsKptVCsRlxdBGJ27OW0x1tc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=EEEi0dJQ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2B386C4AF14; Wed, 1 May 2024 23:01:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714604492; bh=Gwo0L9nG/Bxq+TZGLagGgn6iVboBxYsc87SIRn3872E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EEEi0dJQ9tPwkKw0Q/Yl3BJm0bph7/6npi8fKcU/c3JgibF0hgeVfxG7Vqd6YKurD 0bXE+xtjpvYV93H2i0LUpdMmVfAHGYYA+43Gp9ZrvrDroIyx1twkf5WiT3kOubyFVg hpqoJkTno1QSUFG2KXAtVNyWR4pYS4aKHaQ724SH/BC6iQFsx+12V7RRHynhaNo8Zs u7QXH7WmU/YXC3xtwWKvWVJgjqqw0BEAj9sSiIMtjoV2/IkIvhcnV3cW9T2Nqh7Bu9 MfYc+CV+7QXlwCHUxIn3gFQYuJTzaJj16v/2DF++DBcc0OEBcM8fdlGuv8bmgVmkC/ SUKm0WYK4A9GQ== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id BEF95CE0808; Wed, 1 May 2024 16:01:31 -0700 (PDT) From: "Paul E. McKenney" To: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Cc: elver@google.com, akpm@linux-foundation.org, tglx@linutronix.de, peterz@infradead.org, dianders@chromium.org, pmladek@suse.com, arnd@arndb.de, torvalds@linux-foundation.org, kernel-team@meta.com, Al Viro , "Paul E . McKenney" Subject: [PATCH v2 cmpxchg 02/13] sparc32: make the first argument of __cmpxchg_u64() volatile u64 * Date: Wed, 1 May 2024 16:01:19 -0700 Message-Id: <20240501230130.1111603-2-paulmck@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Al Viro .. to match all cmpxchg variants. Signed-off-by: Al Viro Signed-off-by: Paul E. McKenney --- arch/sparc/include/asm/cmpxchg_32.h | 2 +- arch/sparc/lib/atomic32.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/sparc/include/asm/cmpxchg_32.h b/arch/sparc/include/asm/cmpxchg_32.h index 2a05cb236480c..05d5f86a56dc2 100644 --- a/arch/sparc/include/asm/cmpxchg_32.h +++ b/arch/sparc/include/asm/cmpxchg_32.h @@ -63,7 +63,7 @@ __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size) (unsigned long)_n_, sizeof(*(ptr))); \ }) -u64 __cmpxchg_u64(u64 *ptr, u64 old, u64 new); +u64 __cmpxchg_u64(volatile u64 *ptr, u64 old, u64 new); #define arch_cmpxchg64(ptr, old, new) __cmpxchg_u64(ptr, old, new) #include diff --git a/arch/sparc/lib/atomic32.c b/arch/sparc/lib/atomic32.c index d90d756123d81..e15affbbb5238 100644 --- a/arch/sparc/lib/atomic32.c +++ b/arch/sparc/lib/atomic32.c @@ -173,7 +173,7 @@ u32 __cmpxchg_u32(volatile u32 *ptr, u32 old, u32 new) } EXPORT_SYMBOL(__cmpxchg_u32); -u64 __cmpxchg_u64(u64 *ptr, u64 old, u64 new) +u64 __cmpxchg_u64(volatile u64 *ptr, u64 old, u64 new) { unsigned long flags; u64 prev; -- 2.40.1