* [PATCH] Fix issues introduced in 3a7f872a
@ 2016-09-19 18:13 Wei Liu
2016-09-20 7:44 ` Jan Beulich
2016-09-20 12:18 ` Ian Jackson
0 siblings, 2 replies; 4+ messages in thread
From: Wei Liu @ 2016-09-19 18:13 UTC (permalink / raw)
To: Xen-devel; +Cc: Ian Jackson, Wei Liu, Jan Beulich, Andrew Cooper
3a7f872a ("tools: lift BUILD_BUG_ON to a tools header file") was taken
out from an rather old half finished branch by dropping unrelated
changes. Unfortunately two issues sneaked in.
1. Hvmloader should be standalone. Revert the changes to hvmloader.
2. The define guard in libs.h was erroneously deleted. Add that back.
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
---
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Jan Beulich <jbeulich@suse.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>
---
tools/firmware/hvmloader/rombios.c | 1 -
tools/firmware/hvmloader/smbios.c | 1 -
tools/firmware/hvmloader/util.h | 1 +
tools/include/xen-tools/libs.h | 1 +
4 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/firmware/hvmloader/rombios.c b/tools/firmware/hvmloader/rombios.c
index 1e853ec..9acf03f 100644
--- a/tools/firmware/hvmloader/rombios.c
+++ b/tools/firmware/hvmloader/rombios.c
@@ -31,7 +31,6 @@
#include "option_rom.h"
#include <xen/hvm/params.h>
-#include <xen-tools/libs.h>
#define ROM_INCLUDE_ROMBIOS
#define ROM_INCLUDE_VGABIOS
diff --git a/tools/firmware/hvmloader/smbios.c b/tools/firmware/hvmloader/smbios.c
index 0e61bd1..210c7b0 100644
--- a/tools/firmware/hvmloader/smbios.c
+++ b/tools/firmware/hvmloader/smbios.c
@@ -26,7 +26,6 @@
#include "util.h"
#include "hypercall.h"
#include <xen/hvm/hvm_xs_strings.h>
-#include <xen-tools/libs.h>
/* SBMIOS handle base values */
#define SMBIOS_HANDLE_TYPE0 0x0000
diff --git a/tools/firmware/hvmloader/util.h b/tools/firmware/hvmloader/util.h
index 94292d6..0fb266e 100644
--- a/tools/firmware/hvmloader/util.h
+++ b/tools/firmware/hvmloader/util.h
@@ -41,6 +41,7 @@ void __assert_failed(char *assertion, char *file, int line)
void __bug(char *file, int line) __attribute__((noreturn));
#define BUG() __bug(__FILE__, __LINE__)
#define BUG_ON(p) do { if (p) BUG(); } while (0)
+#define BUILD_BUG_ON(p) ((void)sizeof(char[1 - 2 * !!(p)]))
#define min_t(type,x,y) \
({ type __x = (x); type __y = (y); __x < __y ? __x: __y; })
diff --git a/tools/include/xen-tools/libs.h b/tools/include/xen-tools/libs.h
index 9d8b4ab..e874fb8 100644
--- a/tools/include/xen-tools/libs.h
+++ b/tools/include/xen-tools/libs.h
@@ -1,4 +1,5 @@
#ifndef __XEN_TOOLS_LIBS__
+#define __XEN_TOOLS_LIBS__
#ifndef BUILD_BUG_ON
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)
--
2.1.4
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] Fix issues introduced in 3a7f872a
2016-09-19 18:13 [PATCH] Fix issues introduced in 3a7f872a Wei Liu
@ 2016-09-20 7:44 ` Jan Beulich
2016-09-20 12:18 ` Ian Jackson
1 sibling, 0 replies; 4+ messages in thread
From: Jan Beulich @ 2016-09-20 7:44 UTC (permalink / raw)
To: Wei Liu; +Cc: Andrew Cooper, Ian Jackson, Xen-devel
>>> On 19.09.16 at 20:13, <wei.liu2@citrix.com> wrote:
> 3a7f872a ("tools: lift BUILD_BUG_ON to a tools header file") was taken
> out from an rather old half finished branch by dropping unrelated
> changes. Unfortunately two issues sneaked in.
>
> 1. Hvmloader should be standalone. Revert the changes to hvmloader.
> 2. The define guard in libs.h was erroneously deleted. Add that back.
>
> Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Ah, here it comes already.
Acked-by: Jan Beulich <jbeulich@suse.com>
Jan
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] Fix issues introduced in 3a7f872a
2016-09-19 18:13 [PATCH] Fix issues introduced in 3a7f872a Wei Liu
2016-09-20 7:44 ` Jan Beulich
@ 2016-09-20 12:18 ` Ian Jackson
2016-09-20 13:11 ` Wei Liu
1 sibling, 1 reply; 4+ messages in thread
From: Ian Jackson @ 2016-09-20 12:18 UTC (permalink / raw)
To: Wei Liu; +Cc: Xen-devel, Jan Beulich, Andrew Cooper
Wei Liu writes ("[PATCH] Fix issues introduced in 3a7f872a"):
> 3a7f872a ("tools: lift BUILD_BUG_ON to a tools header file") was taken
> out from an rather old half finished branch by dropping unrelated
> changes. Unfortunately two issues sneaked in.
>
> 1. Hvmloader should be standalone. Revert the changes to hvmloader.
> 2. The define guard in libs.h was erroneously deleted. Add that back.
Sorry, I didn't realise you were waiting for my ack.
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] Fix issues introduced in 3a7f872a
2016-09-20 12:18 ` Ian Jackson
@ 2016-09-20 13:11 ` Wei Liu
0 siblings, 0 replies; 4+ messages in thread
From: Wei Liu @ 2016-09-20 13:11 UTC (permalink / raw)
To: Ian Jackson; +Cc: Xen-devel, Wei Liu, Jan Beulich, Andrew Cooper
On Tue, Sep 20, 2016 at 01:18:35PM +0100, Ian Jackson wrote:
> Wei Liu writes ("[PATCH] Fix issues introduced in 3a7f872a"):
> > 3a7f872a ("tools: lift BUILD_BUG_ON to a tools header file") was taken
> > out from an rather old half finished branch by dropping unrelated
> > changes. Unfortunately two issues sneaked in.
> >
> > 1. Hvmloader should be standalone. Revert the changes to hvmloader.
> > 2. The define guard in libs.h was erroneously deleted. Add that back.
>
> Sorry, I didn't realise you were waiting for my ack.
>
> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
>
Pushed. Thanks everyone.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-09-20 13:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-19 18:13 [PATCH] Fix issues introduced in 3a7f872a Wei Liu
2016-09-20 7:44 ` Jan Beulich
2016-09-20 12:18 ` Ian Jackson
2016-09-20 13:11 ` Wei Liu
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).