From: Juergen Gross <jgross@suse.com>
To: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: xen-devel@lists.xenproject.org, wei.liu2@citrix.com,
Jan Beulich <JBeulich@suse.com>
Subject: Re: [PATCH 1/4] interface: avoid redefinition of __XEN_INTERFACE_VERSION__
Date: Tue, 28 Feb 2017 14:52:24 +0100 [thread overview]
Message-ID: <43863c13-f155-1df0-3ebb-f6a1b22d7f7b@suse.com> (raw)
In-Reply-To: <22709.30605.253854.49616@mariner.uk.xensource.com>
On 28/02/17 14:13, Ian Jackson wrote:
> Juergen Gross writes ("Re: [Xen-devel] [PATCH 1/4] interface: avoid redefinition of __XEN_INTERFACE_VERSION__"):
>> Hmm, maybe this is the problem: the value from the command line is
>> (textually) __XEN_LATEST_INTERFACE_VERSION__ while the value from the
>> #define is the _value_ of __XEN_LATEST_INTERFACE_VERSION__ due to the
>> pre-processor having replaced it already.
>>
>> In case this makes sense, my suggestion seems to be appropriate, no?
>
> Maybe. Another possibly would be to contrive to #define
> __XEN_INTERFACE_VERSION__ before __XEN_LATEST_INTERFACE_VERSION__.
> Then the second substitution would occur later.
Please drop this patch.
Seems there are paths where __XEN_INTERFACE_VERSION__ is being set to
a different value.
The main problem seems to be that xenctrl.h #define's __XEN_TOOLS__
in order to get all structures of #include'd headers, but it isn't
#undef'ining it at the end.
I believe all stubdoms using xenctrl.h in their main app should
explicitly set __XEN_INTERFACE_VERSION__ in their config file to
__XEN_LATEST_INTERFACE_VERSION__.
I'll send a patch doing this.
Juergen
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2017-02-28 13:52 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-28 10:34 [PATCH 0/4] build enhancements related to qemu Juergen Gross
2017-02-28 10:34 ` [PATCH 1/4] interface: avoid redefinition of __XEN_INTERFACE_VERSION__ Juergen Gross
2017-02-28 10:57 ` Andrew Cooper
2017-02-28 11:10 ` Ian Jackson
2017-02-28 12:40 ` Juergen Gross
2017-02-28 11:11 ` Jan Beulich
[not found] ` <58B568FD020000780013E159@suse.com>
2017-02-28 12:24 ` Juergen Gross
2017-02-28 12:46 ` Jan Beulich
[not found] ` <58B57F3A020000780013E285@suse.com>
2017-02-28 13:10 ` Juergen Gross
2017-02-28 13:13 ` Ian Jackson
2017-02-28 13:52 ` Juergen Gross [this message]
2017-02-28 13:33 ` Jan Beulich
2017-02-28 10:34 ` [PATCH 2/4] tools: add pkg-config file for libxc Juergen Gross
2017-02-28 11:13 ` Ian Jackson
2017-02-28 12:32 ` Juergen Gross
2017-02-28 12:52 ` Wei Liu
2017-02-28 13:01 ` Ian Jackson
2017-02-28 10:34 ` [PATCH 3/4] tools: use a dedicated build directory for qemu Juergen Gross
2017-02-28 11:13 ` Ian Jackson
2017-02-28 12:33 ` Juergen Gross
2017-02-28 13:14 ` Ian Jackson
2017-02-28 13:18 ` Juergen Gross
2017-02-28 10:35 ` [PATCH 4/4] tools: set pkg-config path when configuring qemu Juergen Gross
2017-02-28 11:08 ` Ian Jackson
2017-02-28 11:11 ` Juergen Gross
2017-02-28 11:14 ` Ian Jackson
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=43863c13-f155-1df0-3ebb-f6a1b22d7f7b@suse.com \
--to=jgross@suse.com \
--cc=JBeulich@suse.com \
--cc=ian.jackson@eu.citrix.com \
--cc=wei.liu2@citrix.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).