diff mbox series

[v3,11/15] unlz4: replace INIT

Message ID febeee3c-80f4-4568-9d27-4f243b11cce3@suse.com (mailing list archive)
State New
Headers show
Series zstd decompression for DomU-s + fallout / consolidation | expand

Commit Message

Jan Beulich Jan. 26, 2021, 9:52 a.m. UTC
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.
diff mbox series

Patch

--- 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;