Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1615520ybd; Wed, 26 Jun 2019 21:48:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqzo1yc4xHqDHYln7IZ5FGZHZmYJC1dvoh3jDlKex9c/lbyZLD+9tUhgkWG4pKk9RIyzzyLC X-Received: by 2002:a17:90a:2163:: with SMTP id a90mr3382978pje.3.1561610930333; Wed, 26 Jun 2019 21:48:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561610930; cv=none; d=google.com; s=arc-20160816; b=LklRA3MMNqUgyKN9TN03mzO2uvLQdM9kPJ6HGO8tbuTvRyASYYrOHy+O1WnVkXB8EG UjuZsA3K/jCPxeCUe0Q2tcSpigCm33kuktAac1SNWsSWg3Kdlu2yiic2HD2vVLbHyj9l nZ4O+DpBrt1N+l/RloN8KWSiMBBrnVqI+GdtnH0EmTi696aXFR1vfIFbOA/cy98IjFIy vu7gwn1l5uZC7VnJVko35GAFEIToPhDKXQDEnNRDqc/JV2YkA2eRNbUj3MMgvwXcEQFm l6qbTE8ifk1XxqiQdETjAm3yKoFaR5sC27Fn/9hDQVlM8FtVdp/TeO+s1ZB61F803WvT 7Adg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=fFCugwwdiwgh8+6NJat+j6t1/UJ3sSe1kqP9UMErh78=; b=A4KDqHkrh+SPLJqYqpcq0jyaC0rwAzOyEIj1BuTjbyxMQDsz+c+hJCzAzIH3elaoIi u01DUAwUko5jINuy1TOtlgNpaq3SpQHP9A/ops+xLepBFP+BqanTSIWixBbnZELoRM9Q 412yfWEvh68przOKdi4AwiHPimmFSOp5L/JXWADYxVT9gZMXvrwk5+4y/Lgc/1GPThkt e/xtdXT520ihCQe6R39bFVBwSizz3RRRJzUBtCw/eYN1IZ+/lK7lHYNKcn5LJqrHdG4o xKRzk1SMDytuYigymTiww5LgOXxq8Op/4RhGFuHa4GXCw4tSa0UOTj7lN0EvBTiKXnfj YxKA== 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 m6si3885228pjk.92.2019.06.26.21.48.11; Wed, 26 Jun 2019 21:48:50 -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 S1727187AbfF0EsF (ORCPT + 99 others); Thu, 27 Jun 2019 00:48:05 -0400 Received: from ozlabs.org ([203.11.71.1]:53313 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726762AbfF0EsF (ORCPT ); Thu, 27 Jun 2019 00:48:05 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 45Z6pW1Pl7z9sCJ; Thu, 27 Jun 2019 14:48:02 +1000 (AEST) From: Michael Ellerman To: Anshuman Khandual , linux-mm@kvack.org Cc: Anshuman Khandual , Benjamin Herrenschmidt , Paul Mackerras , "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: Re: [PATCH] powerpc/64s/radix: Define arch_ioremap_p4d_supported() In-Reply-To: <1561555260-17335-1-git-send-email-anshuman.khandual@arm.com> References: <1561555260-17335-1-git-send-email-anshuman.khandual@arm.com> Date: Thu, 27 Jun 2019 14:48:00 +1000 Message-ID: <87d0iztz0f.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Anshuman Khandual writes: > 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. The easiest option is for this to be folded into your patch that creates the requirement for arch_ioremap_p4d_supported(). Andrew might do that for you, or you could send a v2. This looks fine from a powerpc POV: Acked-by: Michael Ellerman cheers > 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