* [PATCH] arm: mm: add __init section marker to free_initrd_mem
@ 2015-07-27 2:24 Wang Long
0 siblings, 0 replies; only message in thread
From: Wang Long @ 2015-07-27 2:24 UTC (permalink / raw)
To: linux
Cc: catalin.marinas, keescook, nico, akpm, Yalin.Wang,
vladimir.murzin, victor.kamensky, ggdavisiv, linux-arm-kernel,
linux-kernel, wanglong, peifeiyue, long.wanglong
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: Wang Long <long.wanglong@huawei.com>
---
arch/arm/mm/init.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c
index 8a63b4c..1eaf5d1 100644
--- a/arch/arm/mm/init.c
+++ b/arch/arm/mm/init.c
@@ -728,9 +728,9 @@ void free_initmem(void)
#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 (start == initrd_start)
--
1.8.3.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-07-27 2:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-27 2:24 [PATCH] arm: mm: add __init section marker to free_initrd_mem Wang Long
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®