]> git.baikalelectronics.ru Git - kernel.git/commit
memblock: Make memblock_{add|remove|free|reserve}() return int and update prototypes
authorTejun Heo <tj@kernel.org>
Thu, 8 Dec 2011 18:22:06 +0000 (10:22 -0800)
committerTejun Heo <tj@kernel.org>
Thu, 8 Dec 2011 18:22:06 +0000 (10:22 -0800)
commita5b4b98c885ef860cc30e382f1d899b8941007fa
tree6c7f0faf7ee8812630197e7c23fc32bb4cc978c2
parent6e00cddd98ccdb9e38ec264f1fdb91e07ff8a3f9
memblock: Make memblock_{add|remove|free|reserve}() return int and update prototypes

memblock_{add|remove|free|reserve}() return either 0 or -errno but had
long as return type.  Chage it to int.  Also, drop 'extern' from all
prototypes in memblock.h - they are unnecessary and used
inconsistently (especially if mm.h is included in the picture).

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Yinghai Lu <yinghai@kernel.org>
include/linux/memblock.h
mm/memblock.c