1 #include <linux/types.h>
2 #include <linux/init.h>
3 #include <linux/slab.h>
4 #include <linux/bootmem.h>
5 #include <linux/string.h>
7 #include <asm/system.h>
9 void * __init_refok
alloc_maybe_bootmem(size_t size
, gfp_t mask
)
12 return kmalloc(size
, mask
);
14 return alloc_bootmem(size
);
17 void * __init_refok
zalloc_maybe_bootmem(size_t size
, gfp_t mask
)
22 p
= kzalloc(size
, mask
);
24 p
= alloc_bootmem(size
);