Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6168552rwl; Thu, 29 Dec 2022 08:26:38 -0800 (PST) X-Google-Smtp-Source: AMrXdXsVQB6R75MZxuryrS2ZewNOChTFY7IY4VG6qelTTmqIJaOkhg0+XTqJkHbX1R8ihMYsFJ/X X-Received: by 2002:a17:906:8492:b0:801:98a4:5725 with SMTP id m18-20020a170906849200b0080198a45725mr25034735ejx.30.1672331197979; Thu, 29 Dec 2022 08:26:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672331197; cv=none; d=google.com; s=arc-20160816; b=lVlmKI4SXQetULJ/cHZvvyrdqEqeu3M/LG4odCzKbDV/g2w0eNahYbDfxDkIuOhghR aaosWmuQkkKQfvJCAJt9YFrXwxyjdSOBZUwt53VSlFf5Y7OFOiaxPKlrnI7wqIQ+rnhs TMFpRvzfc+sIN1Z9XqXpVQyT0i8a7q8CROc4vXd+62Skh6vyv2QtlZqEGa1dDBgY9md1 2oET9+5nEGF+H7VdvrS5yWoUUokXOKd9+lTEY8nf0TNNAo0OhJCphf52NGmSAJUUi5Tf aiJuFkS6Rp/sWNKEXxBFXWfU0/xM50YfQhSmmRcwBoEt3GWnOcCpU4+iNeBykbdjdbTc TGjw== 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 :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=PMNgd8bQDMgdEx3QpMo3jWGl4T1DZKXjFMtqF5doPS4=; b=Gj3AFJsPR78Bu4QNlaWWvQwdyJKftyLEixvZ5YhbVMkon2/xPJXlhUHFd9EZhCtpqm Dq/8lmY/Fl1lYmVams3rg3CtdrdW98LPWWW7LWK7HEvUuAbD1vIh2A8vIONfVNRW6kMh AFEaYfEML1Z6onpZjpcIa5pmIrma9KS+YZoPnl6i6voqheuVYWjfxsuo1uys5Dnsg9Eb +RJlXj4onQdVDnXsVVuRlKj2nS3W56k+KeQ3tCfdJWPYrzOGrUBZzcB+TlaWm1boUvHI SxsltTsBUM5JnAVcr1vzFtdIsQDrfm8McUqQ6FXviIKkD8xxAyz5YtI3jGuMs2pew4dr SFng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20210112.gappssmtp.com header.s=20210112 header.b=qXEmllgj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id js22-20020a17090797d600b007a5cdd9550esi17645001ejc.201.2022.12.29.08.26.23; Thu, 29 Dec 2022 08:26:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@dabbelt-com.20210112.gappssmtp.com header.s=20210112 header.b=qXEmllgj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233779AbiL2QXD (ORCPT + 61 others); Thu, 29 Dec 2022 11:23:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233707AbiL2QW2 (ORCPT ); Thu, 29 Dec 2022 11:22:28 -0500 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33DC813EB3 for ; Thu, 29 Dec 2022 08:22:27 -0800 (PST) Received: by mail-pf1-x431.google.com with SMTP id w26so12918842pfj.6 for ; Thu, 29 Dec 2022 08:22:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:from:to:cc:subject:date:message-id :reply-to; bh=PMNgd8bQDMgdEx3QpMo3jWGl4T1DZKXjFMtqF5doPS4=; b=qXEmllgjQDDILSAqKv5rHoGkicbo4R4i0RBYCEbuy5JWCS9/AA+DWTMXLQgqDAappW 903kwqubN40SB2KttGjjG54UgZAHr5bwFbysTxqCEokE3BNB09i/uefHEDV0SvFj1/tu 1Lu+CFCesVDE+jl4EXnA8KkiboPktg6mieeJ7onX1tkrVdG7KvaiHAaOG9gcqJyJPbGd pCkV7szyzafl528HANkkvX+fSJQQtn4lOJvi8JPHEP8zM7yI6lOkG51EtxjdpiS6qS6y bkQ9rcSKWrjbuS7i9mSjttcyHwgDwy/ruAPC9lLbcJkXlwaOVpsqeXNx1gIuMeQUkJfm MIkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=PMNgd8bQDMgdEx3QpMo3jWGl4T1DZKXjFMtqF5doPS4=; b=vo9ebyMwJoUQOVyiTo/dz52GLYFt6C59DZM3OkIN48Qca0MTAdQyI5kGLzSIXv9/E5 XprxH9iOIsjPU7i76ebtRWsk4O2TVrPxP4k7CJVMm81dumKweDCIQSSPAef8tGzh9edr Dwoih7VXCE0NpyeM9TRmLTm6PlG70w2LC9Gb7+awm2rfFq0R+LZTkTNTeJshpYm51PM8 yJAy/UI7ArJqKZNE36/lz+0ykp/7l1Oj3uzxneLBExzWWXPJFsFafVsyskoLZ/ESygbP cQTmhCKXjZ2M29hR2N5XPiBoP8YhcqUMWaUUW6mdiGVA58/VQvDpn+vjkwOTVkNaU/UG +Lpw== X-Gm-Message-State: AFqh2koiYJv/5DTvqu6OKJjQ+TIvmdMpNigagRPrp9bZtrgxqagTlDSW NW6EsjUIISOWM4rFnF02jwc1Ig== X-Received: by 2002:a05:6a00:1c92:b0:576:f322:419f with SMTP id y18-20020a056a001c9200b00576f322419fmr28959611pfw.28.1672330946621; Thu, 29 Dec 2022 08:22:26 -0800 (PST) Received: from localhost ([135.180.226.51]) by smtp.gmail.com with ESMTPSA id l190-20020a6225c7000000b005771d583893sm12598441pfl.96.2022.12.29.08.22.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Dec 2022 08:22:26 -0800 (PST) Date: Thu, 29 Dec 2022 08:22:26 -0800 (PST) X-Google-Original-Date: Thu, 29 Dec 2022 07:53:49 PST (-0800) Subject: Re: [PATCH 13/19] arch/riscv: rename internal name __xchg to __arch_xchg In-Reply-To: <20221222114635.1251934-14-andrzej.hajda@intel.com> CC: linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-hexagon@vger.kernel.org, linux-ia64@vger.kernel.org, loongarch@lists.linux.dev, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, openrisc@lists.librecores.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-xtensa@linux-xtensa.org, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, andrzej.hajda@intel.com, Arnd Bergmann , rodrigo.vivi@intel.com, akpm@linux-foundation.org, andriy.shevchenko@linux.intel.com, peterz@infradead.org, boqun.feng@gmail.com, mark.rutland@arm.com From: Palmer Dabbelt To: andrzej.hajda@intel.com Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 On Thu, 22 Dec 2022 03:46:29 PST (-0800), andrzej.hajda@intel.com wrote: > __xchg will be used for non-atomic xchg macro. > > Signed-off-by: Andrzej Hajda > --- > arch/riscv/include/asm/atomic.h | 2 +- > arch/riscv/include/asm/cmpxchg.h | 4 ++-- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/arch/riscv/include/asm/atomic.h b/arch/riscv/include/asm/atomic.h > index 0dfe9d857a762b..bba472928b5393 100644 > --- a/arch/riscv/include/asm/atomic.h > +++ b/arch/riscv/include/asm/atomic.h > @@ -261,7 +261,7 @@ c_t arch_atomic##prefix##_xchg_release(atomic##prefix##_t *v, c_t n) \ > static __always_inline \ > c_t arch_atomic##prefix##_xchg(atomic##prefix##_t *v, c_t n) \ > { \ > - return __xchg(&(v->counter), n, size); \ > + return __arch_xchg(&(v->counter), n, size); \ > } \ > static __always_inline \ > c_t arch_atomic##prefix##_cmpxchg_relaxed(atomic##prefix##_t *v, \ > diff --git a/arch/riscv/include/asm/cmpxchg.h b/arch/riscv/include/asm/cmpxchg.h > index 12debce235e52d..2f4726d3cfcc25 100644 > --- a/arch/riscv/include/asm/cmpxchg.h > +++ b/arch/riscv/include/asm/cmpxchg.h > @@ -114,7 +114,7 @@ > _x_, sizeof(*(ptr))); \ > }) > > -#define __xchg(ptr, new, size) \ > +#define __arch_xchg(ptr, new, size) \ > ({ \ > __typeof__(ptr) __ptr = (ptr); \ > __typeof__(new) __new = (new); \ > @@ -143,7 +143,7 @@ > #define arch_xchg(ptr, x) \ > ({ \ > __typeof__(*(ptr)) _x_ = (x); \ > - (__typeof__(*(ptr))) __xchg((ptr), _x_, sizeof(*(ptr))); \ > + (__typeof__(*(ptr))) __arch_xchg((ptr), _x_, sizeof(*(ptr))); \ > }) > > #define xchg32(ptr, x) \ Acked-by: Palmer Dabbelt Thanks!