[PATCH 05/34] scripts: mxs: Use Kernel includes

Sascha Hauer s.hauer at pengutronix.de
Tue Feb 2 06:47:48 PST 2016


Use the common definition of ARRAY_SIZE and roundup.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 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




More information about the barebox mailing list