diff options
author | Ingo Molnar <mingo@elte.hu> | 2011-05-26 07:51:31 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-05-26 07:51:35 -0400 |
commit | de66ee979d0ea45171cc2501750e9f9f22f5a690 (patch) | |
tree | 5ab1a5c6b596b9b786902fb380274e1e1f4ceb13 /include/linux/memblock.h | |
parent | 916f676f8dc016103f983c7ec54c18ecdbb6e349 (diff) | |
parent | 4db70f73e56961b9bcdfd0c36c62847a18b7dbb5 (diff) |
Merge branch 'linus' into x86/urgent
Merge reason: we want to queue up a dependent patch.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/memblock.h')
-rw-r--r-- | include/linux/memblock.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/memblock.h b/include/linux/memblock.h index 62a10c2a11f2..7525e38c434d 100644 --- a/include/linux/memblock.h +++ b/include/linux/memblock.h | |||
@@ -2,6 +2,8 @@ | |||
2 | #define _LINUX_MEMBLOCK_H | 2 | #define _LINUX_MEMBLOCK_H |
3 | #ifdef __KERNEL__ | 3 | #ifdef __KERNEL__ |
4 | 4 | ||
5 | #define MEMBLOCK_ERROR 0 | ||
6 | |||
5 | #ifdef CONFIG_HAVE_MEMBLOCK | 7 | #ifdef CONFIG_HAVE_MEMBLOCK |
6 | /* | 8 | /* |
7 | * Logical memory blocks. | 9 | * Logical memory blocks. |
@@ -20,7 +22,6 @@ | |||
20 | #include <asm/memblock.h> | 22 | #include <asm/memblock.h> |
21 | 23 | ||
22 | #define INIT_MEMBLOCK_REGIONS 128 | 24 | #define INIT_MEMBLOCK_REGIONS 128 |
23 | #define MEMBLOCK_ERROR 0 | ||
24 | 25 | ||
25 | struct memblock_region { | 26 | struct memblock_region { |
26 | phys_addr_t base; | 27 | phys_addr_t base; |
@@ -160,6 +161,12 @@ static inline unsigned long memblock_region_reserved_end_pfn(const struct memblo | |||
160 | #define __initdata_memblock | 161 | #define __initdata_memblock |
161 | #endif | 162 | #endif |
162 | 163 | ||
164 | #else | ||
165 | static inline phys_addr_t memblock_alloc(phys_addr_t size, phys_addr_t align) | ||
166 | { | ||
167 | return MEMBLOCK_ERROR; | ||
168 | } | ||
169 | |||
163 | #endif /* CONFIG_HAVE_MEMBLOCK */ | 170 | #endif /* CONFIG_HAVE_MEMBLOCK */ |
164 | 171 | ||
165 | #endif /* __KERNEL__ */ | 172 | #endif /* __KERNEL__ */ |