From: Sergey Dyasli <sergey.dyasli@citrix.com>
To: "JBeulich@suse.com" <JBeulich@suse.com>
Cc: "boris.ostrovsky@oracle.com" <boris.ostrovsky@oracle.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"sstabellini@kernel.org" <sstabellini@kernel.org>,
Paul Durrant <Paul.Durrant@citrix.com>,
Sergey Dyasli <sergey.dyasli@citrix.com>,
"jgross@suse.com" <jgross@suse.com>,
"marc.zyngier@arm.com" <marc.zyngier@arm.com>,
"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
"julien.grall@arm.com" <julien.grall@arm.com>
Subject: Re: [Xen-devel] [PATCH v1] xen: fix HYPERVISOR_dm_op() prototype
Date: Tue, 6 Jun 2017 09:43:20 +0000 [thread overview]
Message-ID: <1496742200.2797.1.camel@citrix.com> (raw)
In-Reply-To: <59367DD5020000780015FA35@prv-mh.provo.novell.com>
On Tue, 2017-06-06 at 02:03 -0600, Jan Beulich wrote:
> > > > On 05.06.17 at 10:41, <sergey.dyasli@citrix.com> wrote:
> >
> > --- a/arch/x86/include/asm/xen/hypercall.h
> > +++ b/arch/x86/include/asm/xen/hypercall.h
> > @@ -49,6 +49,7 @@
> > #include <xen/interface/physdev.h>
> > #include <xen/interface/platform.h>
> > #include <xen/interface/xen-mca.h>
> > +#include <xen/interface/hvm/dm_op.h>
>
> Why?
>
> > @@ -474,7 +475,7 @@ HYPERVISOR_xenpmu_op(unsigned int op, void *arg)
> >
> > static inline int
> > HYPERVISOR_dm_op(
> > - domid_t dom, unsigned int nr_bufs, void *bufs)
> > + domid_t dom, unsigned int nr_bufs, struct xen_dm_op_buf *bufs)
>
> All you need above here is a forward declaration of the structure.
> We should really avoid forcing source files to include all sorts of
> headers without actually needing anything from them.
Thank you for the good suggestion. I will fix this in v2.
>
> > --- a/include/xen/arm/hypercall.h
> > +++ b/include/xen/arm/hypercall.h
> > @@ -38,6 +38,7 @@
> > #include <xen/interface/xen.h>
> > #include <xen/interface/sched.h>
> > #include <xen/interface/platform.h>
> > +#include <xen/interface/hvm/dm_op.h>
>
> Same here.
>
> > @@ -53,7 +54,8 @@ int HYPERVISOR_physdev_op(int cmd, void *arg);
> > int HYPERVISOR_vcpu_op(int cmd, int vcpuid, void *extra_args);
> > int HYPERVISOR_tmem_op(void *arg);
> > int HYPERVISOR_vm_assist(unsigned int cmd, unsigned int type);
> > -int HYPERVISOR_dm_op(domid_t domid, unsigned int nr_bufs, void *bufs);
> > +int HYPERVISOR_dm_op(domid_t domid, unsigned int nr_bufs,
> > + struct xen_dm_op_buf *bufs);
>
> How come you get away with changing a declaration without
> also changing the matching definition?
The definition of HYPERVISOR_dm_op() is in arch/arm/xen/hypercall.S
--
Thanks,
Sergey
prev parent reply other threads:[~2017-06-06 9:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-05 8:41 [PATCH v1] xen: fix HYPERVISOR_dm_op() prototype Sergey Dyasli
2017-06-06 8:03 ` Jan Beulich
2017-06-06 8:03 ` [Xen-devel] " Jan Beulich
2017-06-06 9:43 ` Sergey Dyasli
2017-06-06 9:43 ` Sergey Dyasli [this message]
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=1496742200.2797.1.camel@citrix.com \
--to=sergey.dyasli@citrix.com \
--cc=JBeulich@suse.com \
--cc=Paul.Durrant@citrix.com \
--cc=boris.ostrovsky@oracle.com \
--cc=jgross@suse.com \
--cc=julien.grall@arm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=marc.zyngier@arm.com \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.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.