Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1509230lqe; Mon, 8 Apr 2024 10:50:21 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWPKHMmCN5hiqweTX6DLmKRJdzml6MH2WgqJ6/5LUUeD9J3oit+xYeprqWkFh37ozVx9inqsRbohjI/Ygp1nryZvUmosOmdTueo3csR2A== X-Google-Smtp-Source: AGHT+IEfnWLglz2KzEBCiidB93/sK5eYLE4bodNvt3fet2qz5ayB8QCDmHFZ++eiuc2URWcMKL2F X-Received: by 2002:a05:6358:9603:b0:183:e05b:379e with SMTP id a3-20020a056358960300b00183e05b379emr7785941rwb.30.1712598621523; Mon, 08 Apr 2024 10:50:21 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id c7-20020a63d507000000b005f0a540fe9esi6848164pgg.781.2024.04.08.10.50.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 10:50:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135771-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b=XB88town; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-135771-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135771-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 321D4288D74 for ; Mon, 8 Apr 2024 17:50:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C9BBA14534B; Mon, 8 Apr 2024 17:49:47 +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="XB88town" 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 D1112143C60; Mon, 8 Apr 2024 17:49:46 +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=1712598586; cv=none; b=uBA6xwwPRjReHcpLRRiQQqTKCIDj9cSw1clX7PBFWofVOpi18HQMAlI0mPlamKSnFsuz3z0VAWhz3G3raqmlZvHBxoniuKZJ2XQyPc2fdR/taCHArmS4gnkmwYWDnbMoku3hHSdvGB1JUUeWFPoM5gpb1SQv7s0X2UYfIUopk9o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712598586; c=relaxed/simple; bh=Gwo0L9nG/Bxq+TZGLagGgn6iVboBxYsc87SIRn3872E=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=U5aCpvwRe06hdzej7rWVwvpTbz5Hu3ute8f0ZxyzIL2v7EZcq83EmxzS91MVTwJ9sdTuAQfpG0uFqHX9+v6Xjsx7RT7CzaUQbCYl1ksRs8G1ygnF+JHJKbZo0GSWlcpmCl9jjIQ1R9W7nE/goW0SCwDnWJA07eHyRELLmNk+YsA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XB88town; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9314FC433C7; Mon, 8 Apr 2024 17:49:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712598586; bh=Gwo0L9nG/Bxq+TZGLagGgn6iVboBxYsc87SIRn3872E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XB88townwR3nTkF3wwLRNNTI3bWzv3R8mJLqWogW7orO+P69ny6C50Mu91ylsi0GR C4WxdDFA+bRvdwv2quUXT6A/tPuNyLXBLkswA7tKo/pn9GTU3dYLZ5WdYuj4NfHYgw 7I6XDUiyq+p/3chjgxHeT1J2iVYvibujmF+NsOAlWI6ipTq87wMIG3VLsO3c+7g8rR rLNupaGTzAsWIl/ixFHtFt3v2AFASbE52lj634A4xczcYWkENw/pQ5fxFYm1QllUXj yYG+qWlV6VC5dl9AyeiX4so8+TVih08Bv7JaNUo6zPoX5acjCZKI2GY1LqI3KrZ37J VIQJTpyZlNt+A== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 3DAA8CE008B; Mon, 8 Apr 2024 10:49:46 -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, torvalds@linux-foundation.org, Arnd Bergmann , Al Viro , "Paul E . McKenney" Subject: [PATCH cmpxchg 02/14] sparc32: make the first argument of __cmpxchg_u64() volatile u64 * Date: Mon, 8 Apr 2024 10:49:32 -0700 Message-Id: <20240408174944.907695-2-paulmck@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <7b3646e0-667c-48e2-8f09-e493c43c30cb@paulmck-laptop> References: <7b3646e0-667c-48e2-8f09-e493c43c30cb@paulmck-laptop> 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