Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2478074rwb; Fri, 2 Dec 2022 10:16:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf7YjufE+sA3A4h2vA1x4kBjdeENpLi4GFX+TmSAwnXYC/MNoRJHAvA8ZgECp66rq8h4/aWE X-Received: by 2002:a17:906:7953:b0:7bf:944e:cf6e with SMTP id l19-20020a170906795300b007bf944ecf6emr22399703ejo.638.1670004967473; Fri, 02 Dec 2022 10:16:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670004967; cv=none; d=google.com; s=arc-20160816; b=yILgzomebx3lXi+mQUTImiGQAnvxT+dTa/mvnPDCQWecBEPnoICxgdQuH8b1qUtNC2 2C4XKmNjBM+mc3r38CEkxqmQbe9US9LtW7Xh4k74F1hhnFKDVvWW5jpcW5LdEVmUltUP SKOriq3JWDlzM0sP5Y8G7jneFxv7HlLlsTFEJkxlN1hC8uSA13SGtNnHShV2pZfSU+x7 AxgsJcnpLzM3WP1+mD+K0PJyyFd/PHG1laFGAltzsYqSzebSEw1+53xlPeqL0DMrzHU7 664yPHkCOwzHMeqRtdOVCV/DtrW/C9QVr1HyXcVijL97LtYG78xD4lZF1K8wQBU9Eqy/ 34dw== 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=9ZvJzDorQtOwNqLa1HHYVuO6backFKSVBd3ruJxRA2A=; b=nCohhg8XDmmd8JqIVX2yBmjU+2IdtlofRzEZZNz+Tmb51TDfOrhA8GnudYqBQcBIeN Wj7ofcaxHiG02Tf2NG29KoXdTWBIcfEhs65+UGCtrvJnGL5WnnCL13x71hjEsxQlxpAD IVsmAOU2otaBsy8tGuaoSGVf2mpB+UoOPUp9rNqY+J6ABkxhDedmlFWuYVo9AtTs6c/e CgBziziWlArbVxpE5Gun+xR2uVCtB+YZzME+fpSIjWBG52Xy1YNWDEGRdmEG8NOKx+NJ IC/MXC9iEmtwZ9vZM9mfisu+T02CwUou4CMAAwdJoUQyZnTcdpRfoS7iOX9YKAjY+73b k0vA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20210112.gappssmtp.com header.s=20210112 header.b=eQnZOvNR; 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 xe8-20020a170907318800b007ba9c086b05si6688980ejb.497.2022.12.02.10.15.47; Fri, 02 Dec 2022 10:16:07 -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=eQnZOvNR; 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 S233548AbiLBRxo (ORCPT + 83 others); Fri, 2 Dec 2022 12:53:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233541AbiLBRxl (ORCPT ); Fri, 2 Dec 2022 12:53:41 -0500 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C3DBC2D30 for ; Fri, 2 Dec 2022 09:53:40 -0800 (PST) Received: by mail-pl1-x631.google.com with SMTP id 4so5327597pli.0 for ; Fri, 02 Dec 2022 09:53:40 -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=9ZvJzDorQtOwNqLa1HHYVuO6backFKSVBd3ruJxRA2A=; b=eQnZOvNRY11eiZD6GVvQZwn1takWYswEZO6mnHfFnI3IOwcIiD6Zx+pagggcuTggyE KI2v9qhiuLOtxUaSbh05X+3u3ZJeuy2KPUw24QAEHeemgwvBVYSNg7VIrTgM/9CZF7Mh qIGRAfb52QV9/EArXB3WfOf73n/Zj+mT+acVF8xXToHtE9sTGamB58BUDzFZvKKrcrQs N82x9nRGEqlbGZDDayglBKpHk1Ju0LRifyISFL7XGTuJ4VTQZxgsAckVsHg9WKJDAtXL l1P2Bi6HAp3c1vtRk7yGNxdUdXKhF7PSfRXpRsPFM+uN9qkQfh86kWUV6Q3Nt+kAw8ul RFAw== 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=9ZvJzDorQtOwNqLa1HHYVuO6backFKSVBd3ruJxRA2A=; b=NSINNtytevAWVGtX29sSB3ikHop/e+F9xrz78d+tEgUk+wfQTLTUSe+FdHvorw7toT bX2GqPtcMivJBrQTeX0bClN7WN5N9ltw3TaFVqdoFeGPFxnggZ964e07FVaGiIYiKJLL b1+kW0idHwlCHCtqBWClYpR+05yu3SfglDcj0KDTkLWzz+Yo3xT/NNcm2D0w15JNOe/b Ws/7BDudlesg5cHdpr15n/nVvszLnzJGxIHsPR4PEW1ASJTeONPK2scze3jgOtSIkjxs DGpNNUJtdb7UlL1/HasTZ5ulSZzQPKyiKPeTPU97m67Hzt8yyYqQg7hRkszi99Aeqp0T +sOg== X-Gm-Message-State: ANoB5pmWRU2eMF41UsxVoRx6gyIFHP2zMxaCXjmqU3WUEYqdKbMa6n4F 7SxoluKeKbY9MFY7fYDPx8MF3DJIqnlsw1uW X-Received: by 2002:a17:90a:ca85:b0:219:88aa:d3d1 with SMTP id y5-20020a17090aca8500b0021988aad3d1mr4968286pjt.135.1670003619663; Fri, 02 Dec 2022 09:53:39 -0800 (PST) Received: from localhost ([50.221.140.188]) by smtp.gmail.com with ESMTPSA id w15-20020aa7954f000000b0056283e2bdbdsm5391440pfq.138.2022.12.02.09.53.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Dec 2022 09:53:39 -0800 (PST) Date: Fri, 02 Dec 2022 09:53:39 -0800 (PST) X-Google-Original-Date: Fri, 02 Dec 2022 09:53:24 PST (-0800) Subject: Re: [PATCH 6/9] RISC-V: Export sbi_get_mvendorid() and friends In-Reply-To: <20221128161424.608889-7-apatel@ventanamicro.com> CC: pbonzini@redhat.com, atishp@atishpatra.org, Paul Walmsley , ajones@ventanamicro.com, anup@brainfault.org, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, apatel@ventanamicro.com From: Palmer Dabbelt To: apatel@ventanamicro.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 Mon, 28 Nov 2022 08:14:21 PST (-0800), apatel@ventanamicro.com wrote: > The sbi_get_mvendorid(), sbi_get_marchid(), and sbi_get_mimpid() > can be used by KVM module so let us export these functions. > > Signed-off-by: Anup Patel > --- > arch/riscv/kernel/sbi.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/arch/riscv/kernel/sbi.c b/arch/riscv/kernel/sbi.c > index 775d3322b422..5c87db8fdff2 100644 > --- a/arch/riscv/kernel/sbi.c > +++ b/arch/riscv/kernel/sbi.c > @@ -627,16 +627,19 @@ long sbi_get_mvendorid(void) > { > return __sbi_base_ecall(SBI_EXT_BASE_GET_MVENDORID); > } > +EXPORT_SYMBOL_GPL(sbi_get_mvendorid); > > long sbi_get_marchid(void) > { > return __sbi_base_ecall(SBI_EXT_BASE_GET_MARCHID); > } > +EXPORT_SYMBOL_GPL(sbi_get_marchid); > > long sbi_get_mimpid(void) > { > return __sbi_base_ecall(SBI_EXT_BASE_GET_MIMPID); > } > +EXPORT_SYMBOL_GPL(sbi_get_mimpid); > > static void sbi_send_cpumask_ipi(const struct cpumask *target) > { Acked-by: Palmer Dabbelt