Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp874702rdb; Sat, 7 Oct 2023 02:49:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHMU9ZV1iPb8WZ/lM4k99ukS39elicEq8aqkapXqPLhBVdZV93/SF7i++M9WCE0EB0QqiSA X-Received: by 2002:a05:6a21:99a6:b0:16b:977d:f7cf with SMTP id ve38-20020a056a2199a600b0016b977df7cfmr5176683pzb.36.1696672164439; Sat, 07 Oct 2023 02:49:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696672164; cv=none; d=google.com; s=arc-20160816; b=dTjw6Q5df3h2OzlGBwLqS3GSHBIqkYzNvRVyvDt8DO0zbMtg4aonftf6MH3qghiUFN vRGZF+oSqwk6a1yeOgCMnkEZTNew58Y/RiiPoqNaxOe+UhpPPBi/bOUBccKBpzTsJ1xn pD5/gQvkLWj4mka3o1wAKGE+7ZQWSnKEVj8/P3+lrYfxYtsimklpVTLnr53ajqvxRm8a mP2zC5YChStLMWNsVU7NbFzWC8vpj7Bhzb+xSLMXj/R/0T9n6Ptgth7hkOLruJRtf3W+ V90VO7fG8zuxcq8g/SMt0mPDWrf4wwyVtsDq3t6lUSSgAvCojEWRutVYb6e/EGcgTUn0 PImg== 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=QiyOZWOy4aIb7Sb7q3kTTaDT/+LAZ15GZtu0PCZyIFQ=; fh=lXMngj+4PW81XisV0iSFtrNBK7243/GZyGKfJh6lers=; b=NOOs690e6W8GFSvZeAgrVbI5ASLeNBfqAt6+lksNIYhZPr2U8IVyYoeUknuwO+QxZH DPxqdW8pp03CYw9E7LCOWBg+Mu1ran5mWXpemQKfbYF5GaLYWjdXw/sB4WzqokSHRTC8 aUpFFyt3TJebYCI7bEap78gJcKBPBfo74TOFM4Bd9zmpzqPLfI0o9ligM3iU1rEimUoz jQ3mlpoPprsc7c+KkkwEnUKarJCcmssj34vrvc4nCXY7z+1oCJpSZuZ23pKbXfZhOQae X0JeJI4A8Lto6j5wuvdWAfF/c/qpMm2IgZ0HJ1GeTwRENGD3dBKt2OFTXfyxQrcOt8cp DdAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hHd84PRD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id fi42-20020a056a0039aa00b0069014d63f21si3445911pfb.148.2023.10.07.02.49.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Oct 2023 02:49:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hHd84PRD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 2B3C0804A4EE; Sat, 7 Oct 2023 02:49:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343757AbjJGJtK (ORCPT + 99 others); Sat, 7 Oct 2023 05:49:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234148AbjJGJtJ (ORCPT ); Sat, 7 Oct 2023 05:49:09 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F499B9; Sat, 7 Oct 2023 02:49:08 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BEDCAC433C8; Sat, 7 Oct 2023 09:49:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696672147; bh=5fs0qAQmil8qeHzK8rF+amcjXk7Zutaz5R48u8TzdmM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=hHd84PRDzVNBDHQPVtuh03Jyme9pRDRcy7vntd/lJdFL2fowa4yuKbLc8VZFwExOA 4/TZfOrE5WskzIpJHcvXFhc42HEQBIK/CN8wpR1BPBi2nMYJRrHXxRthk3RMmWdUxw XJRhLyBWemaHzyYm06avj7JP30Tioj79H+SqTvfSoUZYHc4n0qf0Vzsrwvd5rM2eeq Fs2mWePTEXQIdtDU+cZ1w3dmcPOPwa1ePAeJL2ohOy3t2gxx1P6n1dF6TCGWebRmb+ nYurUlkJQT9dsG+k+z2UfeaZ6K1h2Oo9IGwiaaZV/DOmdcUsV3A3X+E2AqXRndHMFx JVQDiJW2vut0g== Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-53808d5b774so5364644a12.3; Sat, 07 Oct 2023 02:49:07 -0700 (PDT) X-Gm-Message-State: AOJu0YzB4IxSd7fiuJ1qvITqseGjGJmWMd+GDniuVKFowkI30Q0L/su4 NasnLiaVrpOtxW96mn5zTcAxobiELMs5vNXdsIM= X-Received: by 2002:aa7:da8a:0:b0:531:9c1:8262 with SMTP id q10-20020aa7da8a000000b0053109c18262mr9305005eds.8.1696672146241; Sat, 07 Oct 2023 02:49:06 -0700 (PDT) MIME-Version: 1.0 References: <20231007075303.263407-1-zhaotianrui@loongson.cn> In-Reply-To: <20231007075303.263407-1-zhaotianrui@loongson.cn> From: Huacai Chen Date: Sat, 7 Oct 2023 17:48:52 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH linux-next] LoongArch: mm: Export symbol for invalid_pud_table. To: Tianrui Zhao Cc: Randy Dunlap , Stephen Rothwell , Linux Next Mailing List , Linux Kernel Mailing List , "open list : LOONGARCH" , KVM list , maobibo@loongson.cn, Paolo Bonzini Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 fry.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 (fry.vger.email [0.0.0.0]); Sat, 07 Oct 2023 02:49:22 -0700 (PDT) X-Spam-Level: ** Queued for loongarch-next (though I prepared a similar patch), thanks. Huacai On Sat, Oct 7, 2023 at 3:53=E2=80=AFPM 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@loongso= n.cn/ > ERROR: modpost: "invalid_pud_table" [arch/loongarch/kvm/kvm.ko] undefined= ! > > Signed-off-by: Tianrui Zhao > --- > 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; > -- > 2.39.1 >