# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 1470a9d40072546c390f0dfa89c7cb22d99018c8
# Parent 33b2e15c2adef5ef1445a69bbad66cce3c4e28bb
Remove unused and unnecessary gnttab ioctl.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
diff -r 33b2e15c2ade -r 1470a9d40072
linux-2.6-xen-sparse/arch/xen/kernel/gnttab.c
--- a/linux-2.6-xen-sparse/arch/xen/kernel/gnttab.c Tue Nov 8 11:17:53 2005
+++ b/linux-2.6-xen-sparse/arch/xen/kernel/gnttab.c Tue Nov 8 11:25:09 2005
@@ -337,53 +337,7 @@
#ifdef CONFIG_PROC_FS
static struct proc_dir_entry *grant_pde;
-
-static int
-grant_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
- unsigned long data)
-{
- int ret;
- privcmd_hypercall_t hypercall;
-
- /*
- * XXX Need safety checks here if using for anything other
- * than debugging.
- */
- return -ENOSYS;
-
- if ( cmd != IOCTL_PRIVCMD_HYPERCALL )
- return -ENOSYS;
-
- if ( copy_from_user(&hypercall, (void *)data, sizeof(hypercall)) )
- return -EFAULT;
-
- if ( hypercall.op != __HYPERVISOR_grant_table_op )
- return -ENOSYS;
-
-#ifdef __ia64__
- ret = HYPERVISOR_grant_table_op(hypercall.arg[0], (void
*)hypercall.arg[1], hypercall.arg[2]);
-#else
- /* hypercall-invoking asm taken from privcmd.c */
- __asm__ __volatile__ (
- "pushl %%ebx; pushl %%ecx; pushl %%edx; "
- "pushl %%esi; pushl %%edi; "
- "movl 4(%%eax),%%ebx ;"
- "movl 8(%%eax),%%ecx ;"
- "movl 12(%%eax),%%edx ;"
- "movl 16(%%eax),%%esi ;"
- "movl 20(%%eax),%%edi ;"
- "movl (%%eax),%%eax ;"
- TRAP_INSTR "; "
- "popl %%edi; popl %%esi; popl %%edx; popl %%ecx; popl %%ebx"
- : "=a" (ret) : "0" (&hypercall) : "memory" );
-#endif
-
- return ret;
-}
-
-static struct file_operations grant_file_ops = {
- ioctl: grant_ioctl,
-};
+static struct file_operations grant_file_ops;
static int
grant_read(char *page, char **start, off_t off, int count, int *eof,
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|