coreboot/src/ec
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
..
51nb/npce985la0dx
acpi ec/acpi: Return error codes on timeout 2022-06-24 03:04:23 +00:00
apple/acpi ec/apple/acpi: Replace Index() with ASL 2.0 syntax 2022-01-01 13:59:39 +00:00
compal/ene932 src/ec: Get rid of unnecessary blank line {before,after} brace 2022-02-04 20:16:42 +00:00
google commonlib: Substitude macro "__unused" in compiler.h 2022-07-14 23:08:09 +00:00
hp/kbc1126 ec/hp/kbc1126/acpi: Replace Add(a,b,c) with ASL 2.0 syntax 2021-12-31 00:25:05 +00:00
kontron ec/kontron/kempld: Fix IORESOURCE_IRQ 2022-06-22 08:55:15 +00:00
lenovo ec/lenovo/pmh7: Add IORESOURCE_ASSIGNED flag 2022-06-22 08:55:47 +00:00
purism ec/purism/librem: Remove unused Kconfig file 2022-04-24 21:26:21 +00:00
quanta ec/quanta/it8518/acpi: Replace LGreater(a,b) with ASL 2.0 syntax 2022-06-09 09:17:21 +00:00
roda/it8518 ec/roda/it8518/acpi: Remove unnecessary assignments 2021-07-28 13:50:59 +00:00
smsc/mec1308 ec/smsc/mec1308/acpi: Replace LLessEqual(a,b) with ASL 2.0 syntax 2022-06-09 09:19:14 +00:00
starlabs/merlin ec/starlabs/merlin/kbl: Add required headers for dead_code_t 2022-05-28 14:16:19 +00:00
system76/ec ec/system76/ec: Hide ACPI device S76D 2022-07-09 17:59:04 +00:00
ec.h