direct-io.hg

changeset 8672:2e82fd7a6921

Need to include module.h to get EXPORT_SYMBOL macros.
Export xen driver util functions with GPL tag.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Fri Jan 27 12:48:32 2006 +0100 (2006-01-27)
parents 5fcc346d6fe0
children 17dc21008351
files linux-2.6-xen-sparse/drivers/xen/util.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/util.c	Thu Jan 26 11:31:28 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/util.c	Fri Jan 27 12:48:32 2006 +0100
     1.3 @@ -1,5 +1,6 @@
     1.4  #include <linux/config.h>
     1.5  #include <linux/mm.h>
     1.6 +#include <linux/module.h>
     1.7  #include <linux/slab.h>
     1.8  #include <linux/vmalloc.h>
     1.9  #include <asm/uaccess.h>
    1.10 @@ -31,7 +32,7 @@ struct vm_struct *alloc_vm_area(unsigned
    1.11  
    1.12  	return area;
    1.13  }
    1.14 -EXPORT_SYMBOL(alloc_vm_area);
    1.15 +EXPORT_SYMBOL_GPL(alloc_vm_area);
    1.16  
    1.17  void free_vm_area(struct vm_struct *area)
    1.18  {
    1.19 @@ -40,7 +41,7 @@ void free_vm_area(struct vm_struct *area
    1.20  	BUG_ON(ret != area);
    1.21  	kfree(area);
    1.22  }
    1.23 -EXPORT_SYMBOL(free_vm_area);
    1.24 +EXPORT_SYMBOL_GPL(free_vm_area);
    1.25  
    1.26  void lock_vm_area(struct vm_struct *area)
    1.27  {
    1.28 @@ -60,13 +61,13 @@ void lock_vm_area(struct vm_struct *area
    1.29  	for (i = 0; i < area->size; i += PAGE_SIZE)
    1.30  		(void)__get_user(c, (char __user *)area->addr + i);
    1.31  }
    1.32 -EXPORT_SYMBOL(lock_vm_area);
    1.33 +EXPORT_SYMBOL_GPL(lock_vm_area);
    1.34  
    1.35  void unlock_vm_area(struct vm_struct *area)
    1.36  {
    1.37  	preempt_enable();
    1.38  }
    1.39 -EXPORT_SYMBOL(unlock_vm_area);
    1.40 +EXPORT_SYMBOL_GPL(unlock_vm_area);
    1.41  
    1.42  /*
    1.43   * Local variables: