That's not how it works. lib/inflate.c is _never_ compiled on its own.
The file is #include'd from drivers/block/rd.c (if you configure for
ramdisk), hence it gets a private copy. Also several
arch/*/boot/compressed/misc.c #include a copy, but this doesn't go
in the kernel image proper. It's for kernel decompressor code that
gets prepended to a gzipped kernel image and is used to unzip that
image on boot (and later thrown away).
And these are the _only_ uses of lib/inflate.c.
nicholas@binary9.net said:
> Isn't it used for actual kernel decomp? At the bottom of
> arch/i386/boot/compressed/misc.c there is a call to gunzip().
Yes, but see above.
Aside from the config.gz issue there is still the code multiplication
of PPP, ftape, ramdisk, and ext2 compression (if you use the e2compr
patches) each having their _own_ gzip library (with potentially more
to come, e2compr also has LZW, LZV, LZO, and BZIP). Any takers? :)
Cheers, Roderich
-- Vinny: Is it possible, the two utes... Judge: Eh, the two what? Uh, uh, what was that word? Vinny: Uh, what word? Judge: Two what? Vinny: What? Judge: Uh, did you say 'Utes'? Vinny: Yeah, two utes. Judge: What is a ute? Vinny: Oh, excuse me, your honor. Two YOUTHS. Roderich Schupp mailto:rsch@ExperTeam.de ExperTeam GmbH http://www.experteam.de/ Munich, Germany linux:2.1.103
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu