Skip to contentSkip to conversation

kvm: Add compat_ioctl for device control API

PATCH Applied Scott Wood 2 participants 2 messages May 1, 2013 – May 5, 2013 KVM

lore
Share & tools
lore

Scott Wood

author
#0 lore raw

PATCH 1/1 kvm: Add compat_ioctl for device control API

This API shouldn't have 32/64-bit issues, but VFS assumes it does unless told otherwise.

---
 virt/kvm/kvm_main.c |    3 +++
 1 file changed, 3 insertions(+)
virt/kvm/kvm_main.c +3 -0
index 54a14fa..ee0adad 100644
@@ -2221,6 +2221,9 @@ static int kvm_device_release(struct inode *inode, struct file *filp)
 
 static const struct file_operations kvm_device_fops = {
 	.unlocked_ioctl = kvm_device_ioctl,
+#ifdef CONFIG_COMPAT
+	.compat_ioctl = kvm_device_ioctl,
+#endif
 	.release = kvm_device_release,
 };
 
Signature · 1 line
1.7.10.4
Applied
#1 lore raw
Quoted 4 lines · Scott Wood

This API shouldn't have 32/64-bit issues, but VFS assumes it does unless told otherwise.

Applied, thanks.

Quoted 20 lines
---
 virt/kvm/kvm_main.c |    3 +++
 1 file changed, 3 insertions(+)
virt/kvm/kvm_main.c +3 -0
index 54a14fa..ee0adad 100644
@@ -2221,6 +2221,9 @@ static int kvm_device_release(struct inode *inode, struct file *filp)
 
 static const struct file_operations kvm_device_fops = {
 	.unlocked_ioctl = kvm_device_ioctl,
+#ifdef CONFIG_COMPAT
+	.compat_ioctl = kvm_device_ioctl,
+#endif
 	.release = kvm_device_release,
 };
 
Signature · 1 line
1.7.10.4

--
Gleb.