|
@@ -651,15 +651,13 @@ EXPORT_SYMBOL_GPL(vma_kernel_pagesize);
|
|
|
/*
|
|
|
* Return the page size being used by the MMU to back a VMA. In the majority
|
|
|
* of cases, the page size used by the kernel matches the MMU size. On
|
|
|
- * architectures where it differs, an architecture-specific version of this
|
|
|
- * function is required.
|
|
|
+ * architectures where it differs, an architecture-specific 'strong'
|
|
|
+ * version of this symbol is required.
|
|
|
*/
|
|
|
-#ifndef vma_mmu_pagesize
|
|
|
-unsigned long vma_mmu_pagesize(struct vm_area_struct *vma)
|
|
|
+__weak unsigned long vma_mmu_pagesize(struct vm_area_struct *vma)
|
|
|
{
|
|
|
return vma_kernel_pagesize(vma);
|
|
|
}
|
|
|
-#endif
|
|
|
|
|
|
/*
|
|
|
* Flags for MAP_PRIVATE reservations. These are stored in the bottom
|