xen/gunzip: Fix build with clang after 33bc2a8495f7
authorJulien Grall <jgrall@amazon.com>
Wed, 7 Apr 2021 18:22:10 +0000 (19:22 +0100)
committerJulien Grall <jgrall@amazon.com>
Fri, 9 Apr 2021 08:43:12 +0000 (09:43 +0100)
commit11ba6936d378c72da6ad70eabdfa976e71777788
treecb9367999752f571ac1e8f988fca4f5a55adf078
parent9cd905bae87fb06efa59c347ef1e96c5dc6cdb62
xen/gunzip: Fix build with clang after 33bc2a8495f7

The compilation will fail when building Xen with clang and
CONFIG_DEBUG=y:

make[4]: Leaving directory '/oss/xen/xen/common/libelf'
  INIT_O  gunzip.init.o
Error: size of gunzip.o:.text is 0x00000019

This is because the function init_allocator() will not be inlined
and is not part of the init section.

Fix it by marking init_allocator() with INIT.

Fixes: 33bc2a8495f7 ("xen/gunzip: Allow perform_gunzip() to be called multiple times")
Reported-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Julien Grall <jgrall@amazon.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/common/inflate.c