mirror of https://github.com/torvalds/linux.git
XZ_EXTERN was used to make internal functions static in the preboot code. However, in other decompressors this hasn't been done. On x86-64, this makes no difference to the kernel image size. Omit XZ_EXTERN and let some of the internal functions be extern in the preboot code. Omitting XZ_EXTERN from include/linux/xz.h fixes warnings in "make htmldocs" and makes the intradocument links to xz_dec functions work in Documentation/staging/xz.rst. The alternative would have been to add "XZ_EXTERN" to c_id_attributes in Documentation/conf.py but omitting XZ_EXTERN seemed cleaner. Link: https://lore.kernel.org/lkml/20240723205437.3c0664b0@kaneli/ Link: https://lkml.kernel.org/r/20240724110544.16430-1-lasse.collin@tukaani.org Signed-off-by: Lasse Collin <lasse.collin@tukaani.org> Tested-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc) Cc: Jonathan Corbet <corbet@lwn.net> Cc: Sam James <sam@gentoo.org> Cc: Albert Ou <aou@eecs.berkeley.edu> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Emil Renner Berthing <emil.renner.berthing@canonical.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Herbert Xu <herbert@gondor.apana.org.au> Cc: Joel Stanley <joel@jms.id.au> Cc: Jubin Zhong <zhongjubin@huawei.com> Cc: Jules Maselbas <jmaselbas@zdiv.net> Cc: Krzysztof Kozlowski <krzk@kernel.org> Cc: Palmer Dabbelt <palmer@dabbelt.com> Cc: Paul Walmsley <paul.walmsley@sifive.com> Cc: Randy Dunlap <rdunlap@infradead.org> Cc: Rui Li <me@lirui.org> Cc: Simon Glass <sjg@chromium.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Will Deacon <will@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> |
||
|---|---|---|
| .. | ||
| dts | ||
| .gitignore | ||
| 4xx.c | ||
| 4xx.h | ||
| 44x.h | ||
| Makefile | ||
| README | ||
| addnote.c | ||
| bamboo.c | ||
| cpm-serial.c | ||
| crt0.S | ||
| crtsavres.S | ||
| cuboot-8xx.c | ||
| cuboot-52xx.c | ||
| cuboot-83xx.c | ||
| cuboot-85xx-cpm2.c | ||
| cuboot-85xx.c | ||
| cuboot-824x.c | ||
| cuboot-amigaone.c | ||
| cuboot-bamboo.c | ||
| cuboot-ebony.c | ||
| cuboot-katmai.c | ||
| cuboot-pq2.c | ||
| cuboot-rainier.c | ||
| cuboot-sam440ep.c | ||
| cuboot-sequoia.c | ||
| cuboot-taishan.c | ||
| cuboot-warp.c | ||
| cuboot-yosemite.c | ||
| cuboot.c | ||
| cuboot.h | ||
| dcr.h | ||
| decompress.c | ||
| devtree.c | ||
| div64.S | ||
| ebony.c | ||
| elf.h | ||
| elf_util.c | ||
| ep88xc.c | ||
| ep8248e.c | ||
| epapr-wrapper.c | ||
| epapr.c | ||
| fixed-head.S | ||
| fixup-headers.sed | ||
| fsl-soc.c | ||
| fsl-soc.h | ||
| gamecube-head.S | ||
| gamecube.c | ||
| hack-coff.c | ||
| holly.c | ||
| install.sh | ||
| io.h | ||
| libfdt-wrapper.c | ||
| libfdt_env.h | ||
| main.c | ||
| microwatt.c | ||
| mktree.c | ||
| motload-head.S | ||
| mpc8xx.c | ||
| mpc8xx.h | ||
| mpc52xx-psc.c | ||
| mvme5100.c | ||
| mvme7100.c | ||
| ns16550.c | ||
| of.c | ||
| of.h | ||
| ofconsole.c | ||
| oflib.c | ||
| opal-calls.S | ||
| opal.c | ||
| ops.h | ||
| page.h | ||
| planetcore.c | ||
| planetcore.h | ||
| ppc_asm.h | ||
| ppcboot.h | ||
| pq2.c | ||
| pq2.h | ||
| ps3-head.S | ||
| ps3-hvcall.S | ||
| ps3.c | ||
| pseries-head.S | ||
| redboot-8xx.c | ||
| redboot-83xx.c | ||
| redboot.h | ||
| reg.h | ||
| rs6000.h | ||
| serial.c | ||
| simple_alloc.c | ||
| simpleboot.c | ||
| stdbool.h | ||
| stdint.h | ||
| stdio.c | ||
| stdio.h | ||
| stdlib.c | ||
| stdlib.h | ||
| string.S | ||
| string.h | ||
| swab.h | ||
| treeboot-akebono.c | ||
| treeboot-bamboo.c | ||
| treeboot-currituck.c | ||
| treeboot-ebony.c | ||
| treeboot-iss4xx.c | ||
| types.h | ||
| ugecon.c | ||
| ugecon.h | ||
| util.S | ||
| wii-head.S | ||
| wii.c | ||
| wrapper | ||
| xz_config.h | ||
| zImage.coff.lds.S | ||
| zImage.lds.S | ||
| zImage.ps3.lds.S | ||
README
To extract the kernel vmlinux, System.map, .config or initrd from the zImage binary: objcopy -j .kernel:vmlinux -O binary zImage vmlinux.gz objcopy -j .kernel:System.map -O binary zImage System.map.gz objcopy -j .kernel:.config -O binary zImage config.gz objcopy -j .kernel:initrd -O binary zImage.initrd initrd.gz Peter