Felix Held has submitted this change. ( https://review.coreboot.org/c/coreboot/+/84618?usp=email )
Change subject: soc/mt/mt8196/gpio_eint.c: Add assert message ......................................................................
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 --- M src/soc/mediatek/mt8196/gpio_eint.c 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Felix Held: Looks good to me, approved build bot (Jenkins): Verified
diff --git a/src/soc/mediatek/mt8196/gpio_eint.c b/src/soc/mediatek/mt8196/gpio_eint.c index edbae73..f24860d 100644 --- a/src/soc/mediatek/mt8196/gpio_eint.c +++ b/src/soc/mediatek/mt8196/gpio_eint.c @@ -256,7 +256,7 @@ [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) {