Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp3057234rwo; Thu, 3 Aug 2023 21:19:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHleoV3i9U9yBrDDrcmDB2tGSw0SJ5X4FBPqepq7Zt2THL6VuCf//UyzxsHRjPfoMIP97Vi X-Received: by 2002:a05:6870:63a7:b0:1bb:7200:7601 with SMTP id t39-20020a05687063a700b001bb72007601mr656282oap.51.1691122758330; Thu, 03 Aug 2023 21:19:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691122758; cv=none; d=google.com; s=arc-20160816; b=QmEve0VeOZy1ay63LDTkHyL/zTuTCHX7YeXWyF+PwDpqXnYu9Fb85ZzLDDAcoJE1Fd E58VCmbX9DR43/PCscungtAgNIFHrejnOJ1mcp+OwV3hCP16IRA4NmVb4l3u5vzgXozx RhkklLWmvMIf2AO/EZg3/lrJJz4HA6GnRhg1rDo87z5jsxlVNQc0YBB7JmVnNnkcsfx+ mWmxEOiI5ltZugPUPJ3g0q6jUopkZSLeyjXCWaQuBZqPhXFcRZPsEtEpiapYPk5VXF5m RPQS4khs0r17clbXnN18nSs7LsHwNcmh72Y41gFxJQR6zwUpsVvI2MEec3Qeyo2QzCRm vHXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=F+lJKFltZ+yQxd96NjAiSlGEaIJzdn+HIXjUUFBSS5c=; fh=p6PnpsOgY6Jv+vHx+MRufyRWLwk39hwWjyM2fUP8P4A=; b=D4My/QZtjm3rVKHzTe35n3Nkg4ZEBF6LtI3NsDCW/Ppy5PzSZmAsu7s00Xocj328KB xHI1RTR24SE4WTFNti12pzWYtDt0H5CgViPTDvKeC1GS0jfzcFOaAHd7YtDJMoLeGBuw Gofq6SjKEETlTfQLAqn9qya5x0iqvrsgNnyZyBFGdR81CLosKo7AYbDRigcnjAe/NPVs u7CFhn1iyCdjyyuD1LEsiLSSNVQLF2wW/MvEvOYITB8aE4fQcPE6xtD/v3XlummBNSZ8 YvURamQU7l6v1btZsQ7dRbtLCggTvoeIaxZ7d1S0LShR1QiLXwC+aROG7Q+P/lSu/zUX BRtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=UKi7MCXm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ls14-20020a17090b350e00b002686dc89da0si4673343pjb.20.2023.08.03.21.19.05; Thu, 03 Aug 2023 21:19:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=UKi7MCXm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232615AbjHDDu2 (ORCPT + 99 others); Thu, 3 Aug 2023 23:50:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232249AbjHDDuV (ORCPT ); Thu, 3 Aug 2023 23:50:21 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3DB84684; Thu, 3 Aug 2023 20:50:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=F+lJKFltZ+yQxd96NjAiSlGEaIJzdn+HIXjUUFBSS5c=; b=UKi7MCXmu/eFaLtMvBvufRKVdU DaCDf7FpNDWKsVmLjSyGc6/yxeFqe3Y81Jv2wMiXxhN/acrrYIe+cLWVA8Ngm3flCWpw67hZ8Cq4h 8XatmpxPtkcPu+sDGM5Cv6LLrV48z7za5rh77704UnbEhMUUkjRA9o79maxq1G6k7Ln4V5cixK8H2 a3fsMVVuWgMsVAnQo2mUm+DynVTptf6Dewygne5j2FslBjF8LOOfG+zqFWNk2xZgABdUpXOFJoksb QfmLEyGJDj8wEgWRD3ZdYiXVJzfDHWttImP7dp1vRY5vAlUPDEydhyidN3Jx5OrS6NKXkVdN48mXp yq8AMDtg==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qRlpN-007del-Ap; Fri, 04 Aug 2023 03:50:13 +0000 Date: Fri, 4 Aug 2023 04:50:13 +0100 From: Matthew Wilcox To: Nathan Chancellor Cc: Andrew Morton , linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Mike Rapoport , Michael Ellerman , Nicholas Piggin , Christophe Leroy , linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH v6 21/38] powerpc: Implement the new page table range API Message-ID: References: <20230802151406.3735276-1-willy@infradead.org> <20230802151406.3735276-22-willy@infradead.org> <20230803233814.GA2515372@dev-arch.thelio-3990X> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230803233814.GA2515372@dev-arch.thelio-3990X> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 03, 2023 at 04:38:14PM -0700, Nathan Chancellor wrote: > > -EXPORT_SYMBOL(flush_dcache_icache_page); > > Apologies if this has already been fixed or reported, I searched lore > and did not find anything. The dropping of this export in combination > with the conversion above appears to cause ARCH=powerpc allmodconfig to > fail with: > > ERROR: modpost: "flush_dcache_icache_folio" [arch/powerpc/kvm/kvm-pr.ko] undefined! > > I don't know if this should be re-exported or not but that does > obviously resolve the issue. Well, that was clumsy of me. I (and the Intel build bot) did test several build combos, but clearly didn't manage to find a config that showed this problem. Andrew, a fix patch for you to integrate, if you would: diff --git a/arch/powerpc/mm/cacheflush.c b/arch/powerpc/mm/cacheflush.c index 8760d2223abe..15189592da09 100644 --- a/arch/powerpc/mm/cacheflush.c +++ b/arch/powerpc/mm/cacheflush.c @@ -172,6 +172,7 @@ void flush_dcache_icache_folio(struct folio *folio) flush_dcache_icache_phys((pfn + i) * PAGE_SIZE); } } +EXPORT_SYMBOL(flush_dcache_icache_folio); void clear_user_page(void *page, unsigned long vaddr, struct page *pg) {