From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 807FDC25B06 for ; Mon, 8 Aug 2022 07:15:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236975AbiHHHPJ (ORCPT ); Mon, 8 Aug 2022 03:15:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235940AbiHHHOm (ORCPT ); Mon, 8 Aug 2022 03:14:42 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1794711440; Mon, 8 Aug 2022 00:14:21 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 7D528B80E06; Mon, 8 Aug 2022 07:14:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 313C0C433C1; Mon, 8 Aug 2022 07:14:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659942858; bh=z78WHIQdXHrVOrRs7faqs/81GPwGysyQnC0rF3Zrr/U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KnJyG8SYNNni4w3KsVr/N5l95731l2hqbGnCmvtDv+rdY4Ih6ohf4HFBW3ZVd9ZvX U7hodPcFC9KZJlvX+xq53WpU6iwCDGhsgTycoP6spsHxox0CCdIYCGbOPau4yh7WVa uyWdC5htV3UM+iwaxeAvfxzbMwvz9WA6xqPtrSeUw0iq/Ec+LaLpkNHwvqsOvzE0EP YZUJtRpuUbazXHXDwRTRF0DnIVUwaynbK+U8JG9qlQ8wZenFAXkRX0UwP47c+qSTYf QM8q2ocdVXxaOvfEvAjQH+rvxE3Tz9L7YIPfZuAj6BlU+mtkVoE23bISTTOkndL1L/ WRCTWZzlzyX2A== From: guoren@kernel.org To: palmer@rivosinc.com, heiko@sntech.de, hch@infradead.org, arnd@arndb.de, peterz@infradead.org, will@kernel.org, boqun.feng@gmail.com, longman@redhat.com, shorne@gmail.com, conor.dooley@microchip.com Cc: linux-csky@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Guo Ren , Guo Ren Subject: [PATCH V9 07/15] riscv: cmpxchg: Remove xchg32 and xchg64 Date: Mon, 8 Aug 2022 03:13:10 -0400 Message-Id: <20220808071318.3335746-8-guoren@kernel.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220808071318.3335746-1-guoren@kernel.org> References: <20220808071318.3335746-1-guoren@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-csky@vger.kernel.org From: Guo Ren The xchg32 and xchg64 are unused, so remove them. Signed-off-by: Guo Ren Signed-off-by: Guo Ren --- arch/riscv/include/asm/cmpxchg.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/arch/riscv/include/asm/cmpxchg.h b/arch/riscv/include/asm/cmpxchg.h index 67ab6375b650..567ed2e274c4 100644 --- a/arch/riscv/include/asm/cmpxchg.h +++ b/arch/riscv/include/asm/cmpxchg.h @@ -76,18 +76,6 @@ (__typeof__(*(ptr))) __xchg((ptr), _x_, sizeof(*(ptr))); \ }) -#define xchg32(ptr, x) \ -({ \ - BUILD_BUG_ON(sizeof(*(ptr)) != 4); \ - arch_xchg((ptr), (x)); \ -}) - -#define xchg64(ptr, x) \ -({ \ - BUILD_BUG_ON(sizeof(*(ptr)) != 8); \ - arch_xchg((ptr), (x)); \ -}) - /* * Atomic compare and exchange. Compare OLD with MEM, if identical, * store NEW in MEM. Return the initial value in MEM. Success is -- 2.36.1