Commit 1546541f authored by Jisheng Zhang's avatar Jisheng Zhang Committed by Palmer Dabbelt

riscv: errata: alternative: mark vendor_patch_func __initdata

The function pointer vendor_patch_func is only used during init, so
mark it as __initdata.
Signed-off-by: default avatarJisheng Zhang <jszhang@kernel.org>
Signed-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
parent 153c46fa
...@@ -22,7 +22,8 @@ static struct cpu_manufacturer_info_t { ...@@ -22,7 +22,8 @@ static struct cpu_manufacturer_info_t {
} cpu_mfr_info; } cpu_mfr_info;
static void (*vendor_patch_func)(struct alt_entry *begin, struct alt_entry *end, 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) static inline void __init riscv_fill_cpu_mfr_info(void)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment