diff options
Diffstat (limited to 'mm/slab.c')
-rw-r--r-- | mm/slab.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -316,6 +316,8 @@ struct kmem_list3 __initdata initkmem_list3[NUM_INIT_LISTS]; | |||
316 | */ | 316 | */ |
317 | static __always_inline int index_of(const size_t size) | 317 | static __always_inline int index_of(const size_t size) |
318 | { | 318 | { |
319 | extern void __bad_size(void); | ||
320 | |||
319 | if (__builtin_constant_p(size)) { | 321 | if (__builtin_constant_p(size)) { |
320 | int i = 0; | 322 | int i = 0; |
321 | 323 | ||
@@ -326,12 +328,9 @@ static __always_inline int index_of(const size_t size) | |||
326 | i++; | 328 | i++; |
327 | #include "linux/kmalloc_sizes.h" | 329 | #include "linux/kmalloc_sizes.h" |
328 | #undef CACHE | 330 | #undef CACHE |
329 | { | 331 | __bad_size(); |
330 | extern void __bad_size(void); | ||
331 | __bad_size(); | ||
332 | } | ||
333 | } else | 332 | } else |
334 | BUG(); | 333 | __bad_size(); |
335 | return 0; | 334 | return 0; |
336 | } | 335 | } |
337 | 336 | ||