kfifo: roundup fifo size to next power of two
Comments in include/kfifo.h state that the FIFO size will be rounded up
to the next power of two, but so far we haven't actually done this,
probably because we didn't have roundup_pow_of_two() back then when
kfifo support was added.

Fix that now and do what the comments state.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 5e131c5 commit 16a3b9f241861aaf7ddd6f284e111aad291c508f
@Sascha Hauer Sascha Hauer authored on 21 Sep 2018
Showing 1 changed file
View
lib/kfifo.c