diff options
| author | Jisheng Zhang <[email protected]> | 2021-11-28 16:07:40 +0000 |
|---|---|---|
| committer | Palmer Dabbelt <[email protected]> | 2022-01-09 19:02:46 +0000 |
| commit | 1546541fbc90b0dcadcdadf1c828daf0a8f9d88d (patch) | |
| tree | 5e8ef6200312abd501a8a52e12306193c4b70a66 | |
| parent | riscv: head: make secondary_start_common() static (diff) | |
| download | kernel-1546541fbc90b0dcadcdadf1c828daf0a8f9d88d.tar.gz kernel-1546541fbc90b0dcadcdadf1c828daf0a8f9d88d.zip | |
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 <[email protected]>
Signed-off-by: Palmer Dabbelt <[email protected]>
| -rw-r--r-- | arch/riscv/errata/alternative.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/riscv/errata/alternative.c b/arch/riscv/errata/alternative.c index 3b15885db70b..e8b4a0fe488c 100644 --- a/arch/riscv/errata/alternative.c +++ b/arch/riscv/errata/alternative.c @@ -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) { |
