xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: "Jan Beulich" <JBeulich@novell.com>
To: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
Cc: xen-devel@lists.xensource.com, Ian.Jackson@eu.citrix.com,
	xen-ia64-devel@lists.xensource.com
Subject: [PATCH] [Linux] ia64, xencomm: fix 1028:6f7bda25a4de (Re: [IA64] Weekly benchmark results [2010ww36])
Date: Mon, 13 Sep 2010 09:38:50 +0100	[thread overview]
Message-ID: <4C8DFF3A0200007800015A0F@vpn.id2.novell.com> (raw)
In-Reply-To: <20100913.170710.356441561.kuwa@jp.fujitsu.com>

>>> On 13.09.10 at 10:07, "KUWAMURA Shin'ya" <kuwa@jp.fujitsu.com> wrote:
> Hi Ian,
> 
>>>>>> On Fri, 10 Sep 2010 18:51:23 +0100
>>>>>> Ian.Jackson@eu.citrix.com(Ian Jackson)  said:
>> 
>> KUWAMURA Shin'ya writes ("[Xen-devel] [IA64] Weekly benchmark results 
> [2010ww36]"):
>> > - Linux-2.6.18-xen cannot be built:
>> >     In file included from 
> /linux-2.6.18-xen.hg/arch/ia64/xen/xcom_privcmd.c:27:
>> >     /linux-2.6.18-xen.hg/include/xen/interface/domctl.h:284: error: field 
> `cpumap' has incomplete type
>> >   This issue was fixed ad hoc.
>> 
>> If you'd like to send the ad-hoc fixes you used, that would be very
>> helpful.  If they're suitable for inclusion we'll commit them, and if
>> not they'll be good explanations of the bugs.
> 
> Thank you for your advice.
> I attached the patch. The cause is as follows:
> 
> 1028:6f7bda25a4de includes xen-unstable 21568:05bfc5a472b which
> moved struct xenctl_cpumap from domctl.h to xen.h.
> However, xcom_privcmd.c includes xen.h without __XEN__ or
> __XEN_TOOLS__, so struct xenctl_cpumap is invisible from
> xcom_privcmd.c.
> 
> This patch fixes by defining __XEN_TOOLS__ at the top of xcom_privcmd.c.
> But this causes a warning:
> 
> In file included from /linux-2.6.18-xen.hg/include/xen/interface/xen.h:30,
>                  from 
> /linux-2.6.18-xen.hg/include/xen/interface/arch-ia64.h:26,
>                  from include2/asm/xen/privop.h:16,
>                  from include2/asm/privop.h:14,
>                  from include2/asm/intrinsics.h:189,
>                  from include2/asm/bitops.h:14,
>                  from /linux-2.6.18-xen.hg/include/linux/bitops.h:9,
>                  from /linux-2.6.18-xen.hg/include/linux/kernel.h:15,
>                  from /linux-2.6.18-xen.hg/arch/ia64/xen/xcom_privcmd.c:22:
> /linux-2.6.18-xen.hg/include/xen/interface/xen-compat.h:34:1: warning: 
> "__XEN_INTERFACE_VERSION__" redefined
> <command line>:5:1: warning: this is the location of the previous definition

This doesn't seem to be the right (or a sufficient) fix then.

Even more, a few lines down in the same source file __XEN__
already gets #define-d, so the first choice imo would be to simply
move that definition up. Or does this cause any *more* problems
than the warning above (which I think needs to be dealt with
regardless)?

Jan

  reply	other threads:[~2010-09-13  8:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-10  8:19 [IA64] Weekly benchmark results [2010ww36] KUWAMURA Shin'ya
2010-09-10 17:51 ` Ian Jackson
2010-09-13  8:07   ` [PATCH] [Linux] ia64, xencomm: fix 1028:6f7bda25a4de (Re: [Xen-devel] [IA64] Weekly benchmark results [2010ww36]) KUWAMURA Shin'ya
2010-09-13  8:38     ` Jan Beulich [this message]
2010-09-14  7:39       ` [PATCH] [Linux] ia64, xencomm: fix 1028:6f7bda25a4de KUWAMURA Shin'ya
     [not found]       ` <m2n.s.1OvQ9b-0017xQ@chiark.greenend.org.uk>
2010-09-16 17:08         ` Ian Jackson
2010-09-17  1:17           ` KUWAMURA Shin'ya

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=4C8DFF3A0200007800015A0F@vpn.id2.novell.com \
    --to=jbeulich@novell.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=kuwa@jp.fujitsu.com \
    --cc=xen-devel@lists.xensource.com \
    --cc=xen-ia64-devel@lists.xensource.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).