aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/memblock.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/memblock.h')
-rw-r--r--include/linux/memblock.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/memblock.h b/include/linux/memblock.h
index c9c7b0f344a5..150be938b910 100644
--- a/include/linux/memblock.h
+++ b/include/linux/memblock.h
@@ -18,7 +18,7 @@
18 18
19#include <asm/memblock.h> 19#include <asm/memblock.h>
20 20
21#define MAX_MEMBLOCK_REGIONS 128 21#define INIT_MEMBLOCK_REGIONS 128
22 22
23struct memblock_region { 23struct memblock_region {
24 phys_addr_t base; 24 phys_addr_t base;
@@ -26,8 +26,9 @@ struct memblock_region {
26}; 26};
27 27
28struct memblock_type { 28struct memblock_type {
29 unsigned long cnt; 29 unsigned long cnt; /* number of regions */
30 struct memblock_region regions[MAX_MEMBLOCK_REGIONS+1]; 30 unsigned long max; /* size of the allocated array */
31 struct memblock_region *regions;
31}; 32};
32 33
33struct memblock { 34struct memblock {