[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH v3 11/15] unlz4: replace INIT
There's no need for this abstraction. Requested-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> --- v3: New. --- a/xen/common/lz4/decompress.c +++ b/xen/common/lz4/decompress.c @@ -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; --- a/xen/common/unlz4.c +++ b/xen/common/unlz4.c @@ -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;
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |