Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3938638rwd; Mon, 29 May 2023 20:26:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6uj4Kr57zNPR9EYE/CN0ebxT4W+AwDNw5ULzBAYn1GU5umrs31XmzthIF/2wGNn/fER8fN X-Received: by 2002:a05:6a20:144f:b0:10f:13bb:5d4f with SMTP id a15-20020a056a20144f00b0010f13bb5d4fmr1345704pzi.2.1685417177145; Mon, 29 May 2023 20:26:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685417177; cv=none; d=google.com; s=arc-20160816; b=iwG7LyMj03nmsWogdZnFIMsYz1tDqsc1pAJM2AK3ZrJvC1423xKuFnzzyWfw0+iXRq 6gG15/qtqmUjEGYiFm4ClGfWbzbK4H+bhs5kI1GQu9+O0wDYGy0+QTgAwPfeebTpBwUY t7H4y8JdLCQ3AMNpb8Mk9+8Pd0gcoyOo6xEYw2HMjZ0Q3uqfDNCBrYAbTuECHivkEFfT Z36KAz/mrUmDP4IzH/G2jPAQI4tgn90KVvFYa9yS5Rx9kVEIhtbv7jlSrY9PtnQTsUZY FaUXEseayaqG3Pt5S/UjVMrnGNi1jjkXF+zjTIHg0cQcPwfWCHu7IcQrFRwLJPr8djue xcdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=CpbqqfsMGzoRF6sFbQrAUeG2vJ2BIIFzdDj2ar4jxlQ=; b=gmCEy/oPRGLtPmoAnBexqA+acm3A0//+ScjnIHGnsaPbF0WbFmdFrSUM/KgXaqaClX pepyyWFb9n1tBjwo/+jTpFwkrqQesHo8F4+4WTs90rJ07qMR6zHU3Aj1v5sVRBRiIlGh zE1Y9FFDjdvWTFBbGjRRLzn6GW1LeVjoZDuYgPvYP1kuu+7EM/59FGyz3yyLfa9yxNRI /Yh9vhRjdhJd3yT+rL+n9AdpmmyUj+S2bpqUrqNQqw75TE0FbuH7gWGs3YJQAYx/PqdZ ZNsal09tyuQiAKircY+ggLEQdjWtYkmJZnFNlzwoLKPw/gu4/LaQ2WJobEfaf1jc/g2s xaNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ftXDHZUW; 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 g9-20020a63fa49000000b00524eef20da6si3312665pgk.642.2023.05.29.20.26.02; Mon, 29 May 2023 20:26:17 -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=ftXDHZUW; 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 S229571AbjE3C7c (ORCPT + 99 others); Mon, 29 May 2023 22:59:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbjE3C7a (ORCPT ); Mon, 29 May 2023 22:59:30 -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 CDF1D8E for ; Mon, 29 May 2023 19:59:29 -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 5314E62A0B for ; Tue, 30 May 2023 02:59:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ADF39C433A1 for ; Tue, 30 May 2023 02:59:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685415568; bh=wEuys/ept9SxgsrESA2dJvolxDiyhIWiuVW3VCQrAU4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ftXDHZUW2eUlkyR2HcYaUsPKFR1nSV3H0e26TTOG/Chs+IuqwHgg4ksAzBF73s5OM u7Vj2nUduAoJUfyXutNUiV5gg7rI2p19gg1/5p10JLvJuXGFwDSRwJ2IDRsmehNsYm 7OZG3nfBs+A4dd9BEivk8sozw1wouBmiO3GvT2Ddb5TCJLKML5f57BuHHAX2bPPczl /UN1d9pauLTfi1r8eSBIrF7Obi43z/UQnGmnGg7XMX0+ma7rVjdo9XcFPKo9gl35rp p9bnGjS5vwiqds2s4aCQBz7tFvCHONPpeaQO0RdoGySN2WnvwCEPpvJflc9+Gl2XsN N4KxOO5Z0pE0A== Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-5147f5efeb5so6579946a12.0 for ; Mon, 29 May 2023 19:59:28 -0700 (PDT) X-Gm-Message-State: AC+VfDwCwdW43s5gLAmix9GpnCQCABr3X1nij0LZHZEJ2erPXB3qgMNC 9YuuWYuvuxf8LEo9jFpv1Gg0C51TRdlDHVzp9yc= X-Received: by 2002:aa7:c743:0:b0:514:a5f7:a6d1 with SMTP id c3-20020aa7c743000000b00514a5f7a6d1mr552034eds.1.1685415566870; Mon, 29 May 2023 19:59:26 -0700 (PDT) MIME-Version: 1.0 References: <20230529073845.2859178-1-guoren@kernel.org> <20230529-jasmine-amigo-6d01f6852b35@wendy> In-Reply-To: <20230529-jasmine-amigo-6d01f6852b35@wendy> From: Guo Ren Date: Tue, 30 May 2023 10:59:14 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] riscv: vector: Fixup modules compile error To: Conor Dooley Cc: greentime.hu@sifive.com, vincent.chen@sifive.com, andy.chiu@sifive.com, paul.walmsley@sifive.com, palmer@rivosinc.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Guo Ren Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 On Mon, May 29, 2023 at 9:43=E2=80=AFPM Conor Dooley wrote: > > On Mon, May 29, 2023 at 03:38:45AM -0400, guoren@kernel.org wrote: > > 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) =3D=3D PR_RISCV_V_VSTATE_CTR= L_ON; > > } > > +EXPORT_SYMBOL(riscv_v_user_allowed); > > Is there a reason that this should not be EXPORT_SYMBOL_GPL()? Good question, but I just follow our arch/riscv habbit, maybe we should change all of that in another patch. =E2=9E=9C linux-s64ilp32 git:(s64ilp32) =E2=9C=97 grep EXPORT_SYMBOL arch= /riscv -r | wc -l 66 =E2=9E=9C linux-s64ilp32 git:(s64ilp32) =E2=9C=97 grep EXPORT_SYMBOL_GPL = arch/riscv -r | wc -l 15 > > I figure Andy will roll this into this next revision. > > Cheers, > Conor. --=20 Best Regards Guo Ren