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:
parent
744e93e8b0
commit
bc853b72ac
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue