mm: provide early_memremap_ro to establish read-only mapping
[sfrench/cifs-2.6.git] / include / asm-generic / fixmap.h
index f23174fb9ec4340378df59b5cc89b43ecf342bec..1cbb8338edf391bd83c4d1b0bc0dff2cbbe56e75 100644 (file)
@@ -46,6 +46,9 @@ static inline unsigned long virt_to_fix(const unsigned long vaddr)
 #ifndef FIXMAP_PAGE_NORMAL
 #define FIXMAP_PAGE_NORMAL PAGE_KERNEL
 #endif
+#if !defined(FIXMAP_PAGE_RO) && defined(PAGE_KERNEL_RO)
+#define FIXMAP_PAGE_RO PAGE_KERNEL_RO
+#endif
 #ifndef FIXMAP_PAGE_NOCACHE
 #define FIXMAP_PAGE_NOCACHE PAGE_KERNEL_NOCACHE
 #endif