aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/xz
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2011-03-09 16:20:13 +0000
committerJan Beulich <jbeulich@novell.com>2011-03-09 16:20:13 +0000
commit48115d14743e4134fcdd0b8766fc59c917ae1e79 (patch)
tree844da1e931139c0b614f55c71ec9433d166c5c19 /xen/common/xz
parent4afea3d65321c40bb8afec833c860f92176bfb42 (diff)
downloadxen-48115d14743e4134fcdd0b8766fc59c917ae1e79.tar.gz
xen-48115d14743e4134fcdd0b8766fc59c917ae1e79.tar.bz2
xen-48115d14743e4134fcdd0b8766fc59c917ae1e79.zip
Move more kernel decompression bits to .init.* sections
Based on how c/s 22986:076b63b74cf6 changed xen/libelf/Makefile I suppose this is compatibile with those clang/llvm changes, but I didn't actually test it. Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/common/xz')
-rw-r--r--xen/common/xz/dec_bcj.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/xen/common/xz/dec_bcj.c b/xen/common/xz/dec_bcj.c
index e867168a8a..fdce1eaffb 100644
--- a/xen/common/xz/dec_bcj.c
+++ b/xen/common/xz/dec_bcj.c
@@ -87,11 +87,10 @@ static inline int INIT bcj_x86_test_msbyte(uint8_t b)
static size_t INIT bcj_x86(struct xz_dec_bcj *s, uint8_t *buf, size_t size)
{
- static /*const*/ bool_t INITDATA mask_to_allowed_status[8]
+ static const bool_t mask_to_allowed_status[8]
= { true, true, true, false, true, false, false, false };
- static /*const*/ uint8_t INITDATA mask_to_bit_num[8]
- = { 0, 1, 2, 2, 3, 3, 3, 3 };
+ static const uint8_t mask_to_bit_num[8] = { 0, 1, 2, 2, 3, 3, 3, 3 };
size_t i;
size_t prev_pos = (size_t)-1;