Skip to content

Commit

Permalink
memblock: Export MEMBLOCK_ERROR
Browse files Browse the repository at this point in the history
will used by x86 memblock_x86_find_in_range_node and nobootmem replacement

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Yinghai Lu authored and Benjamin Herrenschmidt committed Aug 5, 2010
1 parent ea9e437 commit 37d8d4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion include/linux/memblock.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@

#include <asm/memblock.h>

#define INIT_MEMBLOCK_REGIONS 128
#define INIT_MEMBLOCK_REGIONS 128
#define MEMBLOCK_ERROR (~(phys_addr_t)0)

struct memblock_region {
phys_addr_t base;
Expand Down
2 changes: 0 additions & 2 deletions mm/memblock.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ int memblock_can_resize;
static struct memblock_region memblock_memory_init_regions[INIT_MEMBLOCK_REGIONS + 1];
static struct memblock_region memblock_reserved_init_regions[INIT_MEMBLOCK_REGIONS + 1];

#define MEMBLOCK_ERROR (~(phys_addr_t)0)

/* inline so we don't get a warning when pr_debug is compiled out */
static inline const char *memblock_type_name(struct memblock_type *type)
{
Expand Down

0 comments on commit 37d8d4b

Please sign in to comment.