From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx201.postini.com [74.125.245.201]) by kanga.kvack.org (Postfix) with SMTP id D6EED6B005D for ; Mon, 15 Oct 2012 16:51:13 -0400 (EDT) Received: by mail-pa0-f41.google.com with SMTP id fa10so5910843pad.14 for ; Mon, 15 Oct 2012 13:51:13 -0700 (PDT) Date: Mon, 15 Oct 2012 13:51:10 -0700 (PDT) From: David Rientjes Subject: Re: [PATCH] mm: huge_memory: Fix build error. In-Reply-To: <20121015114456.GA30314@linux-mips.org> Message-ID: References: <20121015114456.GA30314@linux-mips.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: Ralf Baechle Cc: Linus Torvalds , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-mips@linux-mips.org, David Daney On Mon, 15 Oct 2012, Ralf Baechle wrote: > Certain configurations won't implicitly pull in resulting > in the following build error: > > mm/huge_memory.c: In function 'release_pte_page': > mm/huge_memory.c:1697:2: error: implicit declaration of function 'unlock_page' [-Werror=implicit-function-declaration] > mm/huge_memory.c: In function '__collapse_huge_page_isolate': > mm/huge_memory.c:1757:3: error: implicit declaration of function 'trylock_page' [-Werror=implicit-function-declaration] > cc1: some warnings being treated as errors > This is because CONFIG_HUGETLB_PAGE=n so mempolicy.h doesn't include pagemap.h? > Reported-by: David Daney > Signed-off-by: Ralf Baechle Acked-by: David Rientjes -- 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