Skip to content

Commit 1546541

Browse files
xhackerustcpalmer-dabbelt
authored andcommitted
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: Jisheng Zhang <jszhang@kernel.org> Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
1 parent 153c46f commit 1546541

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/riscv/errata/alternative.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ static struct cpu_manufacturer_info_t {
2222
} cpu_mfr_info;
2323

2424
static void (*vendor_patch_func)(struct alt_entry *begin, struct alt_entry *end,
25-
unsigned long archid, unsigned long impid);
25+
unsigned long archid,
26+
unsigned long impid) __initdata;
2627

2728
static inline void __init riscv_fill_cpu_mfr_info(void)
2829
{

0 commit comments

Comments
 (0)