riscv: errata: alternative: mark vendor_patch_func __initdata
authorJisheng Zhang <jszhang@kernel.org>
Sun, 28 Nov 2021 16:07:40 +0000 (00:07 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Sun, 9 Jan 2022 19:02:46 +0000 (11:02 -0800)
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>
arch/riscv/errata/alternative.c

index 3b15885..e8b4a0f 100644 (file)
@@ -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)
 {