x86: export set_memory_ro() and set_memory_rw() calls
Subsystems (4)
PATCH 1/3 x86: export set_memory_ro() and set_memory_rw() calls
From: Bruce Allan <[email protected]>
Export set_memory_ro() and set_memory_rw() calls needed by a follow-on patch to the e1000e driver.
Signed-off-by Bruce Allan <[email protected]>
Signed-off-by Jeff Kirsher <[email protected]>
---
arch/x86/mm/pageattr.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
arch/x86/mm/pageattr.c +2 -0
@@ -906,11 +906,13 @@ int set_memory_ro(unsigned long addr, int numpages) {return change_page_attr_clear (addr, numpages,__pgprot (_PAGE_RW)); } +EXPORT_SYMBOL (set_memory_ro);int set_memory_rw (unsigned long addr,int numpages) {return change_page_attr_set (addr, numpages,__pgprot (_PAGE_RW)); } +EXPORT_SYMBOL (set_memory_rw);int set_memory_np (unsigned long addr,int numpages) {