From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f71.google.com (mail-wm0-f71.google.com [74.125.82.71]) by kanga.kvack.org (Postfix) with ESMTP id F39736B025E for ; Mon, 14 Nov 2016 15:42:21 -0500 (EST) Received: by mail-wm0-f71.google.com with SMTP id a20so34527868wme.5 for ; Mon, 14 Nov 2016 12:42:21 -0800 (PST) Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com. [2a00:1450:400c:c09::241]) by mx.google.com with ESMTPS id sd16si15740936wjb.290.2016.11.14.12.42.20 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Nov 2016 12:42:20 -0800 (PST) Received: by mail-wm0-x241.google.com with SMTP id u144so18841212wmu.0 for ; Mon, 14 Nov 2016 12:42:20 -0800 (PST) Date: Mon, 14 Nov 2016 23:42:18 +0300 From: "Kirill A. Shutemov" Subject: Re: [PATCH v3] mm, thp: propagation of conditional compilation in khugepaged.c Message-ID: <20161114204218.GC12829@node.shutemov.name> References: <20161114203448.24197-1-jeremy.lefaure@lse.epita.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20161114203448.24197-1-jeremy.lefaure@lse.epita.fr> Sender: owner-linux-mm@kvack.org List-ID: To: =?iso-8859-1?B?Suly6W15?= Lefaure Cc: Andrew Morton , "Kirill A. Shutemov" , linux-mm@kvack.org On Mon, Nov 14, 2016 at 03:34:48PM -0500, Jeremy Lefaure wrote: > Commit b46e756f5e47 ("thp: extract khugepaged from mm/huge_memory.c") > moved code from huge_memory.c to khugepaged.c. Some of this code should > be compiled only when CONFIG_SYSFS is enabled but the condition around > this code was not moved into khugepaged.c. The result is a compilation > error when CONFIG_SYSFS is disabled: > > mm/built-in.o: In function `khugepaged_defrag_store': > khugepaged.c:(.text+0x2d095): undefined reference to > `single_hugepage_flag_store' > mm/built-in.o: In function `khugepaged_defrag_show': > khugepaged.c:(.text+0x2d0ab): undefined reference to > `single_hugepage_flag_show' > > This commit adds the #ifdef CONFIG_SYSFS around the code related to > sysfs. > > Signed-off-by: Jeremy Lefaure Acked-by: Kirill A. Shutemov -- Kirill A. Shutemov -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org