lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20210421163438.1719964-1-kasong@redhat.com>
Date:   Thu, 22 Apr 2021 00:34:38 +0800
From:   Kairui Song <kasong@...hat.com>
To:     linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Cc:     Kairui Song <kasong@...hat.com>
Subject: [PATCH] ARM: mark free_initrd_mem as __init

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

Signed-off-by: Kairui Song <kasong@...hat.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ