coreboot/src/soc/amd/common
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
..
acpi src/soc: Remove space before tab 2022-02-17 17:12:49 +00:00
block commonlib: Substitude macro "__unused" in compiler.h 2022-07-14 23:08:09 +00:00
fsp soc/amd/dmi.c: Fix implicit enum typing 2022-03-25 19:52:23 +00:00
pi Replace some ENV_ROMSTAGE with ENV_RAMINIT 2022-06-07 12:53:19 +00:00
psp_verstage commonlib: Substitude macro "__unused" in compiler.h 2022-07-14 23:08:09 +00:00
vboot soc/amd/{common/vboot,cezanne}: Copy S0i3 verstage logs into cbmem 2022-03-10 17:23:35 +00:00
Kconfig.common soc/amd/common/psp_verstage: Introduce boot device driver 2021-09-27 13:40:03 +00:00
Makefile.inc soc/amd/common: move block/pi out of the block folder 2021-09-24 15:47:59 +00:00