Skip to content
Commit 71c2742f authored by Bernhard Walle's avatar Bernhard Walle Committed by Linus Torvalds
Browse files

Add return value to reserve_bootmem_node()



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: default avatarBernhard Walle <bwalle@suse.de>
Reported-by: default avatarAdrian Bunk <bunk@kernel.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent a1921443
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment