xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] stubdom/libxc: Fix build of unsafe decompressors
@ 2014-03-14 11:16 Andrew Cooper
  2014-03-14 11:23 ` Ian Campbell
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Cooper @ 2014-03-14 11:16 UTC (permalink / raw)
  To: Xen-devel
  Cc: Keir Fraser, Ian Campbell, Andrew Cooper, Ian Jackson,
	Sander Eikelenboom, Jan Beulich

c/s b683d68c386 changed the packing attribute on struct lzma_header.  libxc
includes the Xen decompression .c, (for stubdoms only) but without access to
the Xen header files.

Fix in the main header file for any potential change in Xen, rather than in
for just lzma alone.

Reported-by: Sander Eikelenboom <linux@eikelenboom.it>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Keir Fraser <keir@xen.org>
CC: Jan Beulich <JBeulich@suse.com>
CC: Ian Campbell <Ian.Campbell@citrix.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
---
 tools/libxc/xc_dom_decompress_unsafe.h |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/libxc/xc_dom_decompress_unsafe.h b/tools/libxc/xc_dom_decompress_unsafe.h
index 64f6886..66124a8 100644
--- a/tools/libxc/xc_dom_decompress_unsafe.h
+++ b/tools/libxc/xc_dom_decompress_unsafe.h
@@ -1,5 +1,7 @@
 #include "xc_dom.h"
 
+#define __packed __attribute__((packed))
+
 typedef int decompress_fn(unsigned char *inbuf, unsigned int len,
                           int (*fill)(void*, unsigned int),
                           int (*flush)(void*, unsigned int),
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-03-14 11:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-14 11:16 [PATCH] stubdom/libxc: Fix build of unsafe decompressors Andrew Cooper
2014-03-14 11:23 ` Ian Campbell
2014-03-14 11:31   ` Andrew Cooper
2014-03-14 11:43     ` [PATCH] xen/unlzma: Fix build of stubdom " Andrew Cooper

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).