Skip to content

Commit

Permalink
riscv: errata: alternative: mark vendor_patch_func __initdata
Browse files Browse the repository at this point in the history
The function pointer vendor_patch_func is only used during init, so
mark it as __initdata.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
  • Loading branch information
Jisheng Zhang authored and Palmer Dabbelt committed Jan 9, 2022
1 parent 153c46f commit 1546541
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/riscv/errata/alternative.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ static struct cpu_manufacturer_info_t {
} cpu_mfr_info;

static void (*vendor_patch_func)(struct alt_entry *begin, struct alt_entry *end,
unsigned long archid, unsigned long impid);
unsigned long archid,
unsigned long impid) __initdata;

static inline void __init riscv_fill_cpu_mfr_info(void)
{
Expand Down

0 comments on commit 1546541

Please sign in to comment.