Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp1568668pxa; Fri, 28 Aug 2020 17:05:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVlT2x2zzut7ReeCZneEWBVjUt+5T6FvB2oaEExr/mBsaBdV0AZcHsErFj4pN2CWrfy54K X-Received: by 2002:a05:6402:b9c:: with SMTP id cf28mr1281915edb.274.1598659511991; Fri, 28 Aug 2020 17:05:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598659511; cv=none; d=google.com; s=arc-20160816; b=1F878ie925fSjJn8cozB8xRSjERVECzP/GClNkoEz+CLD3nMzif5hY5vwOR5Yee4vm e4ZyOVekJ79t7C3HCuScSB2NLkKzVvW03a28eiKkT27IxWXsvO8rlFZn09p8PlKzD3xC zNBskrifB/lPp5jhXknrpMp+A0mjad3czNjHc1mZIh1NRs1qKjtJvT6GQa3WNYrchMKa VC0UUDnE8/uLYj6r+/OwsgHKCBwX25FqZcEVlFJYYfbDh7QRnl+fTTpiyGbo3SByYGoe 1As+WWIS17kYxmOfoTJ4V6LpS3BuB97CmkhIsxP61fGhGFxwu/7JkhzXNiz67lQJpnbR 5G8g== 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=VZBQ4C/lsfFT4AafE4ufQjnGxwhG0L0ghO6R1ZlHtsI=; b=SbbIkmpvCdFQZBKxtxdMscFrb28tpnjMVSj9ZL2NyCJEQUNXQrk66BYh6+oBZ77uON YJSUKrl9QpJQgs2jP1w1cYj+4mjdm9MiENozFcmB2D0I7fWQ/O2tgGIcxx1NO3FuK4JB uBEOELM4F4iLU3+r/zjPLLHipWVGL0xLdQRXCkMRc8YLco+wO4h7kSF+8MYLudNteQHv G+S5T1VvFELPdWOmSvQYf+zt45EV4Wd+mPDiVvDjh2FoL4YKcEuDhcHdxT4EZCiqkfy6 IGW1xXryBGtSvBaTUydmMBZsyd4FXJxF2Kczu3LTSkLsY2sFURDXxx6J8IvtXGf+NjkF 6mmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=XnN3KDJe; 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 k9si679762eja.354.2020.08.28.17.04.48; Fri, 28 Aug 2020 17:05: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=XnN3KDJe; 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 S1726867AbgH2AB0 (ORCPT + 99 others); Fri, 28 Aug 2020 20:01:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726762AbgH2ABU (ORCPT ); Fri, 28 Aug 2020 20:01:20 -0400 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D2A5C061264 for ; Fri, 28 Aug 2020 17:01:20 -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=VZBQ4C/lsfFT4AafE4ufQjnGxwhG0L0ghO6R1ZlHtsI=; b=XnN3KDJeKJtFNCfoVkMtKlrVyR GlmJsBTNhQI6+RhENQdeipat54DivxP8qth6eEsfzGhg8fOqDRePciLOj5gMOlXHI6o6jaI+DXSSI LP60M35YthVIXePOQaEhPqtqrRcsYcNkm66ozN+fKw7XctxkohKbBhXid8uhPozJZbN4sBp9YQbQm ec9NrtVm5BL4ut3jxGckXwlywN0gvQf5gZ//wpccrVmUTb/CpWFdjv6CRrv/INOPmqgwO2T5GnWDU 2Ti9blJ7Wyq25ggiMhZnj5UnQIceSFeFkWGT3ESMRbilGDE3ZFdYjC77J/2pbgebxMwiNaLWLoa+L nz86w0tw==; 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 1kBoJ2-0006wn-Kp; Sat, 29 Aug 2020 00:01:17 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , kernel test robot , linux-mm@kvack.org, Andrew Morton , David Rientjes , Mike Rapoport , Michal Simek , Michal Simek Subject: [PATCH] microblaze: fix min_low_pfn/max_low_pfn build errors Date: Fri, 28 Aug 2020 17:01:10 -0700 Message-Id: <20200829000110.2408-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 Fix min_low_pfn/max_low_pfn build errors for arch/microblaze/: (e.g.) ERROR: "min_low_pfn" [drivers/rpmsg/virtio_rpmsg_bus.ko] undefined! ERROR: "min_low_pfn" [drivers/hwtracing/intel_th/intel_th_msu_sink.ko] undefined! ERROR: "min_low_pfn" [drivers/hwtracing/intel_th/intel_th_msu.ko] undefined! ERROR: "min_low_pfn" [drivers/mmc/core/mmc_core.ko] undefined! ERROR: "min_low_pfn" [drivers/md/dm-crypt.ko] undefined! ERROR: "min_low_pfn" [drivers/net/wireless/ath/ath6kl/ath6kl_sdio.ko] undefined! ERROR: "min_low_pfn" [crypto/tcrypt.ko] undefined! ERROR: "min_low_pfn" [crypto/asymmetric_keys/asym_tpm.ko] undefined! 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 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 --- arch/microblaze/mm/init.c | 3 +++ 1 file changed, 3 insertions(+) --- linux-next-20200825.orig/arch/microblaze/mm/init.c +++ linux-next-20200825/arch/microblaze/mm/init.c @@ -46,6 +46,9 @@ unsigned long memory_size; EXPORT_SYMBOL(memory_size); unsigned long lowmem_size; +EXPORT_SYMBOL(min_low_pfn); +EXPORT_SYMBOL(max_low_pfn); + #ifdef CONFIG_HIGHMEM pte_t *kmap_pte; EXPORT_SYMBOL(kmap_pte);