projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
153c46f
)
riscv: errata: alternative: mark vendor_patch_func __initdata
author
Jisheng Zhang
<jszhang@kernel.org>
Sun, 28 Nov 2021 16:07:40 +0000
(
00:07
+0800)
committer
Palmer 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
patch
|
blob
|
history
diff --git
a/arch/riscv/errata/alternative.c
b/arch/riscv/errata/alternative.c
index 3b15885db70b22287d475ecf43c1cbe4604a50b9..e8b4a0fe488c14afcda9b9081989cd237df68948 100644
(file)
--- 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)
{