From: "KUWAMURA Shin'ya" Subject: Re: [PATCH] [Linux] ia64, xencomm: fix 1028:6f7bda25a4de Date: Tue, 14 Sep 2010 16:39:00 +0900 (JST) Message-ID: <20100914.163900.233396190.kuwa@jp.fujitsu.com> References: <19594.28699.580800.264948@mariner.uk.xensource.com> <20100913.170710.356441561.kuwa@jp.fujitsu.com> <4C8DFF3A0200007800015A0F@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Tue_Sep_14_16_39_00_2010_542)--" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4C8DFF3A0200007800015A0F@vpn.id2.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-ia64-devel-bounces@lists.xensource.com Errors-To: xen-ia64-devel-bounces@lists.xensource.com To: JBeulich@novell.com Cc: xen-devel@lists.xensource.com, Ian.Jackson@eu.citrix.com, xen-ia64-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org ----Next_Part(Tue_Sep_14_16_39_00_2010_542)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi Jan, >>>>> On Mon, 13 Sep 2010 09:38:50 +0100 >>>>> JBeulich@novell.com("Jan Beulich") said: > > >>> On 13.09.10 at 10:07, "KUWAMURA Shin'ya" wrote: > > 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 > > :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)? Thank you for your advice. I fixed this warning by adding an #include line. I attached the patch. Because xen-compat.h defines __XEN_INTERFACE_VERSION__ only if __XEN__ or __XEN_TOOLS__ is defined, I added #include xen-compat.h before #define __XEN_TOOLS__. I confirmed that dom0 kernel could be built without warnings and guests could be created. Signed-off-by: KUWAMURA Shin'ya Best regards, -- KUWAMURA Shin'ya ----Next_Part(Tue_Sep_14_16_39_00_2010_542)-- Content-Type: Text/X-Patch; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="fix-linux-xenctl-v2.patch" diff -r 9b1adfb8b0b3 arch/ia64/xen/xcom_privcmd.c --- a/arch/ia64/xen/xcom_privcmd.c Thu Aug 26 11:27:25 2010 +0100 +++ b/arch/ia64/xen/xcom_privcmd.c Tue Sep 14 16:22:34 2010 +0900 @@ -16,6 +16,8 @@ * Authors: Hollis Blanchard * Tristan Gingold */ +#include +#define __XEN_TOOLS__ #include #include #include ----Next_Part(Tue_Sep_14_16_39_00_2010_542)-- Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-ia64-devel mailing list Xen-ia64-devel@lists.xensource.com http://lists.xensource.com/xen-ia64-devel ----Next_Part(Tue_Sep_14_16_39_00_2010_542)----