From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aQcG0-0002Pi-VD for barebox@lists.infradead.org; Tue, 02 Feb 2016 14:48:44 +0000 From: Sascha Hauer Date: Tue, 2 Feb 2016 15:47:48 +0100 Message-Id: <1454424497-7157-6-git-send-email-s.hauer@pengutronix.de> In-Reply-To: <1454424497-7157-1-git-send-email-s.hauer@pengutronix.de> References: <1454424497-7157-1-git-send-email-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 05/34] scripts: mxs: Use Kernel includes To: Barebox List Use the common definition of ARRAY_SIZE and roundup. Signed-off-by: Sascha Hauer --- 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 #include #include +#include #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@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox