From patchwork Sat Aug 29 00:01:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 11743837 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 09BD013B6 for ; Sat, 29 Aug 2020 00:01:51 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id CB72420838 for ; Sat, 29 Aug 2020 00:01:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="QyfuHIds" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CB72420838 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 259796B0006; Fri, 28 Aug 2020 20:01:50 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 1E2506B0007; Fri, 28 Aug 2020 20:01:50 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0D40D6B0008; Fri, 28 Aug 2020 20:01:50 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0201.hostedemail.com [216.40.44.201]) by kanga.kvack.org (Postfix) with ESMTP id E86786B0006 for ; Fri, 28 Aug 2020 20:01:49 -0400 (EDT) Received: from smtpin22.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id B4FE94DC3 for ; Sat, 29 Aug 2020 00:01:49 +0000 (UTC) X-FDA: 77201652738.22.glove85_360779927079 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin22.hostedemail.com (Postfix) with ESMTP id 8A3D218038E68 for ; Sat, 29 Aug 2020 00:01:49 +0000 (UTC) X-Spam-Summary: 1,0,0,d53f6f6597412642,d41d8cd98f00b204,rdunlap@infradead.org,,RULES_HIT:41:355:379:541:800:960:967:973:988:989:1260:1311:1314:1345:1431:1437:1515:1534:1542:1711:1730:1747:1777:1792:2393:2525:2559:2564:2682:2685:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3352:3867:3868:3870:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4043:4321:5007:6261:6653:6742:7875:9025:9040:10004:11026:11473:11658:11914:12043:12114:12297:12517:12519:12555:12696:12737:12895:12986:13221:13229:13845:13846:13894:14096:14181:14394:14721:21080:21451:21627:21811:30054:30064,0,RBL:205.233.59.134:@infradead.org:.lbl8.mailshell.net-64.201.201.201 62.8.55.100;04yfnkxqb47ioyf3c74og494qyczhop8psf5f6bxtc6sjo4ngibnn5drxodrh5q.cie5897uidxtf7ox13i31ao9k9zybpauhzyuoy46nj9jtho5aomf36dzbr8zpxx.c-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:24,LUA_SUMMARY: none X-HE-Tag: glove85_360779927079 X-Filterd-Recvd-Size: 4319 Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by imf50.hostedemail.com (Postfix) with ESMTP for ; Sat, 29 Aug 2020 00:01:49 +0000 (UTC) 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 X-Rspamd-Queue-Id: 8A3D218038E68 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam02 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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;