mirror of
https://github.com/torvalds/linux.git
synced 2024-11-28 07:01:32 +00:00
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>
This commit is contained in:
parent
153c46faf6
commit
1546541fbc
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user