From 7363c82558ba48e713c02e0958b5a5cc78f51d5a Mon Sep 17 00:00:00 2001 From: James Hogan Date: Wed, 19 Jun 2013 10:05:20 +1000 Subject: [PATCH] metag: fix mm/hugetlb.c build breakage Commit 106c992a5ebef ("mm/hugetlb: add more arch-defined huge_pte functions") merged in v3.10-rc1. The above commit added an include of to each architecture's (except s390). Unfortunately metag was missed which resulted in build errors when hugetlbfs is enabled (see below). Add the include for metag too to fix the build errors. mm/hugetlb.c In function 'make_huge_pte': mm/hugetlb.c +2250 : error: implicit declaration of function 'huge_pte_mkwrite' mm/hugetlb.c +2250 : error: implicit declaration of function 'huge_pte_mkdirty' mm/hugetlb.c +2250 : error: implicit declaration of function 'mk_huge_pte' mm/hugetlb.c +2251 : error: incompatible types in assignment mm/hugetlb.c +2254 : error: incompatible type for argument 1 of 'huge_pte_wrprotect' mm/hugetlb.c In function 'set_huge_ptep_writable': mm/hugetlb.c +2268 : error: incompatible types in assignment mm/hugetlb.c In function '__unmap_hugepage_range': mm/hugetlb.c +2383 : error: implicit declaration of function 'huge_pte_clear' mm/hugetlb.c +2407 : error: implicit declaration of function 'huge_pte_dirty' mm/hugetlb.c In function 'hugetlb_fault': mm/hugetlb.c +2860 : error: implicit declaration of function 'huge_pte_write' mm/hugetlb.c +2895 : error: incompatible types in assignment mm/hugetlb.c In function 'hugetlb_change_protection': mm/hugetlb.c +3047 : error: implicit declaration of function 'huge_pte_modify' mm/hugetlb.c +3047 : error: incompatible type for argument 1 of 'pte_mkhuge' make[1]: *** [mm/hugetlb.o] Error 1 make: *** [mm/hugetlb.o] Error 2 Signed-off-by: James Hogan Cc: Gerald Schaefer Cc: Michal Hocko Signed-off-by: Andrew Morton --- arch/metag/include/asm/hugetlb.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/metag/include/asm/hugetlb.h b/arch/metag/include/asm/hugetlb.h index f545477e61f3..471f481e67f3 100644 --- a/arch/metag/include/asm/hugetlb.h +++ b/arch/metag/include/asm/hugetlb.h @@ -2,6 +2,7 @@ #define _ASM_METAG_HUGETLB_H #include +#include static inline int is_hugepage_only_range(struct mm_struct *mm, -- 2.39.5