Skip to content

Commit 6b01ed6

Browse files
Larhzutorvalds
authored andcommitted
Decompressors: add missing INIT (i.e. __init)
Signed-off-by: Lasse Collin <lasse.collin@tukaani.org> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Alain Knaff <alain@knaff.lu> Cc: Albin Tonnerre <albin.tonnerre@free-electrons.com> Cc: Phillip Lougher <phillip@lougher.demon.co.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 8d0a1de commit 6b01ed6

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎lib/decompress_inflate.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
#define GZIP_IOBUF_SIZE (16*1024)
2929

30-
static int nofill(void *buffer, unsigned int len)
30+
static int INIT nofill(void *buffer, unsigned int len)
3131
{
3232
return -1;
3333
}

‎lib/decompress_unlzma.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ struct rc {
8282
#define RC_MODEL_TOTAL_BITS 11
8383

8484

85-
static int nofill(void *buffer, unsigned int len)
85+
static int INIT nofill(void *buffer, unsigned int len)
8686
{
8787
return -1;
8888
}
@@ -169,7 +169,7 @@ static inline void INIT rc_update_bit_0(struct rc *rc, uint16_t *p)
169169
rc->range = rc->bound;
170170
*p += ((1 << RC_MODEL_TOTAL_BITS) - *p) >> RC_MOVE_BITS;
171171
}
172-
static inline void rc_update_bit_1(struct rc *rc, uint16_t *p)
172+
static inline void INIT rc_update_bit_1(struct rc *rc, uint16_t *p)
173173
{
174174
rc->range -= rc->bound;
175175
rc->code -= rc->bound;

0 commit comments

Comments
 (0)