Hi Guo, On Fri, Nov 25, 2022 at 1:09 AM Guo Ren <guoren@xxxxxxxxxx> wrote: > > On Fri, Nov 25, 2022 at 1:22 AM Prabhakar <prabhakar.csengg@xxxxxxxxx> wrote: > > > > From: Lad Prabhakar <prabhakar.mahadev-lad.rj@xxxxxxxxxxxxxx> > > > > This patch is added just for building purpose, as patch [0] will export > > this in its next version. > > > > https://patchwork.kernel.org/project/linux-riscv/patch/20221110164924.529386-6-heiko@xxxxxxxxx/ > > > > Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@xxxxxxxxxxxxxx> > > --- > > Note, as Heiko will be exporting riscv_alternative_fix_auipc_jalr() function > > so that it can be used other erratas Ive just included for compilation. > > --- > > arch/riscv/errata/andes/errata.c | 71 ++++++++++++++++++++++++++++++++ > > 1 file changed, 71 insertions(+) > > > > diff --git a/arch/riscv/errata/andes/errata.c b/arch/riscv/errata/andes/errata.c > > index ec3e052ca8c7..4061ad4983bc 100644 > > --- a/arch/riscv/errata/andes/errata.c > > +++ b/arch/riscv/errata/andes/errata.c > > @@ -13,9 +13,80 @@ > > #include <asm/alternative.h> > > #include <asm/cacheflush.h> > > #include <asm/errata_list.h> > > +#include <asm/parse_asm.h> > > #include <asm/patch.h> > > +#include <asm/sbi.h> > > #include <asm/vendorid_list.h> > > > > +/* Copy of Heiko's code from patch [0] > > + * [0] https://patchwork.kernel.org/project/linux-riscv/patch/20221110164924.529386-6-heiko@xxxxxxxxx/ > Move it to commit-msg. No link in the code. > This patch is *not* to be merged and is just included for compilation purposes only. Cheers, Prabhakar