unlzo: 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>
Acked-by: Julien Grall <jgrall@amazon.com>
This commit is contained in:
Jan Beulich committed 2021-04-16 14:38:26 +02:00
1 parent 3df14c9172
commit 4e4bcd7dee
2 files changed
+8 -8

No files matched your search

+2 -2
View File
@@ -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;
+6 -6
View File
@@ -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;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.