From nobody Fri Jun 19 07:16:33 2026 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 5AFC9C433F5 for ; Wed, 6 Apr 2022 15:09:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235824AbiDFPLe (ORCPT ); Wed, 6 Apr 2022 11:11:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235584AbiDFPLT (ORCPT ); Wed, 6 Apr 2022 11:11:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A409D1C8D9F; Wed, 6 Apr 2022 05:11:09 -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 dfw.source.kernel.org (Postfix) with ESMTPS id B57CD618B3; Wed, 6 Apr 2022 12:07:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E864FC385A1; Wed, 6 Apr 2022 12:07:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649246868; bh=iGoGpsovgQGm3f51J9VzIGQSvftAriIikJJODGcShQM=; h=From:To:Cc:Subject:Date:From; b=H3dYPeC9xFmaac+uA8gZ4+yYQRjdsWrb7yyDY27NluUTJp9CVXAjyWQ5lKhiUOpMI n833ozeQFlfHPewyjYMSRp8JZtimSk4qebyz1Kqk3Jrip+O1AJETjVjURgr4K1Z2N5 ivEsSXT/GKb26kyYYfihsm8jFhd3tugNCtSZV5jEPL96R1E9C6ICJd9PGZjIArsABY GvdUuzw31o/1IJLQn/LHwj80t+B08Mjzgw4w7n25PrM6YM5jc2r/FAksTzkMArp+LI RXIdKzrFH3c4qLHf/+0GyJ2UL9kfSU/Ixg1iwrERC4+2bnfXLlmVTWFm3aa1XWnspr hnIHOxWC44p/g== From: guoren@kernel.org To: palmer@rivosinc.com, arnd@arndb.de Cc: linux-riscv@lists.infradead.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Guo Ren , Guo Ren , Palmer Dabbelt Subject: [PATCH] riscv: cmpxchg: Cleanup unnecessary definition Date: Wed, 6 Apr 2022 20:07:35 +0800 Message-Id: <20220406120735.661142-1-guoren@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Guo Ren The cmpxchg32 & cmpxchg32_local have been never used in linux, so let's remove them from cmpxchg.h. Signed-off-by: Guo Ren Signed-off-by: Guo Ren Cc: Palmer Dabbelt --- 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/cmpx= chg.h index 36dc962f6343..12debce235e5 100644 --- a/arch/riscv/include/asm/cmpxchg.h +++ b/arch/riscv/include/asm/cmpxchg.h @@ -348,18 +348,6 @@ #define arch_cmpxchg_local(ptr, o, n) \ (__cmpxchg_relaxed((ptr), (o), (n), sizeof(*(ptr)))) =20 -#define cmpxchg32(ptr, o, n) \ -({ \ - BUILD_BUG_ON(sizeof(*(ptr)) !=3D 4); \ - arch_cmpxchg((ptr), (o), (n)); \ -}) - -#define cmpxchg32_local(ptr, o, n) \ -({ \ - BUILD_BUG_ON(sizeof(*(ptr)) !=3D 4); \ - arch_cmpxchg_relaxed((ptr), (o), (n)) \ -}) - #define arch_cmpxchg64(ptr, o, n) \ ({ \ BUILD_BUG_ON(sizeof(*(ptr)) !=3D 8); \ --=20 2.25.1