diff options
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r-- | include/linux/mm.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index 949bd7035895..be1b96ce0650 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -1311,7 +1311,7 @@ extern void free_initmem(void); | |||
1311 | * "poison" if it's non-zero. | 1311 | * "poison" if it's non-zero. |
1312 | * Return pages freed into the buddy system. | 1312 | * Return pages freed into the buddy system. |
1313 | */ | 1313 | */ |
1314 | extern unsigned long free_reserved_area(unsigned long start, unsigned long end, | 1314 | extern unsigned long free_reserved_area(void *start, void *end, |
1315 | int poison, char *s); | 1315 | int poison, char *s); |
1316 | #ifdef CONFIG_HIGHMEM | 1316 | #ifdef CONFIG_HIGHMEM |
1317 | /* | 1317 | /* |
@@ -1355,8 +1355,7 @@ static inline unsigned long free_initmem_default(int poison) | |||
1355 | { | 1355 | { |
1356 | extern char __init_begin[], __init_end[]; | 1356 | extern char __init_begin[], __init_end[]; |
1357 | 1357 | ||
1358 | return free_reserved_area(PAGE_ALIGN((unsigned long)&__init_begin) , | 1358 | return free_reserved_area(&__init_begin, &__init_end, |
1359 | ((unsigned long)&__init_end) & PAGE_MASK, | ||
1360 | poison, "unused kernel"); | 1359 | poison, "unused kernel"); |
1361 | } | 1360 | } |
1362 | 1361 | ||