@@ -46,8 +46,8 @@ static const int8_t dec64table[] = {0, 0
#if defined(__XEN__) || defined(__MINIOS__)
-static int INIT lz4_uncompress(const unsigned char *source, unsigned char *dest,
- int osize)
+static int __init lz4_uncompress(const unsigned char *source, unsigned char *dest,
+ int osize)
{
const BYTE *ip = (const BYTE *) source;
const BYTE *ref;
@@ -302,8 +302,8 @@ _output_error:
#if defined(__XEN__) || defined(__MINIOS__)
-int INIT lz4_decompress(const unsigned char *src, size_t *src_len,
- unsigned char *dest, size_t actual_dest_len)
+int __init lz4_decompress(const unsigned char *src, size_t *src_len,
+ unsigned char *dest, size_t actual_dest_len)
{
int ret = -1;
int input_len = 0;
@@ -22,11 +22,11 @@
#define LZ4_DEFAULT_UNCOMPRESSED_CHUNK_SIZE (8 << 20)
#define ARCHIVE_MAGICNUMBER 0x184C2102
-int INIT unlz4(unsigned char *input, unsigned int in_len,
- int (*fill)(void *, unsigned int),
- int (*flush)(void *, unsigned int),
- unsigned char *output, unsigned int *posp,
- void (*error)(const char *x))
+int __init unlz4(unsigned char *input, unsigned int in_len,
+ int (*fill)(void *, unsigned int),
+ int (*flush)(void *, unsigned int),
+ unsigned char *output, unsigned int *posp,
+ void (*error)(const char *x))
{
int ret = -1;
size_t chunksize = 0;
There's no need for this abstraction. Requested-by: Andrew Cooper <andrew.cooper3@citrix.com> Signed-off-by: Jan Beulich <jbeulich@suse.com> --- v3: New.