Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4805287iob; Mon, 9 May 2022 01:58:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzv9oKDIimKMdWybrvgJwt/jPIX3glcYEak2jf51JYygcGfMjeAW6l4NmY/lJfXXcZ78Ylr X-Received: by 2002:a05:6a00:1307:b0:4b0:b1c:6fd9 with SMTP id j7-20020a056a00130700b004b00b1c6fd9mr14936764pfu.27.1652086681405; Mon, 09 May 2022 01:58:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652086681; cv=none; d=google.com; s=arc-20160816; b=HIfGytmVp7jjnz4Uno3odX7DIpkJp+BiZR+uspnCQy+/JfhHLy2annFvk8Df+VyAV5 9ETtikFXHQZgR4sFqk4bcsCkbgsCnDvFxq6oBSyEveye9sje4pTyvjaMRLlXwYvog7dC US65ncrVRg3zo9QHVEMQsVMXo7Oox6GwSk3qVg9t7+epbolsOYpvXaycighQmYlYx89M JTQY//gLC1jlgtWXZ2HDSq4ofF5cLqTgtGcDeb6LoSRJkWbVHJyGUmpQrxFlgtogJGUT FUYjfmo0NWZpDwc3JB6f8ponnTQOWkxjXbmVy7NJff9bGAznSoQqCjzVW5gOqN5NF9qT 01Rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=mjNMya5LvxSU3gCHXLYfZWLgRpL+naScYINZugeITEo=; b=FaJP1wAAVVBZKU+wR9QKFJXup2aJxwZ3VipkS+FdwxtZ8zsx3IvHcEcY4X19hBhkzw tyY9/v7+Gz9SsPHTJd3oyO8Xx1HBHzRqoSoOFtk1gsX9vUU4eTygS7y6F2//mCHDQwvv 0QduIVXCquMEkhuqxB1yWZGrYcGA1A3F4FSy4w1Qg2zvLb6laGcftXtD1yPB61W9q31Y +xgLYH/wVwU0T0+WjQUV/fwby3Q/QOcyljA9cEe73vsNqVykXS7aRS41E5/aotr14mKF RmnQtp6abAdKwMKxhp0wRmpO82ipDzTl3CHI/LcKU9htY4R/b2gLCUCgn0Vdl1SgO5ct VNYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n9eEqytq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id j8-20020a17090a588800b001c6d5497bb9si18163616pji.28.2022.05.09.01.58.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 01:58:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n9eEqytq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EEA6C2873E; Mon, 9 May 2022 01:45:24 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242299AbiEED7b (ORCPT + 99 others); Wed, 4 May 2022 23:59:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242231AbiEED71 (ORCPT ); Wed, 4 May 2022 23:59:27 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54A9D25EA6; Wed, 4 May 2022 20:55:48 -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 0A09AB82B79; Thu, 5 May 2022 03:55:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A6ACC385B0; Thu, 5 May 2022 03:55:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651722945; bh=ycOArejrZ4wjdQN/FwZtyJLMUvQeie7e/tBekexR1Pg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n9eEqytqxgDf0VPmrt6zlMu3c3irjitX/I2CI49aa+hS/g1MICM9/XdXsivNJGBGy eOWEYo89jXAp2I2QUDSedMGcTmjIQFKuwPiAizJBpTZ1L94tLPFYveMynIfrGyZScf e4X2rd/1kz9Tiv6R9vJsWyPlzCgJKWwJkw+D+AcQb0U+4kV2bniiyUxstme5+NFTYv AeW7uEDY0y0gAbJJkKc4p3TdQVldYDf7bz15iKb8XW3cZuHn9XzCGUeiKweCc5Ui0C 2UTjBQEhDYWHWd4ztlXKgwfj//hcXg/xljSr4rNmJqIjPLLdt1F42Lbj5j+SMY6P5x bUKi9mEBMIsuQ== From: guoren@kernel.org To: guoren@kernel.org, arnd@arndb.de, palmer@dabbelt.com, mark.rutland@arm.com, will@kernel.org, peterz@infradead.org, boqun.feng@gmail.com, dlustig@nvidia.com, parri.andrea@gmail.com Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Guo Ren Subject: [PATCH V4 1/5] riscv: atomic: Cleanup unnecessary definition Date: Thu, 5 May 2022 11:55:22 +0800 Message-Id: <20220505035526.2974382-2-guoren@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220505035526.2974382-1-guoren@kernel.org> References: <20220505035526.2974382-1-guoren@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Guo Ren The cmpxchg32 & cmpxchg32_local are not used in Linux anymore. So clean up asm/cmpxchg.h. Signed-off-by: Guo Ren Signed-off-by: Guo Ren Cc: Palmer Dabbelt Cc: Arnd Bergmann Cc: Mark Rutland --- 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 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)))) -#define cmpxchg32(ptr, o, n) \ -({ \ - BUILD_BUG_ON(sizeof(*(ptr)) != 4); \ - arch_cmpxchg((ptr), (o), (n)); \ -}) - -#define cmpxchg32_local(ptr, o, n) \ -({ \ - BUILD_BUG_ON(sizeof(*(ptr)) != 4); \ - arch_cmpxchg_relaxed((ptr), (o), (n)) \ -}) - #define arch_cmpxchg64(ptr, o, n) \ ({ \ BUILD_BUG_ON(sizeof(*(ptr)) != 8); \ -- 2.25.1