Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mm: <asm-generic/pgtable.h> must include <linux/mm_types.h>

Commit e2cda3226481 ("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>

authored by

Ben Hutchings and committed by
Linus Torvalds
fbd71844 493f3358

+2
+2
include/asm-generic/pgtable.h
··· 4 4 #ifndef __ASSEMBLY__ 5 5 #ifdef CONFIG_MMU 6 6 7 + #include <linux/mm_types.h> 8 + 7 9 #ifndef __HAVE_ARCH_PTEP_SET_ACCESS_FLAGS 8 10 extern int ptep_set_access_flags(struct vm_area_struct *vma, 9 11 unsigned long address, pte_t *ptep,