Mailing List Archive

[xen master] unlz4: replace INIT
commit d9b1620aa4dae26964415e9f05f3b4000198e18f
Author: Jan Beulich <jbeulich@suse.com>
AuthorDate: Fri Apr 16 14:39:25 2021 +0200
Commit: Jan Beulich <jbeulich@suse.com>
CommitDate: Fri Apr 16 14:39:25 2021 +0200

unlz4: replace INIT

There's no need for this abstraction.

Requested-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Julien Grall <jgrall@amazon.com>
---
xen/common/lz4/decompress.c | 8 ++++----
xen/common/unlz4.c | 10 +++++-----
2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/xen/common/lz4/decompress.c b/xen/common/lz4/decompress.c
index 3caedb3d5d..876906fac1 100644
--- a/xen/common/lz4/decompress.c
+++ b/xen/common/lz4/decompress.c
@@ -46,8 +46,8 @@ static const int8_t dec64table[] = {0, 0, 0, -1, 0, 1, 2, 3};

#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;
diff --git a/xen/common/unlz4.c b/xen/common/unlz4.c
index 4a8fc55ccb..2096b98f36 100644
--- 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;
--
generated by git-patchbot for /home/xen/git/xen.git#master