summaryrefslogtreecommitdiffstats
path: root/tools/testing
diff options
context:
space:
mode:
authorStefani Seibold <stefani@seibold.net>2013-02-28 02:05:51 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2013-02-28 04:10:23 +0100
commitdfe2a77fd243ac3bf204fd0624e4d0b2134aaa6d (patch)
tree8ec9dd36b30a4cb53138dec2b07bc4a4c79fa49e /tools/testing
parentkfifo: move kfifo.c from kernel/ to lib/ (diff)
downloadlinux-dfe2a77fd243ac3bf204fd0624e4d0b2134aaa6d.tar.xz
linux-dfe2a77fd243ac3bf204fd0624e4d0b2134aaa6d.zip
kfifo: fix kfifo_alloc() and kfifo_init()
Fix kfifo_alloc() and kfifo_init() to alloc at least the requested number of elements. Since the kfifo operates on power of 2 the request size will be rounded up to the next power of two. Signed-off-by: Stefani Seibold <stefani@seibold.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/testing')
0 files changed, 0 insertions, 0 deletions