Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp15253795rwb; Mon, 28 Nov 2022 09:28:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf7R8QeGr8YsIsUUkl0dUU2WMFHM4KZxBo+1i8fGJ0HW0tKs+FWjBsPCVoi48muIhZXh0Jgb X-Received: by 2002:a05:6402:10c4:b0:467:7827:232 with SMTP id p4-20020a05640210c400b0046778270232mr49934700edu.268.1669656520465; Mon, 28 Nov 2022 09:28:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669656520; cv=none; d=google.com; s=arc-20160816; b=aEefXE4CAWAaXrNi7TQ2qADI9CIsV/mmyXJiJ7v6viTkiUiHlCweaEY1DQOHknJJIi yiBQADLvno4DEKg8gOkkYh01lPR7wIkty9HFDFpLwl856JGU57BTxxiYaYcfTqD1LvAu PohRyEdoIpThtpSHuhIUoy/agI57z57ySTd80lK2HMUoVlEvK4Q5vnRDj0ctqg8wDeN7 Gmg8O8s6OAMUMt5KcyKcz0ILep2ugJSDepUWrno62VVoBElpn27Jd844jX+qeVBE94CS yKMF98Dy1N1FUywZuBSCtZN8CpW/q9hIUxWwTNXn3u5mvjuPyoko0hHNhL83f66oNSyI QPzw== 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=hv1OFha79GkiviE0uDMGNS7exO8nWxI6HdONFPzodJA=; b=e5rKCSE6NvwRc95oM8nNl5KwPnTQYjwijRUz5AF0A688Df8eUS+P+caZ5Nw2Xg8QFG YTdGw/PbX3zoCT38PdswtHWXokHR6NaXAvKsRRzmDj4G9l3krtaopMHHtSWpJ/h4KhxV f0O/FqgI3v3UeESX+dqxIfebw+mMcq0f0JrHlX225oc49BxuVSrq1h9p8lOnuNlc+efi NaF4d0ctS8ZuFYNyti3bAskvTlTvfXWxEFRt2IJJaK/UfQdx5FEOgqQxBAugkcP7ylid ITxMr/rUKC7YIp1Fz45sYq4B+g/jnMu7V4e1wEtIQGl6wokIxeDJCDALXSky6LRHG9Yn G09Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=lqSNnSKb; 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 c13-20020a05640227cd00b0046ac017b01csi8931012ede.617.2022.11.28.09.28.19; Mon, 28 Nov 2022 09:28:40 -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=@ventanamicro.com header.s=google header.b=lqSNnSKb; 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 S232742AbiK1QPW (ORCPT + 84 others); Mon, 28 Nov 2022 11:15:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232552AbiK1QPH (ORCPT ); Mon, 28 Nov 2022 11:15:07 -0500 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1221424942 for ; Mon, 28 Nov 2022 08:14:59 -0800 (PST) Received: by mail-pj1-x1030.google.com with SMTP id l22-20020a17090a3f1600b00212fbbcfb78so14479840pjc.3 for ; Mon, 28 Nov 2022 08:14:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=hv1OFha79GkiviE0uDMGNS7exO8nWxI6HdONFPzodJA=; b=lqSNnSKbWlZ374V5w1PVkdsGEI3ifekQqCTHz1J8U2HZjC+qA2twMy4VL0AEBUMCZq YlVw/udi8rz6lWI6K5sg5aKFW4rmOunzSL+MhQFVRuwhVeQzSAhebIAU14uB4oVjvCqq D8KstXofbeugtPgqSLS1GOjivEnhF0SXoDoEXhZm6ka44+q9OOxiuFEh3aInV5zPuw/W DBhuvqTxSIIcygMAKPvxVkBC2KcF9udOi+NUfmXJZY0RgndFe+I3sBv2esLSSM0n3ERr w8WAggDnqRUs4gOPYWhALfXR6aReh98SeHWE3VFdVmOIUCvnVbRhjDcUn479ZGbIAbz9 Tm/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hv1OFha79GkiviE0uDMGNS7exO8nWxI6HdONFPzodJA=; b=M0cPtAhfLuOeFevVmbbkwdIprAtF8jwmbQlUNgc96l85RJGyhixz00HB7rkUXCklWd FUM2cyPHGjh8X7yFoYLW7HtFHBuouz9aTh86rYfQySevOd2Hb4Q1EF0q2DLTAIozQHJJ pPMA1Lbkp5ppc//T4HJxVgxPRkEgRU32gTTqu7sQxPWKEEq/l9kC+Nr98lwKGCLqaWqg bcWrwaSu3lUS1SQb+D8uwB49xwwkN6p2bsAcusfJBLVDNG7+GAG8j8vLLQhESm8J6zoT XNzudULiXP52lwt39SHcGYEpt17zMwFw1xzhOCUu+0euI94A5kg9m6iHcjW6q2EeoPuf kp0g== X-Gm-Message-State: ANoB5pm5xO6007+PQXJfmMYEEP7wJLOIumYvqJZfoU8ScBPme3SSlVLn oeV53+UlxBPEQxfklWs8Mutvpw== X-Received: by 2002:a17:902:d893:b0:188:542a:68d8 with SMTP id b19-20020a170902d89300b00188542a68d8mr34593125plz.126.1669652099425; Mon, 28 Nov 2022 08:14:59 -0800 (PST) Received: from anup-ubuntu-vm.localdomain ([171.76.85.0]) by smtp.gmail.com with ESMTPSA id k145-20020a628497000000b0056246403534sm8210805pfd.88.2022.11.28.08.14.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Nov 2022 08:14:59 -0800 (PST) From: Anup Patel To: Paolo Bonzini , Atish Patra Cc: Palmer Dabbelt , Paul Walmsley , Andrew Jones , Anup Patel , kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Anup Patel Subject: [PATCH 6/9] RISC-V: Export sbi_get_mvendorid() and friends Date: Mon, 28 Nov 2022 21:44:21 +0530 Message-Id: <20221128161424.608889-7-apatel@ventanamicro.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221128161424.608889-1-apatel@ventanamicro.com> References: <20221128161424.608889-1-apatel@ventanamicro.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 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) { -- 2.34.1