Skip to contentSkip to conversation

Remove unneeded kvm_dev_open and kvm_dev_release functions.

PATCH Applied Rusty Russell 2 participants 2 messages Aug 1, 2007 1 message not in the archive KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove unneeded kvm_dev_open and kvm_dev_release functions.

Devices don't need open or release functions.

drivers/kvm/kvm_main.c +0 -12
diff -r 9fde0a9cae6b drivers/kvm/kvm_main.c
@@ -363,11 +363,6 @@ static struct kvm *kvm_create_vm(void)
 	return kvm;
 }
 
-static int kvm_dev_open(struct inode *inode, struct file *filp)
-{
-	return 0;
-}
-
 /*
  * Free any memory in @free but not in @dont.
  */
@@ -435,11 +430,6 @@ static void kvm_free_vcpus(struct kvm *k
 		}
 	}
 
-}
-
-static int kvm_dev_release(struct inode *inode, struct file *filp)
-{
-	return 0;
 }
 
 static void kvm_destroy_vm(struct kvm *kvm)
@@ -2916,8 +2906,6 @@ out:
 }
 
 static struct file_operations kvm_chardev_ops = {
-	.open		= kvm_dev_open,
-	.release        = kvm_dev_release,
 	.unlocked_ioctl = kvm_dev_ioctl,
 	.compat_ioctl   = kvm_dev_ioctl,
 };

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/

Applied
#2 lore raw
In reply to a message not in the archive
Quoted 5 lines · Rusty Russell

Devices don't need open or release functions.

Applied, thanks.

Signature · 8 lines
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/