Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3189431rwd; Mon, 29 May 2023 07:01:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ78+izf5sYXUuE5dFmPrY6koj8RyrONcGN8DrurGLt60kmawuoUR8lWSJ355FUWjv0SMSWU X-Received: by 2002:a17:902:f550:b0:1ac:4a41:d38d with SMTP id h16-20020a170902f55000b001ac4a41d38dmr11291353plf.51.1685368904868; Mon, 29 May 2023 07:01:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685368904; cv=none; d=google.com; s=arc-20160816; b=ux1B4ZzgQmFnem9SA3p1Ao9B1TH/oOjnNKNLgrS3vxpjiejYOU7YUrrIpmruTaHtvc efRpotM90WuKdZp4FlN34Sfs4NbLJIHpnb7wmyiacUdIEhcKwV9OUnDFTbSv09sSbWBp jLQbXOrivgTFjBPJkh7+/K+EmOPeCJ1uBO3gexO5qhrwsch6Qjrgnvp6ejA/xOpKklWP NUVkL3bBwBVnSWYKlZQ5cbCqMctQFcSRdTvmyyBAP7EiginrErPz61Tl0ZGO/qLqIJZe LhX6GlANhp19Feo0RPD0tchy2fETvcFp7Iva1D0pZuSOsYTcZYCYjcu6fe+Tgxxevt56 B/Hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=bNN0JU3lRN58OSB5rYuA0FyBtq0pbL+5xAOXLq6wHqY=; b=Opwpdq15qgzvyqRVnngqySsxgGU0RHEYxVHVQ0lxCnqZq1IgN6T4iKBmxiyCP/4ijF YQD2LkO9C4ltOyfuYPTIWHHbtcF6vn9BQP2prcWXKzG9qGXdYPMPJ79YrSNHfWGRMhI5 7EyciK543SMmdhiPIleTFRSJ8RAy7t2sEbpX2LHcocalM9C0MJ9cfEWYKeSZooGiqVAZ oJmIvYaUNP20F9IlhuXZB4+qDSkj9E+uoB+HUmFBW2YUOAP6tT3QmTA/bhiTBGZC5F+V KRlEGNWAFBRqOZ0q9N3BE9Y+57qh4zm8ucswPlmHKb55Sc3MHX3xwLNyOqQ9bk+GDEqp Brgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=tqBjFXK5; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n14-20020a170902d2ce00b001ab2431f012si10236264plc.423.2023.05.29.07.01.27; Mon, 29 May 2023 07:01:44 -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=@microchip.com header.s=mchp header.b=tqBjFXK5; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229886AbjE2NnE (ORCPT + 99 others); Mon, 29 May 2023 09:43:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229887AbjE2NnD (ORCPT ); Mon, 29 May 2023 09:43:03 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 263ABA0 for ; Mon, 29 May 2023 06:43:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1685367779; x=1716903779; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Lck7HYWXjUv9FzYPBUbNMYKle2RKHVZNP7rTsjD50t8=; b=tqBjFXK5oMrNkbolIYD+bP0WATWx/HNleO6uh08ORoZ7GMUPajlynR70 fgCYwFRXJQ4SnZGos2jYEZrVs3W9jO4HUE/sNscTgoPV9UmQCI68YH69B 23xYTfm3Il4HPJPeR7kabvtEg2wljN7DDkp1ft8BLQCHlEqKO4y3O6CIv mIYO5349jqx81gM632+vTYOqrAnazMHFCHZPkxtj3H1TIkYU4eiMJfbJS 9Yrw9Imn8Im3Gq6F0f8mLE0HZ/umbbeeyx+RVpctatY9iz7XhOhzz9SPY w6ievwhMqgq3sXRoakGNmkN+dqoNVr8W/OY1rBSfb6NJV+jhiRQDwgeKK A==; X-IronPort-AV: E=Sophos;i="6.00,201,1681196400"; d="asc'?scan'208";a="215318630" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 29 May 2023 06:42:59 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.87.72) by chn-vm-ex02.mchp-main.com (10.10.87.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Mon, 29 May 2023 06:42:59 -0700 Received: from wendy (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Mon, 29 May 2023 06:42:57 -0700 Date: Mon, 29 May 2023 14:42:34 +0100 From: Conor Dooley To: CC: , , , , , , , Guo Ren Subject: Re: [PATCH] riscv: vector: Fixup modules compile error Message-ID: <20230529-jasmine-amigo-6d01f6852b35@wendy> References: <20230529073845.2859178-1-guoren@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="akcCoxLpoL7TwvtM" Content-Disposition: inline In-Reply-To: <20230529073845.2859178-1-guoren@kernel.org> 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_PASS,SPF_NONE,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 --akcCoxLpoL7TwvtM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 29, 2023 at 03:38:45AM -0400, guoren@kernel.org wrote: > From: Guo Ren >=20 > Some .ko also need the riscv_v_user_allowed symbol. >=20 > 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 >=20 > Signed-off-by: Guo Ren > Signed-off-by: Guo Ren > --- > arch/riscv/kernel/vector.c | 1 + > 1 file changed, 1 insertion(+) >=20 > 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) =3D=3D PR_RISCV_V_VSTATE_CTRL_ON; > } > +EXPORT_SYMBOL(riscv_v_user_allowed); Is there a reason that this should not be EXPORT_SYMBOL_GPL()? I figure Andy will roll this into this next revision.. Cheers, Conor. --akcCoxLpoL7TwvtM Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZHSrygAKCRB4tDGHoIJi 0oWoAP9FuWiLyHszPu/BNFTA31PQXq1uTLNjgff7dnZJXmDsRgEArXKuxMpe5bLA ojf2vGH2BafRIK0+zNrThRf2a3sfqQo= =YVAK -----END PGP SIGNATURE----- --akcCoxLpoL7TwvtM--