Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2426732pxj; Mon, 10 May 2021 02:41:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz11rVEMsPUb6nvjlrSxnWxVfdkl+GjuufhtE10p5wSRdYZHd5RFFd65RFJsDie3Zt7OYbB X-Received: by 2002:a92:6908:: with SMTP id e8mr20898945ilc.207.1620639666096; Mon, 10 May 2021 02:41:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620639666; cv=none; d=google.com; s=arc-20160816; b=DOEgeiaa3cF9Jnl+pEhkIDIBmmqfuEfa2SCJzusA1TPGTz4k23kL0tpnTpnkoECx1S tNOSecuMHgj/ep6iJ1xeMdiE0GKEN3c67fHgb6m0CDFnX2GENZqoxSqClIWVpwH7cnDE byzYKz/kGVJndIHMuiKl0CY+xEx7MclUFoojieLR61uKPDShWZZSNaSne1KprrRxgsqm /gr5PhA2IEqNHfftLWpS6TpuUEM6HW0RD/YNdt+j7EyxzmvTi+qHD/W3Kt3j7Dlt7cuk 0Nk8j/k+UVK69PpEmd9x21Fl6ui4LtjlU9hIbItuXvoxUmYeFur/NKvN1PznRw9FGmge MeAg== 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=C7zLCWbLQi2VTRamnoJWQNismEK9VhmTowqWyEut9TPVyjWOLrJQleoFs1Lgi8WAXL p0O0yff4rdXWMnoZQN/woequBkmyntyPmCGHzeVpTRPFFFCRHhxmDarSyhBAJsmlHIG9 5OQdL2dRgFgYDZXEwPHjkQaoouUqnKWwoMYTdY+ViZQ/GAnfV8wFYGvLkZiM4AM9bBHh klS3f/cgw60ndyPq1WLN1TO+E9Thvdnk8n9IQhsAYomnq/u7yBb27XnQsfHd9y6XHDkd uQljxLEL59j3yc25VEOizqlaOYaDGySa1PrbBW/3cnyqWJv6KuMJUtKie6cm1gsZyggZ rufA== 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 g11si1335668ile.43.2021.05.10.02.40.54; Mon, 10 May 2021 02:41:06 -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 S230337AbhEJJkx (ORCPT + 99 others); Mon, 10 May 2021 05:40:53 -0400 Received: from foss.arm.com ([217.140.110.172]:50576 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230333AbhEJJkm (ORCPT ); Mon, 10 May 2021 05:40:42 -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 29FF111FB; Mon, 10 May 2021 02:39:38 -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 00BBE3F73B; Mon, 10 May 2021 02:39:33 -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, 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, palmer@dabbelt.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 04/33] locking/atomic: microblaze: use asm-generic exclusively Date: Mon, 10 May 2021 10:37:24 +0100 Message-Id: <20210510093753.40683-5-mark.rutland@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20210510093753.40683-1-mark.rutland@arm.com> References: <20210510093753.40683-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