Skip to content

Commit 67e24bc

Browse files
htejunH. Peter Anvin
authored andcommitted
memblock: Use __meminit[data] instead of __init[data]
From 19ab281ed67b87a6623d725237a7333ca79f1e75 Mon Sep 17 00:00:00 2001 From: Tejun Heo <tj@kernel.org> Date: Thu, 14 Jul 2011 11:22:16 +0200 memblock will be extended to include early_node_map[], which is also used during memory hotplug. Make memblock use __meminit[data] instead of __init[data] so that memory hotplug code can safely reference it. Signed-off-by: Tejun Heo <tj@kernel.org> Link: http://lkml.kernel.org/r/20110714094203.GE3455@htj.dyndns.org Reported-by: Yinghai Lu <yinghai@kernel.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
1 parent 784656f commit 67e24bc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎include/linux/memblock.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ static inline unsigned long memblock_region_reserved_end_pfn(const struct memblo
152152

153153

154154
#ifdef ARCH_DISCARD_MEMBLOCK
155-
#define __init_memblock __init
156-
#define __initdata_memblock __initdata
155+
#define __init_memblock __meminit
156+
#define __initdata_memblock __meminitdata
157157
#else
158158
#define __init_memblock
159159
#define __initdata_memblock

0 commit comments

Comments
 (0)