Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 662ba3db authored by Wang Long's avatar Wang Long Committed by Will Deacon
Browse files

arm64: mm: add __init section marker to free_initrd_mem



It is not needed after booting, this patch moves the
free_initrd_mem() function to the __init section.

This patch also make keep_initrd __initdata, to reduce kernel
size.

Signed-off-by: default avatarWang Long <long.wanglong@huawei.com>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent 309585b0
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -358,9 +358,9 @@ void free_initmem(void)


#ifdef CONFIG_BLK_DEV_INITRD
#ifdef CONFIG_BLK_DEV_INITRD


static int keep_initrd;
static int keep_initrd __initdata;


void free_initrd_mem(unsigned long start, unsigned long end)
void __init free_initrd_mem(unsigned long start, unsigned long end)
{
{
	if (!keep_initrd)
	if (!keep_initrd)
		free_reserved_area((void *)start, (void *)end, 0, "initrd");
		free_reserved_area((void *)start, (void *)end, 0, "initrd");