Commit 4cee4ae0 authored by Nick Piggin's avatar Nick Piggin Committed by Pekka Enberg

SLQB: fix compile without optimizations

SLQB fails to build without -O, which causes some external code to trip
over. This BUILD_BUG_ON isn't so useful anyway because it is trivial to
follow that size will be constant, looking at the callers.
Signed-off-by: default avatarNick Piggin <npiggin@suse.de>
Signed-off-by: default avatarPekka Enberg <penberg@cs.helsinki.fi>
parent 0b8ad536
......@@ -237,8 +237,6 @@ static __always_inline struct kmem_cache *kmalloc_slab(size_t size, gfp_t flags)
{
int index;
BUILD_BUG_ON(!__builtin_constant_p(size));
index = kmalloc_index(size);
if (unlikely(index == 0))
return ZERO_SIZE_PTR;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment