]> xenbits.xensource.com Git - people/ssmith/nc2-2.6.27.bak/.git/commitdiff
sys_mlock and sys_munlock are needed to build the microcode driver as a module.
authorSteven Smith <ssmith@weybridge.uk.xensource.com>
Thu, 28 May 2009 10:54:19 +0000 (11:54 +0100)
committerSteven Smith <ssmith@weybridge.uk.xensource.com>
Thu, 28 May 2009 10:54:19 +0000 (11:54 +0100)
Index: tmp-mlock/mm/mlock.c
===================================================================

mm/mlock.c

index 73ee3fa330856586b3b3bbf7a201d7ae5afd2c78..3d9987bffc160ed1e1695f22a8f3a6a9cae533db 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>
 #include <linux/sched.h>
 #include <linux/module.h>
@@ -155,6 +156,7 @@ SYSCALL_DEFINE2(mlock, unsigned long, start, size_t, len)
        up_write(&current->mm->mmap_sem);
        return error;
 }
+EXPORT_SYMBOL_GPL(sys_mlock);
 
 SYSCALL_DEFINE2(munlock, unsigned long, start, size_t, len)
 {
@@ -167,6 +169,7 @@ SYSCALL_DEFINE2(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)
 {