Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp807141ybd; Wed, 26 Jun 2019 06:23:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqwJqwpcJp0t0TcoeE4xHY39G4ehvKsw530vA1dZPMPqaUpA7bBrcJmYI3EoPiApZ9bP/1Zc X-Received: by 2002:a17:902:4201:: with SMTP id g1mr5488161pld.300.1561555401070; Wed, 26 Jun 2019 06:23:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561555401; cv=none; d=google.com; s=arc-20160816; b=1JE5b0YR9ast3sCkF7Xpx5lFvGOOQRUefnk15VHYoKw9ChiH8pP/gzhmL/q0aTistR 2wEQJj21b4SIqUyrtndHcV12vBefHH3QTTLgoj6Gtxiwf/pTXK2BFD1LLYDB29an5n/w 1K8SDVFEi5wod5gc5PAn9N4OsIggl+FIO6qoypfFOcB45xuaGfvw5Su+K6etvcuU+yqB rSIfrU5dVLfVTOOG7x061scmd/IIfX7JLd/013LHZ4vv4Dh7SgJwlFMaqkgJtqrIY0P5 uGZ2/aS3/O88JVlTkk3/Z2pHgR3Df11MbEHezXA78SKpPy3LVoVIkbVRo2rvhED8xCnT 84HQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=grV5yv5Fb3u3tF2bDQ1i+3jnfG4Y4yNlyHoRzoBCQLU=; b=Hx33xTIyjXVKJtLz/fuvgUtY+oYvsLSKXzhWyhgXndV3JrdSJKkVdC1RutgpEo6spA /DmbMGx9kNDKJ0ZidrCpkA8PffGicZpipv9vtJ0YYIj9EZ/cQn8NP5ILRqbLFNdm6LFT FiXOwhscrKcIWB2xGtBTFvShy/NknZAPofssAeJwp53y6yMt/9jeFoxXrCUkH+b+FpL1 jDzQ1BFW+Ux69RFVk1WR3+XAGF1oUR2FJv/XemYGZb9iotL/5SW/kodEi90S9C0+7VYQ 975Y8XyZr3oZZb60+YUVEqNQceBJRzqkoGWV8Aaw20e4F2aY1FetnL/AtiKXyYzqTEmH PePg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t18si17102404pfh.29.2019.06.26.06.23.04; Wed, 26 Jun 2019 06:23:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727282AbfFZNVc (ORCPT + 99 others); Wed, 26 Jun 2019 09:21:32 -0400 Received: from foss.arm.com ([217.140.110.172]:32828 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726628AbfFZNVc (ORCPT ); Wed, 26 Jun 2019 09:21:32 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1D595360; Wed, 26 Jun 2019 06:21:31 -0700 (PDT) Received: from p8cg001049571a15.blr.arm.com (p8cg001049571a15.blr.arm.com [10.162.40.140]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 4550F3F71E; Wed, 26 Jun 2019 06:21:25 -0700 (PDT) From: Anshuman Khandual To: linux-mm@kvack.org Cc: Anshuman Khandual , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , "Aneesh Kumar K.V" , Nicholas Piggin , Andrew Morton , Stephen Rothwell , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-next@vger.kernel.org Subject: [PATCH] powerpc/64s/radix: Define arch_ioremap_p4d_supported() Date: Wed, 26 Jun 2019 18:51:00 +0530 Message-Id: <1561555260-17335-1-git-send-email-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Recent core ioremap changes require HAVE_ARCH_HUGE_VMAP subscribing archs provide arch_ioremap_p4d_supported() failing which will result in a build failure like the following. ld: lib/ioremap.o: in function `.ioremap_huge_init': ioremap.c:(.init.text+0x3c): undefined reference to `.arch_ioremap_p4d_supported' This defines a stub implementation for arch_ioremap_p4d_supported() keeping it disabled for now to fix the build problem. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: "Aneesh Kumar K.V" Cc: Nicholas Piggin Cc: Andrew Morton Cc: Stephen Rothwell Cc: linuxppc-dev@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org Cc: linux-next@vger.kernel.org Signed-off-by: Anshuman Khandual --- This has been just build tested and fixes the problem reported earlier. arch/powerpc/mm/book3s64/radix_pgtable.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/powerpc/mm/book3s64/radix_pgtable.c b/arch/powerpc/mm/book3s64/radix_pgtable.c index 8904aa1..c81da88 100644 --- a/arch/powerpc/mm/book3s64/radix_pgtable.c +++ b/arch/powerpc/mm/book3s64/radix_pgtable.c @@ -1124,6 +1124,11 @@ void radix__ptep_modify_prot_commit(struct vm_area_struct *vma, set_pte_at(mm, addr, ptep, pte); } +int __init arch_ioremap_p4d_supported(void) +{ + return 0; +} + int __init arch_ioremap_pud_supported(void) { /* HPT does not cope with large pages in the vmalloc area */ -- 2.7.4