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>
This commit is contained in:
Arthur Heymans 2024-10-02 12:27:52 +02:00 committed by Felix Held
commit bc853b72ac

View file

@ -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)
{