All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kairui Song <kasong@redhat.com>
To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org
Cc: Kairui Song <kasong@redhat.com>
Subject: [PATCH] ARM: mark free_initrd_mem as __init
Date: Thu, 22 Apr 2021 00:34:38 +0800	[thread overview]
Message-ID: <20210421163438.1719964-1-kasong@redhat.com> (raw)

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


WARNING: multiple messages have this Message-ID (diff)
From: Kairui Song <kasong@redhat.com>
To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org
Cc: Kairui Song <kasong@redhat.com>
Subject: [PATCH] ARM: mark free_initrd_mem as __init
Date: Thu, 22 Apr 2021 00:34:38 +0800	[thread overview]
Message-ID: <20210421163438.1719964-1-kasong@redhat.com> (raw)

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

             reply	other threads:[~2021-04-21 17:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-21 16:34 Kairui Song [this message]
2021-04-21 16:34 ` [PATCH] ARM: mark free_initrd_mem as __init Kairui Song

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210421163438.1719964-1-kasong@redhat.com \
    --to=kasong@redhat.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.