diff options
Diffstat (limited to 'include/linux/slab_def.h')
-rw-r--r-- | include/linux/slab_def.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/include/linux/slab_def.h b/include/linux/slab_def.h index 455f9affea9a..f4523651fa42 100644 --- a/include/linux/slab_def.h +++ b/include/linux/slab_def.h | |||
@@ -62,10 +62,7 @@ static __always_inline void *kmalloc(size_t size, gfp_t flags) | |||
62 | i++; | 62 | i++; |
63 | #include <linux/kmalloc_sizes.h> | 63 | #include <linux/kmalloc_sizes.h> |
64 | #undef CACHE | 64 | #undef CACHE |
65 | { | 65 | return NULL; |
66 | extern void __you_cannot_kmalloc_that_much(void); | ||
67 | __you_cannot_kmalloc_that_much(); | ||
68 | } | ||
69 | found: | 66 | found: |
70 | #ifdef CONFIG_ZONE_DMA | 67 | #ifdef CONFIG_ZONE_DMA |
71 | if (flags & GFP_DMA) | 68 | if (flags & GFP_DMA) |
@@ -120,10 +117,7 @@ static __always_inline void *kmalloc_node(size_t size, gfp_t flags, int node) | |||
120 | i++; | 117 | i++; |
121 | #include <linux/kmalloc_sizes.h> | 118 | #include <linux/kmalloc_sizes.h> |
122 | #undef CACHE | 119 | #undef CACHE |
123 | { | 120 | return NULL; |
124 | extern void __you_cannot_kmalloc_that_much(void); | ||
125 | __you_cannot_kmalloc_that_much(); | ||
126 | } | ||
127 | found: | 121 | found: |
128 | #ifdef CONFIG_ZONE_DMA | 122 | #ifdef CONFIG_ZONE_DMA |
129 | if (flags & GFP_DMA) | 123 | if (flags & GFP_DMA) |