[PATCH]: bunzip2: Fix warning in get_next_block()
From: Prarit Bhargava
Date: Sat May 22 2010 - 10:04:18 EST
Fix checkstack compile warning in get_next_block():
lib/decompress_bunzip2.c: In function `get_next_block':
lib/decompress_bunzip2.c:511: warning: the frame size of 1920 bytes is larger than 1024 bytes
Signed-off-by: Prarit Bhargava <prarit@xxxxxxxxxx>
diff --git a/lib/decompress_bunzip2.c b/lib/decompress_bunzip2.c
index a4e971d..8a78788 100644
--- a/lib/decompress_bunzip2.c
+++ b/lib/decompress_bunzip2.c
@@ -158,9 +158,10 @@ static int INIT get_next_block(struct bunzip_data *bd)
int *base = NULL;
int *limit = NULL;
int dbufCount, nextSym, dbufSize, groupCount, selector,
- i, j, k, t, runPos, symCount, symTotal, nSelectors,
- byteCount[256];
- unsigned char uc, symToByte[256], mtfSymbol[256], *selectors;
+ i, j, k, t, runPos, symCount, symTotal, nSelectors;
+ static int byteCount[256];
+ unsigned char uc, *selectors;
+ static unsigned char symToByte[256], mtfSymbol[256];
unsigned int *dbuf, origPtr;
dbuf = bd->dbuf;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/