]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/blobdiff - include/linux/mm.h
thp: do_huge_pmd_wp_page(): handle huge zero page
[can-eth-gw-linux.git] / include / linux / mm.h
index 4af4f0b1be4cad5cf231d565f5116745aa969a35..4b80bad4a367630e6126ade2c7ae3e51b7a36368 100644 (file)
@@ -516,6 +516,14 @@ static inline pte_t maybe_mkwrite(pte_t pte, struct vm_area_struct *vma)
 }
 #endif
 
+#ifndef my_zero_pfn
+static inline unsigned long my_zero_pfn(unsigned long addr)
+{
+       extern unsigned long zero_pfn;
+       return zero_pfn;
+}
+#endif
+
 /*
  * Multiple processes may "see" the same page. E.g. for untouched
  * mappings of /dev/null, all processes see the same page full of