Fix issues introduced in 3a7f872a
PATCH 1/1 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.
---
Cc: Ian Jackson <[email protected]>
Cc: Jan Beulich <[email protected]>
Cc: Andrew Cooper <[email protected]>
--- 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(-)
tools/firmware/hvmloader/rombios.c +0 -1
@@ -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
tools/firmware/hvmloader/smbios.c +0 -1
@@ -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
tools/firmware/hvmloader/util.h +1 -0
@@ -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; })
tools/include/xen-tools/libs.h +1 -0
@@ -1,4 +1,5 @@#ifndef __XEN_TOOLS_LIBS__ +#define __XEN_TOOLS_LIBS__#ifndef BUILD_BUG_ON #if __GNUC__ >4 || (__GNUC__ ==4 && __GNUC_MINOR__ >=6 )
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Quoted 9 lines
Quoted 1 line
Quoted 1 line · On 19.09.16 at 20:13, <[email protected]> wrote:
3a7f872a("tools: liftBUILD_BUG_ONto 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 inlibs.hwas erroneously deleted. Add that back.Signed-off-by Wei Liu <[email protected]>
Ah, here it comes already.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Wei Liu writes ("[PATCH] Fix issues introduced in 3a7f872a"):
Quoted 6 lines
3a7f872a("tools: liftBUILD_BUG_ONto 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 inlibs.hwas erroneously deleted. Add that back.
Sorry, I didn't realise you were waiting for my ack.
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 5 lines · Ian Jackson
Wei Liu writes ("[PATCH] Fix issues introduced in
3a7f872a"):Quoted 4 lines
3a7f872a("tools: liftBUILD_BUG_ONto a tools header file") was taken out from an rather old half finished branch by dropping unrelated changes. Unfortunately two issues sneaked in.
Quoted 7 lines
Quoted 2 lines
1. Hvmloader should be standalone. Revert the changes to hvmloader.
2. The define guard inlibs.hwas erroneously deleted. Add that back.Sorry, I didn't realise you were waiting for my ack.
Acked-by Ian Jackson <[email protected]>
Pushed. Thanks everyone.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel