Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp1569156pxa; Fri, 28 Aug 2020 17:06:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhuE3WSwByyX/i395T6qYCcgQMsxL1zlz0jS7y0FcDHdBgelGOizHGSTsUWzr4R37JalPh X-Received: by 2002:a17:906:5796:: with SMTP id k22mr1300903ejq.77.1598659571892; Fri, 28 Aug 2020 17:06:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598659571; cv=none; d=google.com; s=arc-20160816; b=i5jN/KGmhTLn6KHXzs6B+MSC3z20gw8SJxJr7OBg26EEWF2yll/+5AcPuv9FT1RrJc 5df6Adb3uJHCYO0O4c0aC2wJ2G90MuHc6n9c3xgKF5x+5D7WGMhUSQym/gBCqQRlqg6Z pWqX5Jt/o3looFy0tOnRoqEF+QItFCeK+G+t6ywEa48gx00RqmDNyh+ZP+D82OCoZWgF FQv/ux1Ynm9LPFtbHlKZKoMYmBMYkO+s1OWmJUrr5dtzqynwwUrqM/cISNtxQWvKwoqp /O6HCrt8PjK344c0d8Ap3UE1B2uwIEMOIZhgzwj9DUrSqWWKuBnGPU6dGf1WG/Y0yO+e au1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=GA4T/SBE6dahx5pqWnJ6oAB3Y/3yZkPaI5G9WmLDnik=; b=pzE/DJwRHps5mXGVmNLorDtSGfstd+uFVoWlCJe75aQFO88Umft430pxV2egdqmeoN ql36qiYzC+VGLcivs/8Kqs1eeCA1f5CmzSEBWV7oxCN0hOgk4QHY6UbdHGQ00DtuQBRc t2hnhGBtp2pcEH893M4DRBhWCyLTs0mZAZwjrDn5Yg1SAk5EOGY1iE+X2NVYgfqs5NwG J+pvzCwTvBHqZCwAQLXo6rotcFzuVXr6dbHIiQoohhETSd0KLr9vQ/sgFff6vOP2lyTS r+rZ0ouyK7dAg0PTC05QMK9+tBo9lyQlCOUekPcx0wAjZddnAH77b8u3F+oljDUr+Yfx 9qvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=QyfuHIds; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kt14si693178ejb.281.2020.08.28.17.05.49; Fri, 28 Aug 2020 17:06:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=QyfuHIds; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727003AbgH2ABs (ORCPT + 99 others); Fri, 28 Aug 2020 20:01:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726775AbgH2ABs (ORCPT ); Fri, 28 Aug 2020 20:01:48 -0400 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F80FC061264; Fri, 28 Aug 2020 17:01:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=GA4T/SBE6dahx5pqWnJ6oAB3Y/3yZkPaI5G9WmLDnik=; b=QyfuHIdsrcprTTZcREQL4lV9Go QpOv2Qxj6WTAoVnZVCnmgT/D7HJWsiSrpZt4/InMRxKs3V4AaEZj3fToLQhmzZ5Xyvp0X+3Oz7s4C ZPMn+qr3TtMEy/uJkF36jsMQKxzvNAoBbyavMO1I6Vgns02eWhMSfoIAaBj1CA0S+FYG6pKeC+Pw5 I5bImAWuWs8R/uFPKdBs6cQiHR73Ck8x1IOKCfaLapKbMCMNwXFNhrkF2/5FzP+G43P7jC2oPN5ok ehr9em5B7j0dTSkTReJIZL1g65gyuEf+FiYxnVqMXgDcTHezNglRc7eBSlQnwitMO90jkrw3swCft +VKydvxw==; Received: from [2601:1c0:6280:3f0::19c2] (helo=smtpauth.infradead.org) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBoJV-00077S-Me; Sat, 29 Aug 2020 00:01:46 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , kernel test robot , David Rientjes , linux-mm@kvack.org, Andrew Morton , Mike Rapoport , Michal Simek , Michal Simek , Tony Luck , Fenghua Yu , linux-ia64@vger.kernel.org Subject: [ALTERNATE PATCH] memblock: fix min_low_pfn/max_low_pfn build errors Date: Fri, 28 Aug 2020 17:01:39 -0700 Message-Id: <20200829000139.2513-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Export min_low_pfn & max_low_pfn in mm/memblock.c to fix build errors on arch/microblaze/ and arch/ia64/: (e.g.) ERROR: "max_low_pfn" [drivers/rpmsg/virtio_rpmsg_bus.ko] undefined! ERROR: "min_low_pfn" [drivers/rpmsg/virtio_rpmsg_bus.ko] undefined! ERROR: "max_low_pfn" [drivers/mtd/spi-nor/spi-nor.ko] undefined! ERROR: "min_low_pfn" [drivers/mtd/spi-nor/spi-nor.ko] undefined! ERROR: "min_low_pfn" [drivers/mtd/nand/raw/nand.ko] undefined! ERROR: "max_low_pfn" [drivers/mtd/nand/raw/nand.ko] undefined! ERROR: "max_low_pfn" [drivers/rapidio/devices/rio_mport_cdev.ko] undefined! ERROR: "min_low_pfn" [drivers/rapidio/devices/rio_mport_cdev.ko] undefined! ERROR: "min_low_pfn" [drivers/hwtracing/intel_th/intel_th_msu.ko] undefined! ERROR: "max_low_pfn" [drivers/hwtracing/intel_th/intel_th_msu.ko] undefined! ERROR: "min_low_pfn" [drivers/crypto/cavium/nitrox/n5pf.ko] undefined! ERROR: "max_low_pfn" [drivers/crypto/cavium/nitrox/n5pf.ko] undefined! ERROR: "max_low_pfn" [drivers/md/dm-integrity.ko] undefined! ERROR: "min_low_pfn" [drivers/md/dm-integrity.ko] undefined! ERROR: "max_low_pfn" [crypto/tcrypt.ko] undefined! ERROR: "min_low_pfn" [crypto/tcrypt.ko] undefined! In both arches, these variables are referenced in arch/$ARCH/include/asm/page.h. Mike had/has an alternate patch for Microblaze: https://lore.kernel.org/lkml/20200630111519.GA1951986@linux.ibm.com/ David suggested just exporting min_low_pfn & max_low_pfn in mm/memblock.c: https://lore.kernel.org/lkml/alpine.DEB.2.22.394.2006291911220.1118534@chino.kir.corp.google.com/ Reported-by: kernel test robot Suggested-by: David Rientjes Signed-off-by: Randy Dunlap Cc: linux-mm@kvack.org Cc: Andrew Morton Cc: David Rientjes Cc: Mike Rapoport Cc: Michal Simek Cc: Michal Simek Cc: Tony Luck Cc: Fenghua Yu Cc: linux-ia64@vger.kernel.org --- mm/memblock.c | 2 ++ 1 file changed, 2 insertions(+) --- linux-next-20200825.orig/mm/memblock.c +++ linux-next-20200825/mm/memblock.c @@ -99,6 +99,8 @@ EXPORT_SYMBOL(contig_page_data); unsigned long max_low_pfn; unsigned long min_low_pfn; +EXPORT_SYMBOL(min_low_pfn); +EXPORT_SYMBOL(max_low_pfn); unsigned long max_pfn; unsigned long long max_possible_pfn;