Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1841544lqz; Mon, 1 Apr 2024 21:27:40 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWLpdSswKjQer0kQi+p6/6kJi+Taotos6pp5ekpXtpd7gUp3FgWo6qdXU0q2ffeVzfn7cBXQ6dUEcHCibAeXhb2iSzjlu5fmqpdbN+w+w== X-Google-Smtp-Source: AGHT+IH7UnTIZmmAKs/gXZsj2Y1UnMOUC2cbv5zR5dGY/LOD4K+0ff3cI9G3xcdItBcTsPKL1dD8 X-Received: by 2002:a17:906:6a0b:b0:a49:dfe1:d5e with SMTP id qw11-20020a1709066a0b00b00a49dfe10d5emr8101461ejc.57.1712032059987; Mon, 01 Apr 2024 21:27:39 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id o14-20020a1709062e8e00b00a4e15287179si5139015eji.599.2024.04.01.21.27.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 21:27:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127373-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-127373-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127373-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 48DDF1F233F7 for ; Tue, 2 Apr 2024 04:27:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 93BA117C68; Tue, 2 Apr 2024 04:27:11 +0000 (UTC) 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 1F18F17BC2 for ; Tue, 2 Apr 2024 04:27:10 +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=1712032031; cv=none; b=cnD+NsGixpKBX47O1D1a+nHKY5o7FACHEtPjRqReQROrhKV/rGEIQscSHw+UJjmk3TLYWGE2IsrJ+Br9fLmIzIAH8e3LbiSrFYxFuRq0r+fVZrE2FoeaC11/RPiM+XMdcfadHjqd4sCGgPpYGwPLGchv6KSbwV3JPdZYBCfZxVU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712032031; c=relaxed/simple; bh=eVuA0yXC9aDnw7es64OwZIQuGfIRFnPZ62OkGNWsTeo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=hmYpn9TUmTOLUrBRh22tT2dkBkK6WvtNUZ8+NveR3sbVa+ErbNtXUoEE/LNgx4RwBdwfB2HJa/0BRYLarZVUL9VSFrjMKlBW29OD1F06ePMgP0mwa2QDk+u4tlbmxO0Foz7UWcrR4xDjbq2tZMJrWqbQNTyDvZoDTMiimIW2liU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02899C43394; Tue, 2 Apr 2024 04:27:09 +0000 (UTC) From: Al Viro To: "Paul E. McKenney" Cc: linux-kernel@vger.kernel.org, kernel-team@meta.com, "David S. Miller" , Andreas Larsson , Palmer Dabbelt , Arnd Bergmann , Marco Elver Subject: [PATCH 2/8] sparc32: make the first argument of __cmpxchg_u64() volatile u64 * Date: Tue, 2 Apr 2024 00:28:29 -0400 Message-Id: <20240402042835.11815-2-viro@zeniv.linux.org.uk> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240402042835.11815-1-viro@zeniv.linux.org.uk> References: <20240402041138.GF538574@ZenIV> <20240402042835.11815-1-viro@zeniv.linux.org.uk> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit .. to match all cmpxchg variants. Signed-off-by: Al Viro --- 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 112bfaa28729..86254c366477 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 d90d756123d8..e15affbbb523 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.39.2