Skip to content

Commit 3b472f8

Browse files
xhackerustcpalmer-dabbelt
authored andcommitted
riscv: mm: mark CBO relate initialization funcs as __init
The two functions cbo_get_block_size() and riscv_init_cbo_blocksizes() are only called during booting, mark them as __init. Signed-off-by: Jisheng Zhang <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 31ca5d4 commit 3b472f8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

arch/riscv/mm/cacheflush.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ EXPORT_SYMBOL_GPL(riscv_cbom_block_size);
104104
unsigned int riscv_cboz_block_size;
105105
EXPORT_SYMBOL_GPL(riscv_cboz_block_size);
106106

107-
static void cbo_get_block_size(struct device_node *node,
108-
const char *name, u32 *block_size,
109-
unsigned long *first_hartid)
107+
static void __init cbo_get_block_size(struct device_node *node,
108+
const char *name, u32 *block_size,
109+
unsigned long *first_hartid)
110110
{
111111
unsigned long hartid;
112112
u32 val;
@@ -126,7 +126,7 @@ static void cbo_get_block_size(struct device_node *node,
126126
}
127127
}
128128

129-
void riscv_init_cbo_blocksizes(void)
129+
void __init riscv_init_cbo_blocksizes(void)
130130
{
131131
unsigned long cbom_hartid, cboz_hartid;
132132
u32 cbom_block_size = 0, cboz_block_size = 0;

0 commit comments

Comments
 (0)