]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - mm/sparse.c
ipw2200: prevent alloc of unspecified size on stack
[linux-2.6-omap-h63xx.git] / mm / sparse.c
index 08fb14f5eea3b45f927b4dee0c0ff6ba58c1c903..e06f514fe04faa748c5e50e3f4cb25789d977238 100644 (file)
@@ -220,12 +220,6 @@ static int __meminit sparse_init_one_section(struct mem_section *ms,
        return 1;
 }
 
-__attribute__((weak)) __init
-void *alloc_bootmem_high_node(pg_data_t *pgdat, unsigned long size)
-{
-       return NULL;
-}
-
 static unsigned long usemap_size(void)
 {
        unsigned long size_bytes;
@@ -267,11 +261,6 @@ struct page __init *sparse_mem_map_populate(unsigned long pnum, int nid)
        if (map)
                return map;
 
-       map = alloc_bootmem_high_node(NODE_DATA(nid),
-                       sizeof(struct page) * PAGES_PER_SECTION);
-       if (map)
-               return map;
-
        map = alloc_bootmem_node(NODE_DATA(nid),
                        sizeof(struct page) * PAGES_PER_SECTION);
        return map;