Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4165998ybi; Mon, 3 Jun 2019 06:45:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqy4KH0PjNXq0p+lQM6pOHCP5XKK6ZTDmy03ESaYAMBz6ar+4nPQyHmCJejCU+d9hqZgFyGf X-Received: by 2002:a65:4544:: with SMTP id x4mr5227338pgr.323.1559569540975; Mon, 03 Jun 2019 06:45:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559569540; cv=none; d=google.com; s=arc-20160816; b=HAXdca+lUXH3wuEHrMLaViFnDLYaviy1iNl/J3QDare+oSuyCJA1fpEtoShlSzrRwE tGNOq7hb7lEv7YrkVxB7lShJ9pSW+Axf8Yvc+rBHqhpJsUflg8MWcZzqCWmBx3Pkq7R+ 87KWePhRLZs52tHDFvu4aFu1UMjzpjmC+xd8KlESTlfWUS26fKEsq/z81HUm7G31pNa/ TQkGLPXMnlaRh107/x9kYEYOM8uTrSsWPapDUAVxVhX19+KBrznVs0lYlgb0B3DY1IxL opWOxvLTz0cCg4CVkdITx8LeeFsrB7aSViL4W1IzpXIT6dCbkFE2xrsU+cKb17tWnf0d 6ohw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:dkim-signature:dkim-filter; bh=YGtaM+V3pbGIkGEIPGitEElsGDkhauWGMuFfH+iKewk=; b=ye94e3kYJyrZ2tkaFUScB9Wko8Ead37EaNhRJ5e4vCG9Vr7x3NY8VVnQNre1yB9xG1 Et5inQ1cMUz63Zc53ZuEjojWzejRGbHH4KREKyzztIE+42bh8qrBRcEO11kbbGmF1dwi JFS6s3JUmfHfa4rS0dmttg4gcZht0Uz/PoijNiFeF/bo6cS1WqteVQ9oMz3GbOgoWkX9 Lmt2XpbIIIFc3R8wgqbxxniSL/RL2MPk0SVzLbnEuBtum8etwPdA3/seedtPqO3xzrOl ZqvNFr0bfGGkaod4YzshxejM+oXoMNfQjzxOFp3xpuSvlFBE0YXILQ99BlqMSVmb3Nru +jXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2019051801 header.b=LQahd2Da; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p11si7687604plk.67.2019.06.03.06.45.23; Mon, 03 Jun 2019 06:45:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@zytor.com header.s=2019051801 header.b=LQahd2Da; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728505AbfFCNnb (ORCPT + 99 others); Mon, 3 Jun 2019 09:43:31 -0400 Received: from terminus.zytor.com ([198.137.202.136]:55645 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727835AbfFCNnb (ORCPT ); Mon, 3 Jun 2019 09:43:31 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x53DhH8i612324 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 3 Jun 2019 06:43:17 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 terminus.zytor.com x53DhH8i612324 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2019051801; t=1559569398; bh=YGtaM+V3pbGIkGEIPGitEElsGDkhauWGMuFfH+iKewk=; h=Date:From:Cc:Reply-To:In-Reply-To:References:To:Subject:From; b=LQahd2DaQTxLSMgbPGsY5h0mTGQechgxn35WPKb0+9B8Ok4U7vsFh5qHgNlzU/6G3 ze0ZAkf5z6tWLMgg/dBtGcoHkP41CyxYDXoLqXLH3aKRB9XQYYyadexXSRy63Bj2ff vd4gA/Wv4T8GxMLjNaBsyoEnqjr9oTjPJMiaagGUjQMG62o+XO1GR5NpXEej4BvxEd ya6nWBghVGgQCh/9RRsR3dnxSOkp/jROj02kZBddtbKuUMAyIzxRRDjBkFQ+/OYgdq Fm/fsUn4i+JOLTvoY/+5Z/2ZnPcvP4kaxGmUV0YgFeEfGKPO2N4bwjv2503zJCg5+H c+0+uB8DhUykg== Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x53DhHm8612321; Mon, 3 Jun 2019 06:43:17 -0700 Date: Mon, 3 Jun 2019 06:43:17 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Mark Rutland Message-ID: Cc: tglx@linutronix.de, peterz@infradead.org, hpa@zytor.com, mingo@kernel.org, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, davem@davemloft.net, will.deacon@arm.com, mark.rutland@arm.com Reply-To: will.deacon@arm.com, mark.rutland@arm.com, davem@davemloft.net, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, tglx@linutronix.de, peterz@infradead.org, mingo@kernel.org, hpa@zytor.com In-Reply-To: <20190522132250.26499-15-mark.rutland@arm.com> References: <20190522132250.26499-15-mark.rutland@arm.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:locking/core] locking/atomic, sparc: Use s64 for atomic64 Git-Commit-ID: 04e8851af767153c0878cc79ce30c0d8806eec43 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.4 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_96_Q,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 04e8851af767153c0878cc79ce30c0d8806eec43 Gitweb: https://git.kernel.org/tip/04e8851af767153c0878cc79ce30c0d8806eec43 Author: Mark Rutland AuthorDate: Wed, 22 May 2019 14:22:46 +0100 Committer: Ingo Molnar CommitDate: Mon, 3 Jun 2019 12:32:56 +0200 locking/atomic, sparc: Use s64 for atomic64 As a step towards making the atomic64 API use consistent types treewide, let's have the sparc atomic64 implementation use s64 as the underlying type for atomic64_t, rather than long, matching the generated headers. As atomic64_read() depends on the generic defintion of atomic64_t, this still returns long. This will be converted in a subsequent patch. Otherwise, there should be no functional change as a result of this patch. Signed-off-by: Mark Rutland Signed-off-by: Peter Zijlstra (Intel) Cc: David S. Miller Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Will Deacon Cc: aou@eecs.berkeley.edu Cc: arnd@arndb.de Cc: bp@alien8.de Cc: catalin.marinas@arm.com Cc: fenghua.yu@intel.com Cc: heiko.carstens@de.ibm.com Cc: herbert@gondor.apana.org.au Cc: ink@jurassic.park.msu.ru Cc: jhogan@kernel.org Cc: linux@armlinux.org.uk Cc: mattst88@gmail.com Cc: mpe@ellerman.id.au Cc: palmer@sifive.com Cc: paul.burton@mips.com Cc: paulus@samba.org Cc: ralf@linux-mips.org Cc: rth@twiddle.net Cc: tony.luck@intel.com Cc: vgupta@synopsys.com Link: https://lkml.kernel.org/r/20190522132250.26499-15-mark.rutland@arm.com Signed-off-by: Ingo Molnar --- arch/sparc/include/asm/atomic_64.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/sparc/include/asm/atomic_64.h b/arch/sparc/include/asm/atomic_64.h index 6963482c81d8..b60448397d4f 100644 --- a/arch/sparc/include/asm/atomic_64.h +++ b/arch/sparc/include/asm/atomic_64.h @@ -23,15 +23,15 @@ #define ATOMIC_OP(op) \ void atomic_##op(int, atomic_t *); \ -void atomic64_##op(long, atomic64_t *); +void atomic64_##op(s64, atomic64_t *); #define ATOMIC_OP_RETURN(op) \ int atomic_##op##_return(int, atomic_t *); \ -long atomic64_##op##_return(long, atomic64_t *); +s64 atomic64_##op##_return(s64, atomic64_t *); #define ATOMIC_FETCH_OP(op) \ int atomic_fetch_##op(int, atomic_t *); \ -long atomic64_fetch_##op(long, atomic64_t *); +s64 atomic64_fetch_##op(s64, atomic64_t *); #define ATOMIC_OPS(op) ATOMIC_OP(op) ATOMIC_OP_RETURN(op) ATOMIC_FETCH_OP(op) @@ -61,7 +61,7 @@ static inline int atomic_xchg(atomic_t *v, int new) ((__typeof__((v)->counter))cmpxchg(&((v)->counter), (o), (n))) #define atomic64_xchg(v, new) (xchg(&((v)->counter), new)) -long atomic64_dec_if_positive(atomic64_t *v); +s64 atomic64_dec_if_positive(atomic64_t *v); #define atomic64_dec_if_positive atomic64_dec_if_positive #endif /* !(__ARCH_SPARC64_ATOMIC__) */