|
@@ -3831,7 +3831,8 @@ static inline int create_huge_pmd(struct vm_fault *vmf)
|
|
return VM_FAULT_FALLBACK;
|
|
return VM_FAULT_FALLBACK;
|
|
}
|
|
}
|
|
|
|
|
|
-static int wp_huge_pmd(struct vm_fault *vmf, pmd_t orig_pmd)
|
|
|
|
|
|
+/* `inline' is required to avoid gcc 4.1.2 build error */
|
|
|
|
+static inline int wp_huge_pmd(struct vm_fault *vmf, pmd_t orig_pmd)
|
|
{
|
|
{
|
|
if (vma_is_anonymous(vmf->vma))
|
|
if (vma_is_anonymous(vmf->vma))
|
|
return do_huge_pmd_wp_page(vmf, orig_pmd);
|
|
return do_huge_pmd_wp_page(vmf, orig_pmd);
|