X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=mm%2Fbootmem.c;h=966135b90ff28b3413748cf3483bf6a6aeceaaff;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=052dfeac07693a6aa77e2e4a483a7c4f4ceef803;hpb=db216c3d5e4c040e557a50f8f5d35d5c415e8c1c;p=linux-2.6.git diff --git a/mm/bootmem.c b/mm/bootmem.c index 052dfeac0..966135b90 100644 --- a/mm/bootmem.c +++ b/mm/bootmem.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include @@ -27,6 +28,10 @@ unsigned long max_low_pfn; unsigned long min_low_pfn; unsigned long max_pfn; +EXPORT_SYMBOL(max_pfn); /* This is exported so + * dma_get_required_mask(), which uses + * it, can be an inline function */ + /* return the number of _pages_ that will be allocated for the boot bitmap */ unsigned long __init bootmem_bootmap_pages (unsigned long pages) { @@ -371,11 +376,6 @@ void * __init __alloc_bootmem_node (pg_data_t *pgdat, unsigned long size, unsign if (ptr) return (ptr); - /* - * Whoops, we cannot satisfy the allocation request. - */ - printk(KERN_ALERT "bootmem alloc of %lu bytes failed!\n", size); - panic("Out of memory"); - return NULL; + return __alloc_bootmem(size, align, goal); }