Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4BB1DC433E0 for ; Fri, 5 Feb 2021 23:20:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0978964FAD for ; Fri, 5 Feb 2021 23:20:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229793AbhBEXTm (ORCPT ); Fri, 5 Feb 2021 18:19:42 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:29557 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231197AbhBEKLH (ORCPT ); Fri, 5 Feb 2021 05:11:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612519727; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XQAmpeiwjTLNRxNDH8Fc0DNgLit8cCAihA/yreIw74s=; b=SmHKGsH8BlYA+/sxYVdBVLNhEUUN5pQUmzzh35IfuVRgpesEuWfyh76O/HVxp2GZ7ege0c vuTy2xEQg14C4D6tQaebJF5AiUnHlYYHPFy34bJq2/tMvJb/F6fdb2BgLOvZHtn8DNGABj IkmhUyMhS73p1JYiWeO+sI90foEkaP4= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-68-19LXNp7RN261zTwnnl0Gmw-1; Fri, 05 Feb 2021 05:08:43 -0500 X-MC-Unique: 19LXNp7RN261zTwnnl0Gmw-1 Received: by mail-wr1-f71.google.com with SMTP id j8so5017191wrx.17 for ; Fri, 05 Feb 2021 02:08:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:references:from:subject:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=XQAmpeiwjTLNRxNDH8Fc0DNgLit8cCAihA/yreIw74s=; b=CP8hjQG1CZdCLeOuVRPtpSwd9KFtKZiu5S4fDZ4iowMNKaUKl8rB/MJN6rSPr5RQlw dZI03dZyaWwTtuiShH8mA9hwzjte/0Mxe9FXnUPf8TupxX6A4ZFykKUIrOvUMMQQSpWv qt2LbUkNY8OceIN0YnjwXUbqta5P/k8qvDKro+BuxkAL9xdhpPwdiUnVDa0Hxwxa80k/ LslddOaGtASTF4tTV/dmh08F0dmUwDVOWKTZG2jth7/XIQfflb/1BugaSdKQ63Yee+jD u2yYmmnV0iM/KC6qCtnxmKwgIloBcgx5xN4O+hxzqAq9mQVjyjsFfyP0ya/zDPhIb8Lt IIBQ== X-Gm-Message-State: AOAM531jYuWUE+ves9YSdOBErIZ6wLptLTtToyM2rOdSr4vI7kSv1q3U i1+dhFborv0LfmXQlERcv0DqafR0IcgcLzmciDYEVtSOI/3Bjxb7XXVUTNwo/twk5P0HFJlU35d k3oVZljBiFg+JOG06JsKrGrdenK3BCMBBVCGFhg1jiMxU9q4eoHuMEFiaD3NhQLFKr2XVVZJfKQ == X-Received: by 2002:adf:f303:: with SMTP id i3mr4098916wro.60.1612519721787; Fri, 05 Feb 2021 02:08:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJygnV5PVQbw8IB48V2+j6ejVS7WeCWn7No/UZJIzRZQZzqTlpByGGeGJZYMFj/b3HUjRWFm7w== X-Received: by 2002:adf:f303:: with SMTP id i3mr4098899wro.60.1612519721586; Fri, 05 Feb 2021 02:08:41 -0800 (PST) Received: from ?IPv6:2001:b07:6468:f312:c8dd:75d4:99ab:290a? ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.gmail.com with ESMTPSA id y63sm8267192wmd.21.2021.02.05.02.08.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 05 Feb 2021 02:08:40 -0800 (PST) To: Stephen Rothwell , KVM Cc: Linux Kernel Mailing List , Linux Next Mailing List References: <20210205160224.279c6169@canb.auug.org.au> From: Paolo Bonzini Subject: Re: linux-next: build failure after merge of the kvm tree Message-ID: Date: Fri, 5 Feb 2021 11:08:39 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <20210205160224.279c6169@canb.auug.org.au> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-next@vger.kernel.org On 05/02/21 06:02, Stephen Rothwell wrote: > Hi all, > > After merging the kvm tree, today's linux-next build (powerpc > ppc64_defconfig) failed like this: > > ERROR: modpost: ".follow_pte" [arch/powerpc/kvm/kvm.ko] undefined! > > Caused by commit > > bd2fae8da794 ("KVM: do not assume PTE is writable after follow_pfn") > > follow_pte is not EXPORTed. > > I have used the kvm tree from next-20210204 for today. > Stephen, can you squash in the following for the time being? diff --git a/mm/memory.c b/mm/memory.c index feff48e1465a..15cbd10afd59 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -4775,6 +4775,7 @@ int follow_pte(struct mm_struct *mm, unsigned long address, out: return -EINVAL; } +EXPORT_SYMBOL_GPL(follow_pte); /** * follow_pfn - look up PFN at a user virtual address A similar patch has been posted already, but Jason Gunthorpe asked to add some kerneldoc comments. Therefore it will not be in kvm/next for a few more days. Paolo