]> git.baikalelectronics.ru Git - kernel.git/commit
mm: <asm-generic/pgtable.h> must include <linux/mm_types.h>
authorBen Hutchings <ben@decadent.org.uk>
Sun, 27 Feb 2011 05:41:35 +0000 (05:41 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 1 Mar 2011 01:46:49 +0000 (17:46 -0800)
commit55d14f5aac4c61f4ea3598397b881382a9098aa5
tree30127c1231cff88df019fa775a630a1bb2374a31
parent31993b7127a55a5a5b5fd84a6e6bc182f78f562a
mm: <asm-generic/pgtable.h> must include <linux/mm_types.h>

Commit 1eb711f21676 ("thp: add pmd mangling generic functions") replaced
some macros in <asm-generic/pgtable.h> with inline functions.

If the functions are to be defined (not all architectures need them)
then struct vm_area_struct must be defined first.  So include
<linux/mm_types.h>.

Fixes a build failure seen in Debian:

    CC [M]  drivers/media/dvb/mantis/mantis_pci.o
  In file included from arch/arm/include/asm/pgtable.h:460,
                   from drivers/media/dvb/mantis/mantis_pci.c:25:
  include/asm-generic/pgtable.h: In function 'ptep_test_and_clear_young':
  include/asm-generic/pgtable.h:29: error: dereferencing pointer to incomplete type

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/asm-generic/pgtable.h