From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Xen-devel <xen-devel@lists.xen.org>
Cc: Keir Fraser <keir@xen.org>,
Ian Campbell <Ian.Campbell@citrix.com>,
Andrew Cooper <andrew.cooper3@citrix.com>,
Ian Jackson <Ian.Jackson@eu.citrix.com>,
Sander Eikelenboom <linux@eikelenboom.it>,
Jan Beulich <JBeulich@suse.com>
Subject: [PATCH] stubdom/libxc: Fix build of unsafe decompressors
Date: Fri, 14 Mar 2014 11:16:09 +0000 [thread overview]
Message-ID: <1394795769-2037-1-git-send-email-andrew.cooper3@citrix.com> (raw)
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
next reply other threads:[~2014-03-14 11:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-14 11:16 Andrew Cooper [this message]
2014-03-14 11:23 ` [PATCH] stubdom/libxc: Fix build of unsafe decompressors Ian Campbell
2014-03-14 11:31 ` Andrew Cooper
2014-03-14 11:43 ` [PATCH] xen/unlzma: Fix build of stubdom " Andrew Cooper
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1394795769-2037-1-git-send-email-andrew.cooper3@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=keir@xen.org \
--cc=linux@eikelenboom.it \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).