[PATCH] riscv: Apply a static assert to riscv_isa_ext_id

Palmer Dabbelt palmer at rivosinc.com
Tue Dec 13 08:21:42 PST 2022


On Thu, 1 Dec 2022 12:37:50 +0100, Andrew Jones wrote:
> 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.
> 
> [...]

Applied, thanks!

[1/1] riscv: Apply a static assert to riscv_isa_ext_id
      https://git.kernel.org/palmer/c/e923f4625ed3

Best regards,
-- 
Palmer Dabbelt <palmer at rivosinc.com>



More information about the linux-riscv mailing list