summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt2010-07-28 07:25:10 +0200
committerBenjamin Herrenschmidt2010-08-05 04:56:30 +0200
commit25818f0f288cd5333ba5a90ad6dde3def4c4ff58 (patch)
tree993384eff73bac874201d342c43a8e596dd1f485 /include
parentmemblock: Export MEMBLOCK_ERROR (diff)
downloadkernel-qcow2-linux-25818f0f288cd5333ba5a90ad6dde3def4c4ff58.tar.gz
kernel-qcow2-linux-25818f0f288cd5333ba5a90ad6dde3def4c4ff58.tar.xz
kernel-qcow2-linux-25818f0f288cd5333ba5a90ad6dde3def4c4ff58.zip
memblock: Make MEMBLOCK_ERROR be 0
And ensure we don't hand out 0 as a valid allocation. We put the low limit at PAGE_SIZE arbitrarily. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/memblock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/memblock.h b/include/linux/memblock.h
index 1a9c29cc92fa..dfa64494ced1 100644
--- a/include/linux/memblock.h
+++ b/include/linux/memblock.h
@@ -19,7 +19,7 @@
#include <asm/memblock.h>
#define INIT_MEMBLOCK_REGIONS 128
-#define MEMBLOCK_ERROR (~(phys_addr_t)0)
+#define MEMBLOCK_ERROR 0
struct memblock_region {
phys_addr_t base;