|
@@ -43,10 +43,7 @@ static inline void *kmalloc(size_t size, gfp_t flags)
|
|
i++;
|
|
i++;
|
|
#include <linux/kmalloc_sizes.h>
|
|
#include <linux/kmalloc_sizes.h>
|
|
#undef CACHE
|
|
#undef CACHE
|
|
- {
|
|
|
|
- extern void __you_cannot_kmalloc_that_much(void);
|
|
|
|
- __you_cannot_kmalloc_that_much();
|
|
|
|
- }
|
|
|
|
|
|
+ return NULL;
|
|
found:
|
|
found:
|
|
#ifdef CONFIG_ZONE_DMA
|
|
#ifdef CONFIG_ZONE_DMA
|
|
if (flags & GFP_DMA)
|
|
if (flags & GFP_DMA)
|
|
@@ -77,10 +74,7 @@ static inline void *kmalloc_node(size_t size, gfp_t flags, int node)
|
|
i++;
|
|
i++;
|
|
#include <linux/kmalloc_sizes.h>
|
|
#include <linux/kmalloc_sizes.h>
|
|
#undef CACHE
|
|
#undef CACHE
|
|
- {
|
|
|
|
- extern void __you_cannot_kmalloc_that_much(void);
|
|
|
|
- __you_cannot_kmalloc_that_much();
|
|
|
|
- }
|
|
|
|
|
|
+ return NULL;
|
|
found:
|
|
found:
|
|
#ifdef CONFIG_ZONE_DMA
|
|
#ifdef CONFIG_ZONE_DMA
|
|
if (flags & GFP_DMA)
|
|
if (flags & GFP_DMA)
|