riscv: alternatives: Remove unnecessary define and unused struct
authorAndrew Jones <ajones@ventanamicro.com>
Fri, 24 Feb 2023 15:45:58 +0000 (16:45 +0100)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 15 Mar 2023 03:51:22 +0000 (20:51 -0700)
commitce06b42a4a96d46d4844f2b630af7d349a924a58
tree4cfa419c9d81919608a8faf9ff245e7bbf6f20b3
parenta3d095ac00faee0deb575ba053f0567b0d124d0b
riscv: alternatives: Remove unnecessary define and unused struct

A define and a struct were introduced with commit 6f4eea90465a
("riscv: Introduce alternative mechanism to apply errata solution"),
which introduced alternatives to RISC-V. The define is used for
an arbitrary string length, specific to sifive errata, so just use
the number directly there instead. The struct has never been used,
so remove it.

Signed-off-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Heiko Stuebner <heiko.stuebner@vrull.eu>
Link: https://lore.kernel.org/r/20230224154601.88163-4-ajones@ventanamicro.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/errata/sifive/errata.c
arch/riscv/include/asm/alternative.h