inflate: refactor boot-time inflate code
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest20 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/20 | inflate: lindent and manual formatting changeslib/ | +883 | 0 replies | |
| 2/20 | inflate: kill legacy bitslib/ | +115 | 0 replies | |
| 3/20 | inflate: clean up input logiclib/ | +94 | 0 replies | |
| 4/20 | inflate: start moving globals into iostatelib/ | +121 | 0 replies | |
| 5/20 | inflate: cleanup Huffman table codelib/ | +63 | 0 replies | |
| 6/20 | inflate: internalize CRC calculation, cleanup table calculationlib/ | +22 | 0 replies | |
| 7/20 | inflate: eliminate memzero usagelib/ | +3 | 0 replies | |
| 8/20 | inflate: (arch) kill unneeded declarationsarch/ arch/ arch/ +9 more | +8 | 0 replies | |
| 9/20 | inflate: (arch) refactor inflate malloc codearch/ arch/ arch/ +10 more | +88 | 0 replies | |
| 10/20 | inflate: (arch) kill external CRC calculationarch/ arch/ arch/ +10 more | +47 | 0 replies | |
| 11/20 | inflate: (arch) kill get_bytearch/ arch/ arch/ +11 more | +75 | 0 replies | |
| 12/20 | inflate: internalize (arch) most of the output window handlingarch/ arch/ arch/ +10 more | +104 | 0 replies | |
| 13/20 | inflate: (arch) kill silly zlib typedefsarch/ arch/ arch/ +9 more | +32 | 0 replies | |
| 14/20 | inflate: (arch) use an error callback rather than a globalarch/ arch/ arch/ +10 more | +52 | 0 replies | |
| 15/20 | inflate: (arch) tidy user declarationsarch/ arch/ arch/ +9 more | +41 | 0 replies | |
| 16/20 | inflate: remove legacy DEBG macroslib/ | +1 | 0 replies | |
| 17/20 | inflate: mark some arrays as initdatainit/ init/ lib/ | +10 | 0 replies | |
| 18/20 | inflate: minor const changeslib/ | +11 | 0 replies | |
| 19/20 | inflate: (arch) use proper linkingarch/ arch/ arch/ +21 more | +89 | 0 replies | |
| 20/20 | inflate: make in-core inflate share common CRClib/ | +26 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/20] inflate: refactor boot-time inflate code
This is a refactored version of the lib/inflate.c:
- clean up some really ugly code
- clean up atrocities like '#include "../../../lib/inflate.c"'
- drop a ton of cut and paste code from the kernel boot
- move towards making the boot decompressor pluggable
- move towards unifying the multiple inflate implementations
- save space
Recent changes include:
- use proper pointer types for minimal malloc arena
- fix up static const usage to make ARM happy
- fix compile with CONFIG_MODVERSIONS
This touches 11 architectures, which makes things slightly interesting. Rather than break the patches out by arch, I've gone the route of making a number of small incremental changes that sweep across the tree. Patches that touch the per-arch code are marked "(arch)".
I've been primarily testing this on x86, but various versions of this code have gotten testing on a variety of architectures as part of my linux-tiny tree.
(This work was sponsored in part by the CE Linux Forum.)