Skip to content

Commit 3df952a

Browse files
xhackerustcpalmer-dabbelt
authored andcommitted
riscv: Add __init section marker to some functions again
These functions are not needed after booting, so mark them as __init to move them to the __init section. Signed-off-by: Jisheng Zhang <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 8c9f494 commit 3df952a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arch/riscv/kernel/cpufeature.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ bool __riscv_isa_extension_available(const unsigned long *isa_bitmap, int bit)
5959
}
6060
EXPORT_SYMBOL_GPL(__riscv_isa_extension_available);
6161

62-
void riscv_fill_hwcap(void)
62+
void __init riscv_fill_hwcap(void)
6363
{
6464
struct device_node *node;
6565
const char *isa;

arch/riscv/mm/context.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ static inline void set_mm(struct mm_struct *mm, unsigned int cpu)
213213
set_mm_noasid(mm);
214214
}
215215

216-
static int asids_init(void)
216+
static int __init asids_init(void)
217217
{
218218
unsigned long old;
219219

0 commit comments

Comments
 (0)