Skip to content

Commit

Permalink
Decompressors: add missing INIT (i.e. __init)
Browse files Browse the repository at this point in the history
Signed-off-by: Lasse Collin <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Cc: Alain Knaff <[email protected]>
Cc: Albin Tonnerre <[email protected]>
Cc: Phillip Lougher <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Larhzu authored and torvalds committed Jan 13, 2011
1 parent 8d0a1de commit 6b01ed6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/decompress_inflate.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

#define GZIP_IOBUF_SIZE (16*1024)

static int nofill(void *buffer, unsigned int len)
static int INIT nofill(void *buffer, unsigned int len)
{
return -1;
}
Expand Down
4 changes: 2 additions & 2 deletions lib/decompress_unlzma.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ struct rc {
#define RC_MODEL_TOTAL_BITS 11


static int nofill(void *buffer, unsigned int len)
static int INIT nofill(void *buffer, unsigned int len)
{
return -1;
}
Expand Down Expand Up @@ -169,7 +169,7 @@ static inline void INIT rc_update_bit_0(struct rc *rc, uint16_t *p)
rc->range = rc->bound;
*p += ((1 << RC_MODEL_TOTAL_BITS) - *p) >> RC_MOVE_BITS;
}
static inline void rc_update_bit_1(struct rc *rc, uint16_t *p)
static inline void INIT rc_update_bit_1(struct rc *rc, uint16_t *p)
{
rc->range -= rc->bound;
rc->code -= rc->bound;
Expand Down

0 comments on commit 6b01ed6

Please sign in to comment.