]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - mm/vmalloc.c
[PATCH] DocBook: changes and extensions to the kernel documentation
[net-next-2.6.git] / mm / vmalloc.c
index c6182f6f13058a2b25188df94f3f6548e67d18e9..2bd83e5c2bbf0c7e8f12af4ea2f7b3b749a1a6b4 100644 (file)
@@ -475,6 +475,10 @@ void *vmalloc(unsigned long size)
 
 EXPORT_SYMBOL(vmalloc);
 
+#ifndef PAGE_KERNEL_EXEC
+# define PAGE_KERNEL_EXEC PAGE_KERNEL
+#endif
+
 /**
  *     vmalloc_exec  -  allocate virtually contiguous, executable memory
  *
@@ -488,10 +492,6 @@ EXPORT_SYMBOL(vmalloc);
  *     use __vmalloc() instead.
  */
 
-#ifndef PAGE_KERNEL_EXEC
-# define PAGE_KERNEL_EXEC PAGE_KERNEL
-#endif
-
 void *vmalloc_exec(unsigned long size)
 {
        return __vmalloc(size, GFP_KERNEL | __GFP_HIGHMEM, PAGE_KERNEL_EXEC);