From patchwork Tue Jun 19 12:53:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 10474293 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EBED0603B5 for ; Tue, 19 Jun 2018 13:09:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DE8A528BA9 for ; Tue, 19 Jun 2018 13:09:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D31E028BB7; Tue, 19 Jun 2018 13:09:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7080928BB3 for ; Tue, 19 Jun 2018 13:09:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=51w/GZ4T/JZYICX5M/dbfuwiNQz8SHDjOd80dlt4oho=; b=PQlhuwF6LPYYEJrTq9Kq5dLO62 ZEsEzyPHm5cDzRO++1x4eS92gKkw4ZcZBRBGnkWVwKLZumah6gXhrwpH4Ma7w0F/uYW5yArVb+6HI E+VFcuZXSs40rqr0YY5+zW8EgOG3XxslLAX7HvO3pYTbxi4HBdKALYJjqvByOalvZDCDMBMi8RADK Ui+cwgY6Kmta3YdjDQQ/lT0/l7ZHSE1rzjLN65Sr2OtUA5LfM8szfG5I8M+3nF68ZY4RyzDAO0Rbh VJldB7pWl7uNJTgzMjpG6Z/3W1s9ldodLryCzdPh/tMjrtKYgOC2hW8WteKkjeUWk7SQGg8vQ1xuz +UA3ye6g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fVGOK-0005Ox-3I; Tue, 19 Jun 2018 13:09:48 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fVGNx-0004k9-MH for linux-arm-kernel@bombadil.infradead.org; Tue, 19 Jun 2018 13:09:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Z/XbD58FafxKZE8LGDDZ7F8R80r4uaO2CAfVYW1/FOY=; b=SvJAFf6DyOdtvJGLxz0H5cSGa BoWtXd9N7/hPyXq9R31NwhgbaMSOmVBm/BDa5A9wW8dPi/XUoRVmwBdeMfMkgHJusikoAfZGygYUr OHg8lICKiiPHMuV374RRxj1p4Vm7JAolSX3yInF5HXeAYkOGU11S2NJ7IMSHihSiI3b64LoVOEJyw awDUjtI1cf3fniyjGFqVwzP82F1sjuwcTLENTH3jlbTz0bLdCTC+vlON/fpSZVzcVRDJ0Z4Mu2FlG vcwvmNX7DzCOG1ilVfFjI0vtFZyjFTP9IwcJzEcO2kGI/AoK/W4+xEIZIXy2bqZISFG1YSAj/Fub6 /tGn9fjCQ==; Received: from foss.arm.com ([217.140.101.70]) by casper.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fVG8B-0001oJ-76 for linux-arm-kernel@lists.infradead.org; Tue, 19 Jun 2018 12:53:08 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 251AF168F; Tue, 19 Jun 2018 05:52:41 -0700 (PDT) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id EB5D33F7F4; Tue, 19 Jun 2018 05:52:40 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 216471AE3797; Tue, 19 Jun 2018 13:53:16 +0100 (BST) From: Will Deacon To: linux-kernel@vger.kernel.org Subject: [RESEND PATCH v2 9/9] arm64: bitops: Include Date: Tue, 19 Jun 2018 13:53:14 +0100 Message-Id: <1529412794-17720-10-git-send-email-will.deacon@arm.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1529412794-17720-1-git-send-email-will.deacon@arm.com> References: <1529412794-17720-1-git-send-email-will.deacon@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180619_135307_389109_DF3DF1CB X-CRM114-Status: GOOD ( 10.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peterz@infradead.org, yamada.masahiro@socionext.com, Will Deacon , mingo@kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP asm-generic/bitops/ext2-atomic-setbit.h provides the ext2 atomic bitop definitions, so we don't need to define our own. Acked-by: Peter Zijlstra (Intel) Signed-off-by: Will Deacon --- arch/arm64/include/asm/bitops.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/arm64/include/asm/bitops.h b/arch/arm64/include/asm/bitops.h index 13501460be6b..10d536b1af74 100644 --- a/arch/arm64/include/asm/bitops.h +++ b/arch/arm64/include/asm/bitops.h @@ -38,11 +38,6 @@ #include #include #include - -/* - * Ext2 is defined to use little-endian byte ordering. - */ -#define ext2_set_bit_atomic(lock, nr, p) test_and_set_bit_le(nr, p) -#define ext2_clear_bit_atomic(lock, nr, p) test_and_clear_bit_le(nr, p) +#include #endif /* __ASM_BITOPS_H */