From patchwork Fri Oct 23 09:41:54 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 55531 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9N9gKg1013857 for ; Fri, 23 Oct 2009 09:42:20 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751838AbZJWJlx (ORCPT ); Fri, 23 Oct 2009 05:41:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751815AbZJWJlv (ORCPT ); Fri, 23 Oct 2009 05:41:51 -0400 Received: from cantor.suse.de ([195.135.220.2]:50104 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751812AbZJWJlu (ORCPT ); Fri, 23 Oct 2009 05:41:50 -0400 Received: from relay1.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 78DCB94109; Fri, 23 Oct 2009 11:41:54 +0200 (CEST) From: Alexander Graf To: kvm@vger.kernel.org Cc: Avi Kivity , kvm-ppc , Arnd Bergmann , Marcelo Tosatti , Jan Kiszka Subject: [PATCH] Only expose compat ioctl when CONFIG_COMPAT Date: Fri, 23 Oct 2009 11:41:54 +0200 Message-Id: <1256290914-18169-1-git-send-email-agraf@suse.de> X-Mailer: git-send-email 1.6.0.2 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 54a272f..bd44fb4 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -1623,7 +1623,9 @@ static int kvm_vm_mmap(struct file *file, struct vm_area_struct *vma) static struct file_operations kvm_vm_fops = { .release = kvm_vm_release, .unlocked_ioctl = kvm_vm_ioctl, +#ifdef CONFIG_COMPAT .compat_ioctl = kvm_vm_compat_ioctl, +#endif .mmap = kvm_vm_mmap, };