coreboot-kgpe-d16/util/cbfstool
Bill XIE ac136250b2 commonlib: Substitude macro "__unused" in compiler.h
Since there are many identifiers whose name contain "__unused" in
headers of musl libc, introducing a macro which expands "__unused" to
the source of a util may have disastrous effect during its compiling
under a musl-based platform.

However, it is hard to detect musl at build time as musl is notorious
for having explicitly been refusing to add a macro like "__MUSL__" to
announce its own presence.

Using __always_unused and __maybe_unused for everything may be a good
idea. This is how it works in the Linux kernel, so that would at least
make us match some other standard rather than doing our own thing
(especially since the other compiler.h shorthand macros are also
inspired by Linux).

Signed-off-by: Bill XIE <persmule@hardenedlinux.org>
Change-Id: I547ae3371d7568f5aed732ceefe0130a339716a9
Reviewed-on: https://review.coreboot.org/c/coreboot/+/65717
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Singer <felixsinger@posteo.net>
Reviewed-by: Julius Werner <jwerner@chromium.org>
2022-07-14 23:08:09 +00:00
..
bpdt_formats
console
flashmap util/cbfstool: Remove redundant endian.h include 2022-01-04 11:50:11 +00:00
fpt_formats
lz4 util: Fix a few spelling mistakes 2022-05-30 04:25:07 +00:00
lzma
tests
.gitignore
EXAMPLE
Makefile utils/cbfstool: Fix building with `make test-tools` 2022-02-27 18:29:24 +00:00
Makefile.inc util/cbfstool: Set `USE_FLASHROM=0` to build vboot 2022-06-19 18:46:04 +00:00
ProcessorBind.h
amdcompress.c
cbfs-mkpayload.c
cbfs-mkstage.c util/cbfstool: Replace swab.h with commonlib/bsd/sysincludes.h 2022-01-10 21:32:34 +00:00
cbfs-payload-linux.c
cbfs.h cbfs: Add CBFS_TYPE_INTEL_FIT and exclude it from CBFS verification 2022-06-01 19:45:22 +00:00
cbfs_glue.h
cbfs_image.c util/cbfstool: Do minor fixes 2022-01-12 16:15:09 +00:00
cbfs_image.h
cbfs_sections.c
cbfs_sections.h
cbfscomptool.c
cbfstool.c commonlib: Substitude macro "__unused" in compiler.h 2022-07-14 23:08:09 +00:00
coff.h
common.c util/cbfstool/common.c: Deduplicate buffer_create() logic 2022-06-16 20:38:53 +00:00
common.h util/cbfstool: Replace swab.h with commonlib/bsd/sysincludes.h 2022-01-10 21:32:34 +00:00
compress.c
cse_fpt.c
cse_fpt.h
cse_helpers.c
cse_helpers.h
cse_serger.c
cse_serger.h
default-x86.fmd
default.fmd
description.md
elf.h
elfheaders.c
elfparsing.h
elogtool.c util/cbfstool: Decouple elogtool from vboot_ref flashrom code 2022-06-16 20:38:41 +00:00
eventlog.c treewide: Unify Google branding 2022-07-04 14:02:26 +00:00
eventlog.h
fdt.h
fit.c
fit.h
flashmap_tests.c
flashrom.c treewide: Unify Google branding 2022-07-04 14:02:26 +00:00
flashrom.h treewide: Unify Google branding 2022-07-04 14:02:26 +00:00
fmap_from_fmd.c
fmap_from_fmd.h
fmaptool.c
fmd.c
fmd.h
fmd_parser.c_shipped
fmd_parser.h_shipped
fmd_parser.y
fmd_scanner.c_shipped
fmd_scanner.h_shipped
fmd_scanner.l
fv.h
ifittool.c util/ifittool: Fix clearing FIT when setting the pointer 2022-04-01 09:29:19 +00:00
ifwitool.c
linux.h
linux_trampoline.S cbfstool/linux_trampoline: Fill the ACPI RSDP entry 2022-03-09 14:21:26 +00:00
linux_trampoline.c cbfstool/linux_trampoline: Fill the ACPI RSDP entry 2022-03-09 14:21:26 +00:00
linux_trampoline.h
option.h
partitioned_file.c
partitioned_file.h
platform_fixups.c cbfstool: MediaTek: Hash bootblock.bin for CBFS_VERIFICATION 2022-05-05 14:18:38 +00:00
rmodtool.c
rmodule.c
rmodule.h
xdr.c