Use the common definition of ARRAY_SIZE and roundup. Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- scripts/mxsimage.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/mxsimage.c b/scripts/mxsimage.c index 0a5f6a0..2b1a5f3 100644 --- a/scripts/mxsimage.c +++ b/scripts/mxsimage.c @@ -16,12 +16,10 @@ #include <getopt.h> #include <stdint.h> #include <arpa/inet.h> +#include <linux/kernel.h> #define SB_BLOCK_SIZE 16 -#define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y)) -#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) - static char *prepfile; static char *bootloaderfile; -- 2.7.0.rc3 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox