Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2432795rdh; Sun, 29 Oct 2023 16:29:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGVcIc+yz+ty7igwm7sbsYBjVJbWrlxJztfy3o6/Pa+Pq5LFX0ASnXW6pp9zIZj757CWYHw X-Received: by 2002:a05:6358:5913:b0:168:e4a0:dd82 with SMTP id g19-20020a056358591300b00168e4a0dd82mr8466181rwf.1.1698622152614; Sun, 29 Oct 2023 16:29:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698622152; cv=none; d=google.com; s=arc-20160816; b=lOTHacNO3GOteVf0zpcZyWEV7DShbA4Bqym+acnhCkc2CyfHoqSNd2qKNenUVbkjy+ wLQ7RnaYW4kYgKUV1oQJrfW38wHgiZ00W+GkjwXxM0/hwa8nftCzy3rG9TRNzN1yhcZr 0gV1xxcvAz1vaAz2/VzbPYmLExewlXd5+tI4GOPLzJKe/xhk/wngp7W+kuELQpq3eaqa gEqb0/SIdmTPwbtNG/Bx4OA8gsqJlifefyZtvKqedshLZMwDmIGkod1T3nix14nYPPlI 6F8hhe11APad4RghHYlMINVS09nerGneUQNne5CURp5AHGkirDenja8UWTPt2+8SLWTd Hq3Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=46AfkftuSNcMvLHtQZmV7d9f4winDHVrgG8SUBVGfn0=; fh=PBLorP++sVWUm2n5BWXeX/2bZIVDmXSh9Fpv1ZQE5qA=; b=QHOmSax3jPSBuchxfhhHhzr6SkvJbphz0nICy+Nt+iNIh6KIzdkBMFlfs1QiAPPWQU G0zIDI44TFpAYI2bHuamRv6UnUr3ro9hOx4lJQzsOUoMZ+08SlyMwCLlf3CvppXo6Yse 4FsYaTNc598+xAb11Q3mnZ+17zX9PR8e4lSJuZVY1jPxmqsfWnCkpRrRA4cPr5WZ8hRO pJkGzmcXzkhKC4ZMn8mAo9OMkeMtFbuNiUiEYc7JiiHcQw6BidLH82mIVa9yb1ZzNLhO Pz09hunLTCMO8vNGG4OiEGVh2Kx86cjMNhLOvzL6J1ltRmcW43QHXSaab+hcc/UIrHe3 kpwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cQ+VMYnp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id q21-20020a656855000000b00574035fd472si3986385pgt.31.2023.10.29.16.29.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Oct 2023 16:29:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cQ+VMYnp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 971C380425AF; Sun, 29 Oct 2023 16:29:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231191AbjJ2X3J (ORCPT + 99 others); Sun, 29 Oct 2023 19:29:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232526AbjJ2X23 (ORCPT ); Sun, 29 Oct 2023 19:28:29 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 499673277; Sun, 29 Oct 2023 15:56:36 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 95D1AC04E60; Sun, 29 Oct 2023 22:56:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698620195; bh=ns2PKopBoIS79sjmwtSqYl5R1c41T9jtDzXaqxR3lyk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cQ+VMYnpf1Rll9/4gOgHEKxo0EVKpfPr65QxTcKO8/XcAwALQiW99phziSWZP8Ylg P4tPyKroSBbhTqSkPxoLSfLoMFi2Kbq/k1eIMP3cyxtIWIo48Kn5fou2fsyGw1pfmL 7xoNo2UMuiKiWY95F1C73eQoKwGSd9qUMkVQ3d58JPSGsOqQ0ShQ7Ph9S9Hhr3G2KW YfuSSdJDETN/XdLVKJLUhHhfuypP2wSRzHP1Kia7h9c4IJ29q2Neuz8HjD2TW/r1Z9 Kzpq+MqRN0pjym0SbKUPR3tgRHI6ntzrfA9UHZRNA/Uhc2y1ovhKydkikCYz65eJgP o/rUhZzA0gT4A== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Huacai Chen , Randy Dunlap , Tianrui Zhao , Sasha Levin , chenhuacai@kernel.org, maobibo@loongson.cn, akpm@linux-foundation.org, chenfeiyang@loongson.cn, arnd@arndb.de, loongarch@lists.linux.dev Subject: [PATCH AUTOSEL 6.5 41/52] LoongArch: Export symbol invalid_pud_table for modules building Date: Sun, 29 Oct 2023 18:53:28 -0400 Message-ID: <20231029225441.789781-41-sashal@kernel.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231029225441.789781-1-sashal@kernel.org> References: <20231029225441.789781-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.5.9 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sun, 29 Oct 2023 16:29:11 -0700 (PDT) From: Huacai Chen [ Upstream commit 449c2756c2323c9e32b2a2fa9c8b59ce91b5819d ] Export symbol invalid_pud_table for modules building (such as the KVM module) if 4-level page tables enabled. Otherwise we get: ERROR: modpost: "invalid_pud_table" [arch/loongarch/kvm/kvm.ko] undefined! Reported-by: Randy Dunlap Acked-by: Randy Dunlap Tested-by: Randy Dunlap Signed-off-by: Tianrui Zhao Signed-off-by: Huacai Chen Signed-off-by: Sasha Levin --- 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 3b7d8129570b8..51c9a6c90a169 100644 --- a/arch/loongarch/mm/init.c +++ b/arch/loongarch/mm/init.c @@ -267,6 +267,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.42.0