[openwrt/openwrt] bcm47xx: Fix lzma-loader compilation
LEDE Commits
lede-commits at lists.infradead.org
Thu Dec 4 12:42:56 PST 2025
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/5aeaddc0c80eea00872eb17a170d6b0c8d7e9c23
commit 5aeaddc0c80eea00872eb17a170d6b0c8d7e9c23
Author: Hauke Mehrtens <hauke at hauke-m.de>
AuthorDate: Thu Dec 4 21:33:13 2025 +0100
bcm47xx: Fix lzma-loader compilation
Fixes:
```
LzmaDecode.c: In function 'RangeDecoderReverseBitTreeDecode':
LzmaDecode.c:199:5: error: 'symbol' undeclared (first use in this function)
199 | symbol |= (bit << i);
| ^~~~~~
LzmaDecode.c:199:5: note: each undeclared identifier is reported only once for each function it appears in
```
Fixes: 4ffd5aa239c1 ("treewide: fix coccinelle checks")
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
target/linux/bcm47xx/image/lzma-loader/src/LzmaDecode.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/target/linux/bcm47xx/image/lzma-loader/src/LzmaDecode.c b/target/linux/bcm47xx/image/lzma-loader/src/LzmaDecode.c
index a4aeda5f1f..900c7e7b49 100644
--- a/target/linux/bcm47xx/image/lzma-loader/src/LzmaDecode.c
+++ b/target/linux/bcm47xx/image/lzma-loader/src/LzmaDecode.c
@@ -185,6 +185,7 @@ int RangeDecoderReverseBitTreeDecode(CProb *probs, int numLevels, CRangeDecoder
{
int mi = 1;
int i;
+ int symbol = 0;
#ifdef _LZMA_LOC_OPT
RC_INIT_VAR
#endif
@@ -202,7 +203,7 @@ int RangeDecoderReverseBitTreeDecode(CProb *probs, int numLevels, CRangeDecoder
#ifdef _LZMA_LOC_OPT
RC_FLUSH_VAR
#endif
- return 0;
+ return symbol;
}
Byte LzmaLiteralDecode(CProb *probs, CRangeDecoder *rd)
More information about the lede-commits
mailing list