Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4394859pxj; Tue, 25 May 2021 07:06:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPl8C+5fhquydlAtUriPfBPgm3AwoTLkvAkYfyf3Xk45rGuIO9nfZvbbM576ls3tIFerHC X-Received: by 2002:a05:6402:4256:: with SMTP id g22mr31255413edb.214.1621951571459; Tue, 25 May 2021 07:06:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621951571; cv=none; d=google.com; s=arc-20160816; b=o2G3FJo8JVTlPYqLKnnYT7F6GzDg997cndcA4QVzajLffwn9oFvZXOAiNkpemZnyTu Z/Vk3G7ta3RhY8Jxw5117E+7a78PJkThuciivmE2XL3kHpr20+xRxFr7lhG7DOnPlxB1 IqW0iECBmsw1Ug1jp1NeB4X0uIku6AIc+D9ZqHAzTlovv3ykPWRhDUsYErXT6RArdjaC myk7iezSqIOhk1ISPsoqrjbP6GT5g9hOp7hbqjiF+aeZ1j8myKYOnXB4c1P0c3R1IFbN UtgmBZ8OXM2R186QHMoj/QyjG9/YU+LAT8KdafujuScxOmnp4wN3ZaD6drlcPVz0LnEh s/vQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=7+seNHqX8EV5105R78Vkh3ZdXjH4fCCdhWpJXM9KePI=; b=guQYD1QJMlJLtW88l+SHukmNS1bsS7YZkM3e9yZ5Emm/k0tLhE1cOX3LGU+J29iuU/ ZGWbSdy0FdsiyQkHB9TaIQT1KQCmRzXld0sSfDVPfnghvxwmlzCfMMy/gBEKlS3T/bzD fi3OHwiSFA/IeGIAVaQE7AmgpQaJbPmhOBLxiGTOnfyj09RWVeowVy7LM12JwbYCfq2E h7tT0dQcD2acwADN3kHw7eBr5SIjwBOB9D97UfgWxI7dW6nBApn6sZyDsGvCEH+3DPQo Hm4BT20uNKtIaPrOU3btgA4hxTB/qniKGGLEjIQfoB0ApWFkMS/Kxh59pQZF2kO8GBr3 sqWw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bi14si15219996ejb.441.2021.05.25.07.05.48; Tue, 25 May 2021 07:06:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233549AbhEYOF5 (ORCPT + 99 others); Tue, 25 May 2021 10:05:57 -0400 Received: from foss.arm.com ([217.140.110.172]:56802 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233542AbhEYOFy (ORCPT ); Tue, 25 May 2021 10:05:54 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B611A142F; Tue, 25 May 2021 07:04:24 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 6E2213F792; Tue, 25 May 2021 07:04:20 -0700 (PDT) From: Mark Rutland To: linux-kernel@vger.kernel.org, will@kernel.org, boqun.feng@gmail.com, peterz@infradead.org Cc: aou@eecs.berkeley.edu, arnd@arndb.de, bcain@codeaurora.org, benh@kernel.crashing.org, chris@zankel.net, dalias@libc.org, davem@davemloft.net, deanbo422@gmail.com, deller@gmx.de, geert@linux-m68k.org, gerg@linux-m68k.org, green.hu@gmail.com, guoren@kernel.org, ink@jurassic.park.msu.ru, James.Bottomley@HansenPartnership.com, jcmvbkbc@gmail.com, jonas@southpole.se, ley.foon.tan@intel.com, linux@armlinux.org.uk, mark.rutland@arm.com, mattst88@gmail.com, monstr@monstr.eu, mpe@ellerman.id.au, nickhu@andestech.com, palmerdabbelt@google.com, paulus@samba.org, paul.walmsley@sifive.com, rth@twiddle.net, shorne@gmail.com, stefan.kristiansson@saunalahti.fi, tsbogend@alpha.franken.de, vgupta@synopsys.com, ysato@users.sourceforge.jp Subject: [PATCH v2 04/33] locking/atomic: microblaze: use asm-generic exclusively Date: Tue, 25 May 2021 15:02:03 +0100 Message-Id: <20210525140232.53872-5-mark.rutland@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20210525140232.53872-1-mark.rutland@arm.com> References: <20210525140232.53872-1-mark.rutland@arm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Microblaze provides its own implementation of atomic_dec_if_positive(), but nothing else. For a while now, the conditional inc/dec ops have been optional, and the core code will provide generic implementations using the code templates in scripts/atomic/fallbacks/. For simplicity, and for consistency with the other conditional atomic ops, let's drop the microblaze implementation of atomic_dec_if_positive(), and use the generic implementation. With that, we can also drop the local asm/atomic.h and asm/cmpxchg.h headers, as asm-generic/atomic.h is mandatory-y, and we can pull in asm-generic/cmpxchg.h via generic-y. This matches what nios2 and nds32 do today. There should be no functional change as a result of this patch. Signed-off-by: Mark Rutland Cc: Boqun Feng Cc: Michal Simek Cc: Peter Zijlstra Cc: Will Deacon --- arch/microblaze/include/asm/Kbuild | 1 + arch/microblaze/include/asm/atomic.h | 28 ---------------------------- arch/microblaze/include/asm/cmpxchg.h | 9 --------- 3 files changed, 1 insertion(+), 37 deletions(-) delete mode 100644 arch/microblaze/include/asm/atomic.h delete mode 100644 arch/microblaze/include/asm/cmpxchg.h diff --git a/arch/microblaze/include/asm/Kbuild b/arch/microblaze/include/asm/Kbuild index 29b0e557aa7c..a055f5dbe00a 100644 --- a/arch/microblaze/include/asm/Kbuild +++ b/arch/microblaze/include/asm/Kbuild @@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 generated-y += syscall_table.h +generic-y += cmpxchg.h generic-y += extable.h generic-y += kvm_para.h generic-y += mcs_spinlock.h diff --git a/arch/microblaze/include/asm/atomic.h b/arch/microblaze/include/asm/atomic.h deleted file mode 100644 index 41e9aff23a62..000000000000 diff --git a/arch/microblaze/include/asm/cmpxchg.h b/arch/microblaze/include/asm/cmpxchg.h deleted file mode 100644 index 3523b51aab36..000000000000 -- 2.11.0