All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: mark free_initrd_mem as __init
@ 2021-04-21 16:34 ` Kairui Song
  0 siblings, 0 replies; 2+ messages in thread
From: Kairui Song @ 2021-04-21 16:34 UTC (permalink / raw)
  To: linux-arm-kernel, linux-kernel; +Cc: Kairui Song

free_initrd_mem is only called from __init functions, and only used
during boot, so mark it __init.

Signed-off-by: Kairui Song <kasong@redhat.com>
---
 arch/arm/mm/init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c
index 828a2561b229..6db5c0d37d95 100644
--- a/arch/arm/mm/init.c
+++ b/arch/arm/mm/init.c
@@ -528,7 +528,7 @@ void free_initmem(void)
 }
 
 #ifdef CONFIG_BLK_DEV_INITRD
-void free_initrd_mem(unsigned long start, unsigned long end)
+void __init free_initrd_mem(unsigned long start, unsigned long end)
 {
 	if (start == initrd_start)
 		start = round_down(start, PAGE_SIZE);
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] ARM: mark free_initrd_mem as __init
@ 2021-04-21 16:34 ` Kairui Song
  0 siblings, 0 replies; 2+ messages in thread
From: Kairui Song @ 2021-04-21 16:34 UTC (permalink / raw)
  To: linux-arm-kernel, linux-kernel; +Cc: Kairui Song

free_initrd_mem is only called from __init functions, and only used
during boot, so mark it __init.

Signed-off-by: Kairui Song <kasong@redhat.com>
---
 arch/arm/mm/init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c
index 828a2561b229..6db5c0d37d95 100644
--- a/arch/arm/mm/init.c
+++ b/arch/arm/mm/init.c
@@ -528,7 +528,7 @@ void free_initmem(void)
 }
 
 #ifdef CONFIG_BLK_DEV_INITRD
-void free_initrd_mem(unsigned long start, unsigned long end)
+void __init free_initrd_mem(unsigned long start, unsigned long end)
 {
 	if (start == initrd_start)
 		start = round_down(start, PAGE_SIZE);
-- 
2.30.2


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-21 17:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-21 16:34 [PATCH] ARM: mark free_initrd_mem as __init Kairui Song
2021-04-21 16:34 ` Kairui Song

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.