From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nikola Ciprich Subject: Re: [PATH] kvm-72 - fix compilation on 2.6.26 (anon_inode_getfd flag) Date: Wed, 30 Jul 2008 18:10:47 +0200 Message-ID: <20080730160938.GA3222@localhost.localdomain> References: <20080729085556.GA32410@develbox.linuxbox.cz> <488F7D0A.1000509@tmr.com> <20080729204932.GA4791@localhost.localdomain> <48907BE6.1090607@qumranet.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="98e8jtXdkpgskNou" Cc: Nikola Ciprich , Bill Davidsen , KVM list To: Avi Kivity Return-path: Received: from gwu.lbox.cz ([62.245.111.132]:46744 "EHLO gwu.lbox.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755346AbYG3QLK (ORCPT ); Wed, 30 Jul 2008 12:11:10 -0400 Content-Disposition: inline In-Reply-To: <48907BE6.1090607@qumranet.com> Sender: kvm-owner@vger.kernel.org List-ID: --98e8jtXdkpgskNou Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, sure. hope it's OK n. PS: I mean't PATCH, not PATH of course. Although it was quite a long path to patch :) On Wed, Jul 30, 2008 at 05:34:14PM +0300, Avi Kivity wrote: > Nikola Ciprich wrote: >>> Should that be ">=" for future use? >>> >> nope, newer versions have also the flag parameter (see 2.6.27-rcX), so this is intended only for 2.6.26 >> >> > > Please resend the patch as I don't have it in my mailbox. > > -- > error compiling committee.c: too many arguments to function > -- ------------------------------------- Nikola CIPRICH LinuxBox.cz, s.r.o. 28. rijna 168, 709 01 Ostrava tel.: +420 596 603 142 fax: +420 596 621 273 mobil: +420 777 093 799 www.linuxbox.cz mobil servis: +420 737 238 656 email servis: servis@linuxbox.cz ------------------------------------- --98e8jtXdkpgskNou Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="kvm-72-fix-2.6.26-anon-inode.diff" diff -Naur kvm-72/kernel/anon_inodes.c kvm-72-fix-2.6.26-anon-inode/kernel/anon_inodes.c --- kvm-72/kernel/anon_inodes.c 2008-07-27 12:08:56.000000000 +0200 +++ kvm-72-fix-2.6.26-anon-inode/kernel/anon_inodes.c 2008-07-29 10:36:51.000000000 +0200 @@ -245,6 +245,15 @@ return fd; } +#elif LINUX_VERSION_CODE == KERNEL_VERSION(2,6,26) + +int kvm_anon_inode_getfd(const char *name, + const struct file_operations *fops, + void *priv, int flags) +{ + return anon_inode_getfd(name, fops, priv); +} + #else int kvm_anon_inode_getfd(const char *name, --98e8jtXdkpgskNou--