Skip to content

Commit 1aed28f

Browse files
Jisheng Zhangwildea01
authored andcommitted
arm64: vdso: add __init section marker to alloc_vectors_page
It is not needed after booting, this patch moves the alloc_vectors_page function to the __init section. Acked-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Jisheng Zhang <jszhang@marvell.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
1 parent 67060ed commit 1aed28f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/kernel/vdso.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ struct vdso_data *vdso_data = &vdso_data_store.data;
5555
*/
5656
static struct page *vectors_page[1];
5757

58-
static int alloc_vectors_page(void)
58+
static int __init alloc_vectors_page(void)
5959
{
6060
extern char __kuser_helper_start[], __kuser_helper_end[];
6161
extern char __aarch32_sigret_code_start[], __aarch32_sigret_code_end[];

0 commit comments

Comments
 (0)