coreboot-kgpe-d16/src/arch/riscv
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
..
include *.h: Fix up typos in guarding 2022-05-11 06:04:10 +00:00
arch_timer.c
boot.c cbfs: Rename TYPE_FIT to TYPE_FIT_PAYLOAD 2022-06-01 19:45:08 +00:00
bootblock.S
fit_payload.c
fp_asm.S
Kconfig
Makefile.inc
mcall.c
misaligned.c
misc.c
opensbi.c commonlib: Clean up compiler.h 2022-06-07 12:34:35 +00:00
payload.c
pmp.c
ramstage.S
romstage.c
sbi.c commonlib: Substitude macro "__unused" in compiler.h 2022-07-14 23:08:09 +00:00
smp.c arch/riscv: Fix some SMP related headers 2022-01-19 19:29:42 +00:00
tables.c
trap_handler.c
trap_util.S
virtual_memory.c