state: backend_bucket_circular: fix for non power of 2 writesize
This includes sys/param.h to have the definition of roundup() and ports the
following barebox commit:

| commit f701414
| Author: Ladislav Michl <ladis@linux-mips.org>
| Date:   Tue Sep 25 12:58:45 2018 +0200
|
|     state: backend_bucket_circular: fix for non power of 2 writesize
|
|     backend_bucket_circular currently assumes writesize is power of 2,
|     which makes it fail on dataflash devices, where this assumption
|     is false.
|
|     Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
|     Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>

Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
1 parent ea60eb9 commit bfd82b755f32e2e54e3f27b10fb801092cb99c7c
@Ulrich Ölmann Ulrich Ölmann authored on 18 Dec 2018
Roland Hieber committed on 7 Jan 2019
Showing 1 changed file
View
src/barebox-state/backend_bucket_circular.c