ia64/xen-unstable

changeset 9902:63e29ff50fe6

Allow architectures to define their own privcmd_mmap() by
introducing HAVE_ARCH_PRIVCMD_MMAP.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author kaf24@firebug.cl.cam.ac.uk
date Sun Apr 30 09:52:13 2006 +0100 (2006-04-30)
parents 9ffa49fe58ab
children a19cc748469e
files linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c	Sun Apr 30 09:50:49 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c	Sun Apr 30 09:52:13 2006 +0100
     1.3 @@ -241,6 +241,7 @@ static int privcmd_ioctl(struct inode *i
     1.4  	return ret;
     1.5  }
     1.6  
     1.7 +#ifndef HAVE_ARCH_PRIVCMD_MMAP
     1.8  static int privcmd_mmap(struct file * file, struct vm_area_struct * vma)
     1.9  {
    1.10  	/* DONTCOPY is essential for Xen as copy_page_range is broken. */
    1.11 @@ -248,6 +249,7 @@ static int privcmd_mmap(struct file * fi
    1.12  
    1.13  	return 0;
    1.14  }
    1.15 +#endif
    1.16  
    1.17  static struct file_operations privcmd_file_ops = {
    1.18  	.ioctl = privcmd_ioctl,