]> git.baikalelectronics.ru Git - kernel.git/commit
metag: fix mm/hugetlb.c build breakage
authorJames Hogan <james.hogan@imgtec.com>
Fri, 14 Jun 2013 09:31:01 +0000 (10:31 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 19 Jun 2013 16:23:34 +0000 (06:23 -1000)
commit018b0db9e9b2da79d21b3d2ff3482659a14db033
treeadbb6974cd223eed41492b5c52e97da96f7c6992
parent89782292a52275a57dec5b67969d29f2e093f3f6
metag: fix mm/hugetlb.c build breakage

Commit f3ff34d48cea ("mm/hugetlb: add more arch-defined huge_pte
functions") added an include of <asm-generic/hugetlb.h> to each
architecture's <asm/hugetlb.h> (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'
  ...

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/metag/include/asm/hugetlb.h