Re: [PATCH] memcg: include linux/mm.h

2015-10-16 Thread Kirill A. Shutemov
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

[PATCH] memcg: include linux/mm.h

2015-10-16 Thread Arnd Bergmann
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-d