Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp666052ybt; Mon, 6 Jul 2020 19:53:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxXMHSBzPnWNhRCBvz/AJswyBvgMy3wrxhtJUGQK984cdCbI80pi5rKuiAxHMRf+6qGF2y X-Received: by 2002:a17:907:1059:: with SMTP id oy25mr48865472ejb.90.1594090409747; Mon, 06 Jul 2020 19:53:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594090409; cv=none; d=google.com; s=arc-20160816; b=vVgSBsFe1Az44X6je4pX4hTAYGWE5zxe1TPerP0bXot+SD0hWbJUFI2eK0cya3DExj +cK0HuhuzAAqT4cyssJ2oGw4+WyAlPs7VqM3NJpcXpskYG+2MayRInRMls/CCMUnVXIe c6zpij/7cUckAqm7vb71K7oKfkQWe20iN0cwFvp21/eSGQXsl4njYm28xQLSwug6p7Mj d8UAjNRrVbrzwqYqmzm2aCDucFYpo3eBhAGrJJH2mqWouoz8or7CaKZfh2NECfpeikiS MKL8/JS4pKffEyI72uqvlZKrRKJxFDvTKyBuBxbMfdH22TPbO9xCZI38Dh2+HkBq5jGS jcrQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=JYHLauFPnWtT+mhbK3luKWopm/oGT2fxXYiZQWZB2cY=; b=RYQs7TsL92CQ/biG6nI2djUHrXpDlNEXL25KyLyE/HMPazj/D1GQIDANfNlZH9FUi8 yB+zxunOj4gNSN084rvjShUTw0rtN3IkDRerxAHB0fVd2IPmxjrMfi1nURVPg2L7A6w8 SzNzrbpimdX10G5mhTTq17bz2SQ3ybTto4UaVH8+f5k7Xk5KqeKhQ0sNzxrExw15RlrR BNynWWMN1ipHSsgqWAmfllg8gV7YND2t1wgE4sjzRScRdJEcpPV0Tho4O1IMSPPtYFHx 7jNdkdmqkPz21WOR+7RLZ3MMDW0dQbK3ecFddy2MVm0zqmQtrDNAC3h3iy+ljKUH/Pk7 /KZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b="s9a3G/NG"; 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 mc14si13326797ejb.282.2020.07.06.19.53.06; Mon, 06 Jul 2020 19:53:29 -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=casper.20170209 header.b="s9a3G/NG"; 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 S1727945AbgGGCw6 (ORCPT + 99 others); Mon, 6 Jul 2020 22:52:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726434AbgGGCw6 (ORCPT ); Mon, 6 Jul 2020 22:52:58 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15CD1C061755; Mon, 6 Jul 2020 19:52:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description; bh=JYHLauFPnWtT+mhbK3luKWopm/oGT2fxXYiZQWZB2cY=; b=s9a3G/NG0zUAZVwjTQwOLUO0LO ++sfl2mBc4bxaft+PLjx9DQep8vUP73F8t5X9XkVumXZ0v1WflITxYhAnkAu+ttf6vhL/Ap6QRKUO U+vzmgSDVscLoPb+pvFB/zLL2W7do0EGuQorKSFUvYkcBrBRLfDZNbmqUDKPuZ7wSuIFGawxV6kHr QV/a63xeXPG90CgVU+y9Lm50AAFnz4H+bJcNNv4ffYN4dfcGHs7T14p8K+rKdOl/xlsfKYC0aFir5 ATL7bDhGacBoJMVcjhKMt9BUvhjezGPFi/fp4HyLKUTAHp+ZeogcoNKVPND1iyJlRPpAYP4960jpH XgKqdNMQ==; Received: from [2601:1c0:6280:3f0:897c:6038:c71d:ecac] by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jsdj4-0001qH-Ch; Tue, 07 Jul 2020 02:52:55 +0000 Subject: Re: linux-next: Tree for Jul 6 (mm/memory_failure.c) To: Joonsoo Kim Cc: Stephen Rothwell , Linux Next Mailing List , Linux Kernel Mailing List , Andrew Morton References: <20200706174001.2d316826@canb.auug.org.au> <20200707003500.GA27886@js1304-desktop> From: Randy Dunlap Message-ID: <207e6a52-7ca0-250d-de89-7297285d9d13@infradead.org> Date: Mon, 6 Jul 2020 19:52:50 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20200707003500.GA27886@js1304-desktop> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/6/20 5:35 PM, Joonsoo Kim wrote: > On Mon, Jul 06, 2020 at 09:59:06AM -0700, Randy Dunlap wrote: >> On 7/6/20 12:40 AM, Stephen Rothwell wrote: >>> Hi all, >>> >>> Changes since 20200703: >>> >> >> on i386: >> >> when CONFIG_MIGRATION is not set/enabled: >> >> ../mm/memory-failure.c: In function ‘new_page’: >> ../mm/memory-failure.c:1688:9: error: implicit declaration of function ‘alloc_migration_target’; did you mean ‘alloc_migrate_target’? [-Werror=implicit-function-declaration] >> return alloc_migration_target(p, (unsigned long)&mtc); >> ^~~~~~~~~~~~~~~~~~~~~~ >> >> >> -- >> ~Randy >> Reported-by: Randy Dunlap > > Hello, > > Thanks for reporting. > > Below is the fix for this error. > Andrew, Could you squash this fix into the patch, > "mm-migrate-make-a-standard-target-allocation-function.patch"? > > Thanks. > > > ------------------->8------------------- > From 5fac269125dfb2d03e38a75319305e0e70b23a4b Mon Sep 17 00:00:00 2001 > From: Joonsoo Kim > Date: Tue, 7 Jul 2020 09:16:58 +0900 > Subject: [PATCH] mm/migrate: fix for > mm-migrate-make-a-standard-target-allocation-function.patch in mm tree > > new_page_nodemask() is renamed to alloc_migration_target in > mm-migrate-make-a-standard-target-allocation-function.patch, but, > one declaration for !CONFIG_MIGRATION case is missed. This patch fixes it. > > Reported-by: Randy Dunlap > Signed-off-by: Joonsoo Kim Works for me. Thanks. Acked-by: Randy Dunlap # build-tested > --- > include/linux/migrate.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/include/linux/migrate.h b/include/linux/migrate.h > index 5e9c866..cc56f0d 100644 > --- a/include/linux/migrate.h > +++ b/include/linux/migrate.h > @@ -60,8 +60,8 @@ static inline int migrate_pages(struct list_head *l, new_page_t new, > free_page_t free, unsigned long private, enum migrate_mode mode, > int reason) > { return -ENOSYS; } > -static inline struct page *new_page_nodemask(struct page *page, > - int preferred_nid, nodemask_t *nodemask) > +static inline struct page *alloc_migration_target(struct page *page, > + unsigned long private) > { return NULL; } > static inline int isolate_movable_page(struct page *page, isolate_mode_t mode) > { return -EBUSY; } > -- ~Randy