Add return value to reserve_bootmem_node()
authorBernhard Walle <bwalle@suse.de>
Sat, 21 Jun 2008 17:01:02 +0000 (19:01 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 24 Jun 2008 21:08:29 +0000 (14:08 -0700)
commit8c3a10753bfb7ba66b024398cc9bad9eea82a99f
tree7112e4a92ffd0056ebd1feec0ffc5b66b1ada783
parentbd3aae04b2b17300b33e2e1b89482715c2cf7de3
Add return value to reserve_bootmem_node()

commit 71c2742f5e6348d76ee62085cf0a13e5eff0f00e upstream

This patch changes the function reserve_bootmem_node() from void to int,
returning -ENOMEM if the allocation fails.

This fixes a build problem on x86 with CONFIG_KEXEC=y and
CONFIG_NEED_MULTIPLE_NODES=y

Signed-off-by: Bernhard Walle <bwalle@suse.de>
Reported-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/bootmem.h
mm/bootmem.c