projects/linux·commit 6b01ed64

Decompressors: add missing INIT (i.e. __init)

6b01ed64 · Lasse Collin <[email protected]> · 2011-01-12 17:01:13 -08:00

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]>
Commit
6b01ed64c19b52121a717274d271d9915f8d3e94
Parents
8d0a1dec

Changes

2 files changed · +3 −3

FileStatusAddDelContent
lib/decompress_inflate.cmodified+1−1View file
lib/decompress_unlzma.cmodified+2−2View file

lib/decompress_inflate.c

View file
diff --git a/lib/decompress_inflate.c b/lib/decompress_inflate.c
index fc686c7..1eea07e 100644
--- a/lib/decompress_inflate.c
+++ b/lib/decompress_inflate.c
@@ -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;
}

lib/decompress_unlzma.c

View file
diff --git a/lib/decompress_unlzma.c b/lib/decompress_unlzma.c
index ca82fde..951f727 100644
--- a/lib/decompress_unlzma.c
+++ b/lib/decompress_unlzma.c
@@ -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;
}
@@ -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;