From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932937AbbJPUs3 (ORCPT ); Fri, 16 Oct 2015 16:48:29 -0400 Received: from mail-wi0-f179.google.com ([209.85.212.179]:33514 "EHLO mail-wi0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932668AbbJPUs1 (ORCPT ); Fri, 16 Oct 2015 16:48:27 -0400 Date: Fri, 16 Oct 2015 23:48:25 +0300 From: "Kirill A. Shutemov" To: Arnd Bergmann Cc: Andrew Morton , Vladimir Davydov , linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Michal Hocko , Johannes Weiner Subject: Re: [PATCH] memcg: include linux/mm.h Message-ID: <20151016204825.GB1817@node.shutemov.name> References: <14714191.7FdLxZ8X79@wuerfel> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <14714191.7FdLxZ8X79@wuerfel> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 16, 2015 at 10:03:31PM +0200, Arnd Bergmann wrote: > A recent change to the memcg code added a call to virt_to_head_page, > which is declared in linux/mm.h, but this is not necessarily included > here and will cause compile errors: > > include/linux/memcontrol.h:841:9: error: implicit declaration of function 'virt_to_head_page' [-Werror=implicit-function-declaration] > > This adds an explicit include statement that gets rid of the error. > > Signed-off-by: Arnd Bergmann > Fixes: 1ead4c071978 ("memcg: simplify and inline __mem_cgroup_from_kmem") http://lkml.kernel.org/g/20151016131726.GA602@node.shutemov.name -- Kirill A. Shutemov