error compiling kvm-72 not there with kvm-69 - link kernel 2.6.26
If I remove the "flags" parameter from the call to anon_inode_getfd in the function kvm_anon_inode_getfd It compiles but I get a warning.
CC [M] /usr/src/kvm-72/kernel/anon_inodes.o/usr/src/kvm-72/kernel/anon_inodes.c: In function ‘kvm_anon_inode_getfd’:/usr/src/kvm-72/kernel/anon_inodes.c:254: warning: passing argument 2 of ‘anon_inode_getfd’ from incompatible pointer type
CC [M] /usr/src/kvm-72/kernel/irq.o
So...
its late and I won't have time to try it tonight but there is a coding error there.
#if 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)
{
int r;
int fd;
struct inode *inode;
struct file *file;
r = anon_inode_getfd(&fd, &inode, &file, name, fops, priv);
if (r < 0)
return r;
return fd;
}#else
int kvm_anon_inode_getfd(const char *name,
const struct file_operations *fops, void *priv, int flags)
{
return anon_inode_getfd(name, &fops, priv, flags);
} ^^^error #endif