summaryrefslogtreecommitdiff
path: root/src/soc/mediatek
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2024-10-02 12:27:52 +0200
committerFelix Held <felix-coreboot@felixheld.de>2024-10-02 12:42:32 +0000
commitbc853b72aca27aba3431be9775373755ea9b6435 (patch)
treef60eb0e062ace497b049ac59522c4c6207031982 /src/soc/mediatek
parent744e93e8b0f7214f4b9867a896dfa40087608faf (diff)
soc/mt/mt8196/gpio_eint.c: Add assert message
This fixes the following warning with clang (18.1.6): src/soc/mediatek/mt8196/gpio_eint.c:259:44: error: '_Static_assert' with no message is a C23 extension [-Werror,-Wc23-extensions] 259 | _Static_assert(ARRAY_SIZE(eint_data) == 293); | ^ | Change-Id: I934b6d7ee8e8a0c204a4e328331c3ff3cd0f07de Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/84618 Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/mediatek')
-rw-r--r--src/soc/mediatek/mt8196/gpio_eint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/mediatek/mt8196/gpio_eint.c b/src/soc/mediatek/mt8196/gpio_eint.c
index edbae73939..f24860d128 100644
--- a/src/soc/mediatek/mt8196/gpio_eint.c
+++ b/src/soc/mediatek/mt8196/gpio_eint.c
@@ -256,7 +256,7 @@ static struct eint_info eint_data[] = {
[291] = { EINT_C, 20 },
[292] = { EINT_C, 21 },
};
-_Static_assert(ARRAY_SIZE(eint_data) == 293);
+_Static_assert(ARRAY_SIZE(eint_data) == 293, "Incorrect eint_data size");
void gpio_calc_eint_pos_bit(gpio_t gpio, u32 *pos, u32 *bit)
{