Skip to contentSkip to conversation

s390: add missing pte_read function

PATCH New Heiko Carstens 1 participant 1 message Jan 5, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 s390: add missing pte_read function

Hi Andrew,

this patch adds the missing pte_read function and makes s390 compile again.

Thanks,
Heiko

include/asm-s390/pgtable.h +8 -0
diff -urN linux-2.6/include/asm-s390/pgtable.h linux-2.6-patched/include/asm-s390/pgtable.h
@@ -418,6 +418,14 @@
 	return 0;
 }
 
+extern inline int pte_read(pte_t pte)
+{
+	/* All pages are readable since we don't use the fetch
+	 * protection bit in the storage key.
+	 */
+	return 1;
+}
+
 /*
  * pgd/pmd/pte modification functions
  */