From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754626AbbK0OGV (ORCPT ); Fri, 27 Nov 2015 09:06:21 -0500 Received: from mx2.suse.de ([195.135.220.15]:60707 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753457AbbK0OGS (ORCPT ); Fri, 27 Nov 2015 09:06:18 -0500 Subject: Re: [PATCH] mm, page_owner: only track migration if enabled To: Arnd Bergmann , Andrew Morton References: <3209032.Njpu4mxStH@wuerfel> Cc: Joonsoo Kim , Minchan Kim , Sasha Levin , "Kirill A. Shutemov" , Mel Gorman , Michal Hocko , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org From: Vlastimil Babka Message-ID: <56586356.3030308@suse.cz> Date: Fri, 27 Nov 2015 15:06:14 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <3209032.Njpu4mxStH@wuerfel> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/27/2015 02:58 PM, Arnd Bergmann wrote: > The newly added code to print page ownership in dump_page fails > to link when CONFIG_MIGRATION is disabled: > > mm/built-in.o: In function `print_page_owner': > frame_vector.c:(.text+0x72358): undefined reference to `migrate_reason_names' > > This changes the two users of migrate_reason_names to first check > CONFIG_MIGRATION, which avoids the error. > > Signed-off-by: Arnd Bergmann > Fixes: cf7ec391dae4 ("mm, page_owner: dump page owner info from dump_page()") > --- > Found on yesterday's linux-next with ARM randconfig builds. The patch > that introduced this is currently in Andrews tree. > > If you don't already have a fix, please apply this one on top, or fold > it into the original commit. Thanks. I posted a different one yesterday: http://marc.info/?l=linux-mm&m=144853435200591&w=2