Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1042511rdb; Sat, 7 Oct 2023 09:15:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH8INyaxoYCpSq2HhVKuLZSwQAWD2hJgQMPfNv19RodPIBjaVGsGpr4vFmn8SJjYWmR0KIB X-Received: by 2002:a17:90a:74cc:b0:267:ffcf:e9e3 with SMTP id p12-20020a17090a74cc00b00267ffcfe9e3mr10965455pjl.46.1696695321245; Sat, 07 Oct 2023 09:15:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696695321; cv=none; d=google.com; s=arc-20160816; b=EO+LN6Js9m2Mi5Vi8iVzy73AU0uOOhBRa4o6jpSJbHfXiH0vQVomqtxylRXnuT/Z3B kVgkTUIw5AsJF4qKb4qEZMeskH7QCcD7B6fkbhbNqkeK2qDZ3cFO4pLpBmDFrnH3Sdsd RCf2ueUNuYWsaaC5CJHyzg+MsX8dMdi8ub7/YtxrR0DPwgAF/rDIuBjPrizhKmdMaj0n CVJXKfFAOrZ/NaCXgRYMSZvOG3OCzMty7YDVQIxKgpP/n05QEpMeEpVs9A8OTjzUb7/6 p1X9cqn3qvvXthLhbI/A2LEy32Ag0/cdzxmyGkPRaZ/XmLPeuDR5V+oISf848pV21MSy uvjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=e6r4ZECyO9EqgE0zmF10A/TBUvrf32/knhNgMfcTMpc=; fh=ycGnwEth+RYCIzZy1/IdLqNfU3h7LbRmlqjwSNgX5Ok=; b=T0UD6WIofbTRShnQy5ANOoBYdqTnFx9ZARbQyBXN7kW5HfgM6brRDPq5QJaidjiCzL VCbh7ouZ1+JSICpSpFG4DaS7rYJVYxH4vC/W+F08QEv9l6YLEcpPj5sNsEtijimlDsi4 Zz1HSbjI0zRDOWel9L4M5mSYu//1J3lzdjV0iw1R1KDLI2cin+sXeo6yRP5/TdA3K6vl Y+QpNlzOPa6i2ydHTcfVHmYUVWyoQOnmXsDfMclsy1GMyJwDlxmDj2w6hofahcWWgUuJ fdL9bkIBFwVXH2KvKMThDuUdVksomx9ZsZuJEq4h+j3FwKj7liHi512S8I2pBgMcq91J wAeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=tjDTEUPw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id t5-20020a17090aba8500b002775999122csi6107158pjr.141.2023.10.07.09.15.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Oct 2023 09:15:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=tjDTEUPw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 7C01180BE7CA; Sat, 7 Oct 2023 09:15:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344063AbjJGQOl (ORCPT + 99 others); Sat, 7 Oct 2023 12:14:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343992AbjJGQOl (ORCPT ); Sat, 7 Oct 2023 12:14:41 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D983AB9; Sat, 7 Oct 2023 09:14:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=e6r4ZECyO9EqgE0zmF10A/TBUvrf32/knhNgMfcTMpc=; b=tjDTEUPwILW4Bcxjb8LgjBeOcw lqC/TEiUs36rn/1SswqXLPigaxpC/u813h4qlKONpc7jdvwfKh6SycnqIFfFGIO+fj6LrmmXhxQI8 PI7ogAxinHUjDWsXFXLwDB0/XYNWTKC5obe16CQE9P1SYtGpVYzg00r3Hr8oEcR6SZBXPtvfczBOg fOlhTu9YpPwGkn1hNMRJlkNFh9ghKubr9EoO1ot8M+QMsK6prcCevqPNmlQf+ukokrFMo/vPcIzke t98teuyDXl2Rhm7Tn6q68OAxB/uLuQVPkLVpwqe7pjxvKev/YhO//vpl/Lnq/pv7uU6M9H6odijv5 07KQyfIQ==; Received: from [50.53.46.231] (helo=[192.168.254.15]) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qp9wq-007imV-2l; Sat, 07 Oct 2023 16:14:36 +0000 Message-ID: <9f7931dd-3c0e-4bc2-988e-1fb3549e440e@infradead.org> Date: Sat, 7 Oct 2023 09:14:36 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH linux-next] LoongArch: mm: Export symbol for invalid_pud_table. Content-Language: en-US To: Tianrui Zhao , Stephen Rothwell , Linux Next Mailing List Cc: Linux Kernel Mailing List , "open list : LOONGARCH" , KVM list , maobibo@loongson.cn, Huacai Chen , Paolo Bonzini References: <20231007075303.263407-1-zhaotianrui@loongson.cn> From: Randy Dunlap In-Reply-To: <20231007075303.263407-1-zhaotianrui@loongson.cn> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Sat, 07 Oct 2023 09:15:05 -0700 (PDT) X-Spam-Level: ** On 10/7/23 00:53, Tianrui Zhao wrote: > Export symbol for invalid_pud_table, so it can be used > by the files in other directories. > > And this can resolve the problem caused in: > https://lore.kernel.org/lkml/20230927030959.3629941-5-zhaotianrui@loongson.cn/ > ERROR: modpost: "invalid_pud_table" [arch/loongarch/kvm/kvm.ko] undefined! > > Signed-off-by: Tianrui Zhao Reported-by: Randy Dunlap Acked-by: Randy Dunlap Tested-by: Randy Dunlap Thanks. > --- > arch/loongarch/mm/init.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/loongarch/mm/init.c b/arch/loongarch/mm/init.c > index f3fe8c06ba4d..ddf1330c924c 100644 > --- a/arch/loongarch/mm/init.c > +++ b/arch/loongarch/mm/init.c > @@ -240,6 +240,7 @@ pgd_t swapper_pg_dir[_PTRS_PER_PGD] __section(".bss..swapper_pg_dir"); > pgd_t invalid_pg_dir[_PTRS_PER_PGD] __page_aligned_bss; > #ifndef __PAGETABLE_PUD_FOLDED > pud_t invalid_pud_table[PTRS_PER_PUD] __page_aligned_bss; > +EXPORT_SYMBOL(invalid_pud_table); > #endif > #ifndef __PAGETABLE_PMD_FOLDED > pmd_t invalid_pmd_table[PTRS_PER_PMD] __page_aligned_bss; -- ~Randy