From: Wei Liu <wei.liu2@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>,
Wei Liu <wei.liu2@citrix.com>,
George Dunlap <George.Dunlap@eu.citrix.com>,
Andrew Cooper <andrew.cooper3@citrix.com>,
Ian Jackson <Ian.Jackson@eu.citrix.com>, Tim Deegan <tim@xen.org>,
Julien Grall <julien.grall@arm.com>,
Shannon Zhao <zhaoshenglong@huawei.com>,
xen-devel <xen-devel@lists.xenproject.org>
Subject: Re: [PATCH] pub-headers: reduce C99 dependencies
Date: Fri, 30 Sep 2016 10:14:23 +0100 [thread overview]
Message-ID: <20160930091423.GS16004@citrix.com> (raw)
In-Reply-To: <57EE46EE02000078001140F9@prv-mh.provo.novell.com>
On Fri, Sep 30, 2016 at 03:05:18AM -0600, Jan Beulich wrote:
> >>> On 29.09.16 at 21:22, <julien.grall@arm.com> wrote:
>
> >
> > On 29/09/2016 12:11, Julien Grall wrote:
> >> Hi Jan,
> >>
> >> On 28/09/2016 23:04, Jan Beulich wrote:
> >>>>>> On 28.09.16 at 21:42, <julien.grall@arm.com> wrote:
> >>>> Hi Jan,
> >>>>
> >>>> On 28/09/2016 05:00, Jan Beulich wrote:
> >>>>> For consumers not using (fully) C99-aware compilers, limit the number
> >>>>> of places where tweaking of the headers would be necessary: Introduce
> >>>>> and use xen_mk_ullong(), allowing its helper macro to be overridden at
> >>>>> once.
> >>>>>
> >>>>> For now don't touch public/io/, which also has a few offenders.
> >>>>>
> >>>>> The need to include xen.h in hvm/e820.h demonstrates that it is a bad
> >>>>> idea to include public headers first thing - arch/x86/hvm/mtrr.c needs
> >>>>> adjustment just because of this.
> >>>>>
> >>>>> Signed-off-by: Jan Beulich <jbeulich@suse.com>
> >>>>> ---
> >>>>> I wonder why all those ARM constants carry the ULL suffix despite only
> >>>>> two of them actually exceeding 32 significant bits.
> >>>>
> >>>> I am not the author of the code, but I think it was to declare all the
> >>>> constants of a given set uniformed.
> >>>>
> >>>> For instance all the GUEST_* constants are used to define the layout of
> >>>> the guest. This may be shuffle in this future (this is not part of ABI)
> >>>
> >>> Oh, they're in a Xen/tools only section (the #endif could really be
> >>> annotated to help spot this) - in that case I could as well leave them
> >>> alone. Any preference?
> >>
> >> Correct. I can send a patch to annotate the #endif.
> >
> > It looks like that I did not reply to your question. Do we expect the
> > toolstack to always C99 standard? If not, then we should keep the
> > xen_mk_ullong.
>
> We're even expecting GNUisms to be supported, like
> __attribute__((aligned(...))). But since you said you're fine either
> way, I guess I'll keep the patch as is.
>
Acked-by: Wei Liu <wei.liu2@citrix.com>
I will commit this patch soon.
Wei.
> Jan
>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2016-09-30 9:14 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-28 12:00 [PATCH] pub-headers: reduce C99 dependencies Jan Beulich
2016-09-28 13:31 ` George Dunlap
2016-09-28 13:49 ` Jan Beulich
2016-09-28 14:04 ` Wei Liu
2016-09-28 14:14 ` Jan Beulich
2016-09-28 14:17 ` Wei Liu
2016-09-28 19:42 ` Julien Grall
2016-09-29 6:04 ` Jan Beulich
2016-09-29 19:11 ` Julien Grall
2016-09-29 19:22 ` Julien Grall
2016-09-29 19:33 ` Wei Liu
2016-09-30 9:05 ` Jan Beulich
2016-09-30 9:14 ` Wei Liu [this message]
2016-09-29 9:41 ` Ian Jackson
2016-09-29 19:15 ` Julien Grall
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=20160930091423.GS16004@citrix.com \
--to=wei.liu2@citrix.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=julien.grall@arm.com \
--cc=sstabellini@kernel.org \
--cc=tim@xen.org \
--cc=xen-devel@lists.xenproject.org \
--cc=zhaoshenglong@huawei.com \
/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).