[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen staging] unlzo: replace INIT



commit 4e4bcd7deed0a7dba71d459b335de5a4f985073d
Author:     Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Fri Apr 16 14:38:26 2021 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Fri Apr 16 14:38:26 2021 +0200

    unlzo: replace INIT
    
    There's no need for this abstraction.
    
    Requested-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
    Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
    Acked-by: Julien Grall <jgrall@xxxxxxxxxx>
---
 xen/common/lzo.c   |  4 ++--
 xen/common/unlzo.c | 12 ++++++------
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/xen/common/lzo.c b/xen/common/lzo.c
index e4841794f4..a87c76dded 100644
--- a/xen/common/lzo.c
+++ b/xen/common/lzo.c
@@ -135,8 +135,8 @@
  */
 #define MAX_255_COUNT      ((((size_t)~0) / 255) - 2)
 
-int INIT lzo1x_decompress_safe(const unsigned char *in, size_t in_len,
-                               unsigned char *out, size_t *out_len)
+int __init lzo1x_decompress_safe(const unsigned char *in, size_t in_len,
+                                 unsigned char *out, size_t *out_len)
 {
     unsigned char *op;
     const unsigned char *ip;
diff --git a/xen/common/unlzo.c b/xen/common/unlzo.c
index df7e53db14..74056778eb 100644
--- a/xen/common/unlzo.c
+++ b/xen/common/unlzo.c
@@ -57,7 +57,7 @@ static const unsigned char lzop_magic[] = {
 #define HEADER_SIZE_MIN       (9 + 7     + 4 + 8     + 1       + 4)
 #define HEADER_SIZE_MAX       (9 + 7 + 1 + 8 + 8 + 4 + 1 + 255 + 4)
 
-static int INIT parse_header(u8 *input, int *skip, int in_len)
+static int __init parse_header(u8 *input, int *skip, int in_len)
 {
        int l;
        u8 *parse = input;
@@ -114,11 +114,11 @@ static int INIT parse_header(u8 *input, int *skip, int 
in_len)
        return 1;
 }
 
-int INIT unlzo(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 unlzo(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))
 {
        u8 r = 0;
        int skip = 0;
--
generated by git-patchbot for /home/xen/git/xen.git#staging



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.