From: jim miro <daliroot@yahoo.com>
To: kvm@vger.kernel.org
Subject: Re: error compiling kvm-72 not there with kvm-69 - link kernel 2.6.26
Date: Wed, 6 Aug 2008 23:46:44 -0700 (PDT) [thread overview]
Message-ID: <344840.96077.qm@web39505.mail.mud.yahoo.com> (raw)
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
next reply other threads:[~2008-08-07 6:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-07 6:46 jim miro [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-08-07 7:02 error compiling kvm-72 not there with kvm-69 - link kernel 2.6.26 jim miro
2008-08-07 5:59 jim miro
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=344840.96077.qm@web39505.mail.mud.yahoo.com \
--to=daliroot@yahoo.com \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.