xen/decompress: make helper symbols static
authorJan Beulich <jbeulich@suse.com>
Tue, 30 Mar 2021 12:33:48 +0000 (14:33 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 30 Mar 2021 12:33:48 +0000 (14:33 +0200)
commiteaecd329a56ccbc8158a20a75dcb486d07a412d6
tree33c8bae5bbe88b3f672a32ba3e3550320d738722
parentc201d303e801a949b10f9e0f36cdc1938ddd399e
xen/decompress: make helper symbols static

The individual decompression CUs need to only surface their top level
functions to other code. Arrange for everything else to be static, to
make sure no undue uses of that code exist or will appear without
explicitly noticing. (In some cases this also results in code size
reduction, but since this is all init-only code this probably doesn't
matter very much.)

In the LZO case also take the opportunity and convert u8 where lines
get touched anyway.

The downside is that the top level functions will now be non-static
in stubdom builds of libxenguest, but I think that's acceptable. This
does require declaring them first, though, as the compiler warns about
the lack of declarations.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Wei Liu <wl@xen.org>
tools/libs/guest/xg_dom_decompress_unsafe.h
xen/common/bunzip2.c
xen/common/decompress.h
xen/common/unlz4.c
xen/common/unlzma.c
xen/common/unlzo.c
xen/common/unxz.c
xen/common/unzstd.c