]> xenbits.xensource.com Git - xenclient/kernel.git/commitdiff
sys_mlock and sys_munlock are needed to build the microcode driver as a module. cdrom-sysctl-info.patch
authort_jeang <devnull@localhost>
Tue, 6 Jan 2009 12:06:00 +0000 (12:06 +0000)
committert_jeang <devnull@localhost>
Tue, 6 Jan 2009 12:06:00 +0000 (12:06 +0000)
mm/mlock.c

index b90c59573abf5da8bd00dcc7b224796ce66befc5..6730e6efe72e1a4a1b79dc84db1f7f9e2fd17157 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/mman.h>
 #include <linux/mm.h>
 #include <linux/mempolicy.h>
+#include <linux/module.h>
 #include <linux/syscalls.h>
 
 
@@ -146,6 +147,7 @@ asmlinkage long sys_mlock(unsigned long start, size_t len)
        up_write(&current->mm->mmap_sem);
        return error;
 }
+EXPORT_SYMBOL_GPL(sys_mlock);
 
 asmlinkage long sys_munlock(unsigned long start, size_t len)
 {
@@ -158,6 +160,7 @@ asmlinkage long sys_munlock(unsigned long start, size_t len)
        up_write(&current->mm->mmap_sem);
        return ret;
 }
+EXPORT_SYMBOL_GPL(sys_munlock);
 
 static int do_mlockall(int flags)
 {