ia64/xen-unstable

changeset 7683:1470a9d40072

Remove unused and unnecessary gnttab ioctl.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Tue Nov 08 12:25:09 2005 +0100 (2005-11-08)
parents 33b2e15c2ade
children a5195bf5671d
files linux-2.6-xen-sparse/arch/xen/kernel/gnttab.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/arch/xen/kernel/gnttab.c	Tue Nov 08 12:17:53 2005 +0100
     1.2 +++ b/linux-2.6-xen-sparse/arch/xen/kernel/gnttab.c	Tue Nov 08 12:25:09 2005 +0100
     1.3 @@ -337,53 +337,7 @@ gnttab_request_free_callback(struct gntt
     1.4  #ifdef CONFIG_PROC_FS
     1.5  
     1.6  static struct proc_dir_entry *grant_pde;
     1.7 -
     1.8 -static int
     1.9 -grant_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
    1.10 -	    unsigned long data)
    1.11 -{
    1.12 -	int                     ret;
    1.13 -	privcmd_hypercall_t     hypercall;
    1.14 -
    1.15 -	/*
    1.16 -	 * XXX Need safety checks here if using for anything other
    1.17 -	 *     than debugging.
    1.18 -	 */
    1.19 -	return -ENOSYS;
    1.20 -
    1.21 -	if ( cmd != IOCTL_PRIVCMD_HYPERCALL )
    1.22 -		return -ENOSYS;
    1.23 -
    1.24 -	if ( copy_from_user(&hypercall, (void *)data, sizeof(hypercall)) )
    1.25 -		return -EFAULT;
    1.26 -
    1.27 -	if ( hypercall.op != __HYPERVISOR_grant_table_op )
    1.28 -		return -ENOSYS;
    1.29 -
    1.30 -#ifdef __ia64__
    1.31 -	ret = HYPERVISOR_grant_table_op(hypercall.arg[0], (void *)hypercall.arg[1], hypercall.arg[2]);
    1.32 -#else
    1.33 -	/* hypercall-invoking asm taken from privcmd.c */
    1.34 -	__asm__ __volatile__ (
    1.35 -		"pushl %%ebx; pushl %%ecx; pushl %%edx; "
    1.36 -		"pushl %%esi; pushl %%edi; "
    1.37 -		"movl  4(%%eax),%%ebx ;"
    1.38 -		"movl  8(%%eax),%%ecx ;"
    1.39 -		"movl 12(%%eax),%%edx ;"
    1.40 -		"movl 16(%%eax),%%esi ;"
    1.41 -		"movl 20(%%eax),%%edi ;"
    1.42 -		"movl   (%%eax),%%eax ;"
    1.43 -		TRAP_INSTR "; "
    1.44 -		"popl %%edi; popl %%esi; popl %%edx; popl %%ecx; popl %%ebx"
    1.45 -		: "=a" (ret) : "0" (&hypercall) : "memory" );
    1.46 -#endif
    1.47 -
    1.48 -	return ret;
    1.49 -}
    1.50 -
    1.51 -static struct file_operations grant_file_ops = {
    1.52 -	ioctl:  grant_ioctl,
    1.53 -};
    1.54 +static struct file_operations grant_file_ops;
    1.55  
    1.56  static int
    1.57  grant_read(char *page, char **start, off_t off, int count, int *eof,