From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Subject: [PATCH] kvm: Add compat_ioctl for device control API Date: Tue, 30 Apr 2013 20:00:45 -0500 Message-ID: <20130501010045.GA14416@home.buserror.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: , To: Gleb Natapov , Marcelo Tosatti Return-path: Received: from am1ehsobe001.messaging.microsoft.com ([213.199.154.204]:49548 "EHLO am1outboundpool.messaging.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933439Ab3EABAw (ORCPT ); Tue, 30 Apr 2013 21:00:52 -0400 Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: This API shouldn't have 32/64-bit issues, but VFS assumes it does unless told otherwise. Signed-off-by: Scott Wood --- virt/kvm/kvm_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 54a14fa..ee0adad 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -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, }; -- 1.7.10.4