From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from kirsty.vergenet.net ([202.4.237.240]) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1a3Bms-0001VX-9d for kexec@lists.infradead.org; Sun, 29 Nov 2015 23:53:47 +0000 Date: Mon, 30 Nov 2015 08:53:22 +0900 From: Simon Horman Subject: Re: [PATCH] x86: Make sure E820_PM[AE]M are defined if needed Message-ID: <20151129235322.GA13342@verge.net.au> References: <1448584578-5706-1-git-send-email-horms@verge.net.au> <20151127065847.GF13853@dhcp-128-28.nay.redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20151127065847.GF13853@dhcp-128-28.nay.redhat.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Baoquan He Cc: Michael Holzheu , kexec@lists.infradead.org, Petr Tesarik On Fri, Nov 27, 2015 at 02:58:47PM +0800, Baoquan He wrote: > On 11/27/15 at 09:36am, Simon Horman wrote: > > It appears that (older?) revisions of xenctl.h define > > all of the E820_* values used in kexec-x86-common.c except > > E820_PMAM and E820_PMEM. This results in a build failure when > > building against libxenctl. > > > > Avoid this problem by providing local definitions of those values. > > > > It seems reasonable to do so in the kexec-x86-common.c as > > currently that is the only source file that uses the values in question. > > > > Fixes: 56a12abc1df1 ("kexec: fix mmap return code handling") > > Cc: Michael Holzheu > > Cc: Petr Tesarik > > Cc: Baoquan He > > Signed-off-by: Simon Horman > > --- > > kexec/arch/i386/kexec-x86-common.c | 6 ++++++ > > 1 file changed, 6 insertions(+) > > > > diff --git a/kexec/arch/i386/kexec-x86-common.c b/kexec/arch/i386/kexec-x86-common.c > > index b308e4719503..3e97239c0c78 100644 > > --- a/kexec/arch/i386/kexec-x86-common.c > > +++ b/kexec/arch/i386/kexec-x86-common.c > > @@ -44,6 +44,12 @@ > > #include > > #endif /* HAVE_LIBXENCTRL */ > > > > +/* Used below but not present in (older?) xenctrl.h */ > > +#ifndef E820_PMEM > > +#define E820_PMEM 7 > > +#define E820_PRAM 12 > > +#endif > > + > > It looks very ugly but seems no better way to do it. Agreed. I've applied this change. _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec