[PATCH 5.18 010/879] riscv: Move alternative length validation into subsection