From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bill Davidsen Subject: Re: [PATH] kvm-72 - fix compilation on 2.6.26 (anon_inode_getfd flag) Date: Tue, 29 Jul 2008 16:26:50 -0400 Message-ID: <488F7D0A.1000509@tmr.com> References: <20080729085556.GA32410@develbox.linuxbox.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: KVM list , nikola.ciprich@linuxbox.cz To: Nikola Ciprich Return-path: Received: from mail.tmr.com ([64.65.253.246]:42372 "EHLO gaimboi.tmr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752048AbYG2USL (ORCPT ); Tue, 29 Jul 2008 16:18:11 -0400 In-Reply-To: <20080729085556.GA32410@develbox.linuxbox.cz> Sender: kvm-owner@vger.kernel.org List-ID: Nikola Ciprich wrote: > Hi, > anon_inode_getfd flag parameter was added after 2.6.26 > following patch fixes compilation > please apply > thanks > nik > > > > ------------------------------------------------------------------------ > > 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) Should that be ">=" for future use? > + > +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, -- Bill Davidsen "We have more to fear from the bungling of the incompetent than from the machinations of the wicked." - from Slashdot