diff options
author | Andrew Jones <[email protected]> | 2022-12-01 12:37:50 +0100 |
---|---|---|
committer | Palmer Dabbelt <[email protected]> | 2022-12-12 22:21:25 -0800 |
commit | e923f4625ed3ad7656c3f9f086c898798bafbbc5 (patch) | |
tree | 74a38b5b6659e88c3e8402a180b117ec8afead9f /lib/mpi/mpi-sub-ui.c | |
parent | c3ec1e8964fb0ca00c79936160a027bd8b47e140 (diff) |
riscv: Apply a static assert to riscv_isa_ext_id
Add a static assert to ensure a RISCV_ISA_EXT_* enum is never
created with a value >= RISCV_ISA_EXT_MAX. We can do this by
putting RISCV_ISA_EXT_ID_MAX to more work. Before it was
redundant with RISCV_ISA_EXT_MAX and hence only used to
document the limit. Now it grows with the enum and is used to
check the limit.
Signed-off-by: Andrew Jones <[email protected]>
Reviewed-by: Conor Dooley <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions