Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2819075rwd; Mon, 29 May 2023 01:03:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6VoFXzFcOqBn5T4MQuBV0ClOxpjmoLy4qVI5IFPQc4OZecTQqt3yoq/w9DJY8umnmyheVH X-Received: by 2002:a17:902:dac9:b0:1b0:4772:d344 with SMTP id q9-20020a170902dac900b001b04772d344mr1926594plx.57.1685347382808; Mon, 29 May 2023 01:03:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685347382; cv=none; d=google.com; s=arc-20160816; b=BQ8Bcqtd2WFZWvL1E1NJkE06rVVVKTm2DPkcYHy8izyAj/aTHRMJyiFSrxuuMeeQMS fwFd9pAjiunzqo8ytm3CD19kLFOoG/rdRbQfYYMlWFmu/hgzl/YeDKaZLWbiq1WwA8Ta sSKjhG+ry2nYjFSRf09EAmzVUbQGM66y1+gOtn5DA1J8IaTgL8sbN0EZFFoVgH1ixOyg kaS9Q15c0r48VrGYKaEU6dI17lKksmLcGp96dkW8TtLqjJEoyQuhzSgZ8YtgwDP6MhNI 6AjXbmvT3nze94Cgq6WrtwneHrJlE9lnNVnq/46iV27BooPfvB4ly6ffhUPtqM2/T8wb iAyw== 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:date:subject:cc:to:from:dkim-signature; bh=yM1QFGiCeWcV/9DCqKsn4EaVQJKYsfRuqsOlTJiHY+w=; b=GB1t6Qo6ekEpS0T4KTZfDiKzbv+g7t8wD0uPoJilkeUNFtrv7U/bVUDWN7Dv7DROZQ nCI2o/4iCoNXconJRJTM0CqlwHOX92Q9lzVTdaY+CWks7EeAXMMBGFhgv/p1okLTNCdt VkD4DW2xc9WgpcLIGglk0lxVtqp4fjMouovL4M6RyxWQ0imq6rTBGVDIY7v0F4dLwv5k qbd9guGXw+awVkRq979/0sPG+cIaqQHKTW6hMnkdHRaaEMBpA1Rb1KN+KQ4vNcJ2Tfqi 6O5vkKecaO4hPLOKWtdgDs5lUqMeP0UEcCIWr/uYag1Y3YcdDvmJCfn63LZi/BDXc3hn yWlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SKYzK0tc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y8-20020a1709027c8800b001b042d1eccfsi1317431pll.530.2023.05.29.01.02.48; Mon, 29 May 2023 01:03:02 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=SKYzK0tc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230390AbjE2Hi7 (ORCPT + 99 others); Mon, 29 May 2023 03:38:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230332AbjE2Hi6 (ORCPT ); Mon, 29 May 2023 03:38:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D279AC for ; Mon, 29 May 2023 00:38:57 -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 F3946615F7 for ; Mon, 29 May 2023 07:38:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1C88EC433EF; Mon, 29 May 2023 07:38:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685345936; bh=2L03bJl1JvE9E9WzzUYTOxEyFHRi8LoxGv46OCU6JGg=; h=From:To:Cc:Subject:Date:From; b=SKYzK0tcInU/JLYLpz78c3bJNrLK2QLdpzE+WFK9GHt1celhAZScPSLWIFJVgwd1l G9+lOlTghfGaZT9Id0/EC+rUy0XsObm+b/treJk76pes14RNSoQ1QHNYGLIObb8tOd tzQi73cnRHq7djsnYoFzd8ZhhJzW2vBhRbPSfsOQ/GUi3qUQkIoowRTQ8KRTnb5SJF 2aRxLsq6sMdOXqE73RvLxDw5RK6IOPaQpwooCc0DkKNMxmVFTR+eAgCjQXU4JnndzG Enve7ntYb4wC6V9aTc0mEtx/9ach7AynwYFY9p/K3i/yMFTt9jm6Izlhc6Xvqk2IK1 7PsX/IvKAvMXQ== From: guoren@kernel.org To: guoren@kernel.org, greentime.hu@sifive.com, vincent.chen@sifive.com, andy.chiu@sifive.com, paul.walmsley@sifive.com, palmer@rivosinc.com Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Guo Ren Subject: [PATCH] riscv: vector: Fixup modules compile error Date: Mon, 29 May 2023 03:38:45 -0400 Message-Id: <20230529073845.2859178-1-guoren@kernel.org> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Guo Ren Some .ko also need the riscv_v_user_allowed symbol. ERROR: modpost: "riscv_v_user_allowed" [arch/riscv/kvm/kvm.ko] undefined! make[3]: *** [/home/guoren/source/kernel/linux/scripts/Makefile.modpost:136: Module.symvers] Error 1 Signed-off-by: Guo Ren Signed-off-by: Guo Ren --- arch/riscv/kernel/vector.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/kernel/vector.c b/arch/riscv/kernel/vector.c index 1c4ac821e008..3ae08816d608 100644 --- a/arch/riscv/kernel/vector.c +++ b/arch/riscv/kernel/vector.c @@ -129,6 +129,7 @@ bool riscv_v_user_allowed(void) { return riscv_v_get_cur_ctrl(current) == PR_RISCV_V_VSTATE_CTRL_ON; } +EXPORT_SYMBOL(riscv_v_user_allowed); bool riscv_v_first_use_handler(struct pt_regs *regs) { -- 2.36.1