diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-02-02 09:38:36 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-02-02 15:41:04 +0100 |
commit | b5eb8b90fe6e566e2ba88117f91578f025205dd1 (patch) | |
tree | 8080eeaa274580b593f8da2d07b5a9fc77e2455e /scripts | |
parent | 9aa7aa8f08e73753179c4972414cbdd2e141a94d (diff) | |
download | barebox-b5eb8b90fe6e566e2ba88117f91578f025205dd1.tar.gz barebox-b5eb8b90fe6e566e2ba88117f91578f025205dd1.tar.xz |
scripts: mxs: Use Kernel includes
Use the common definition of ARRAY_SIZE and roundup.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/mxsimage.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/mxsimage.c b/scripts/mxsimage.c index 0a5f6a05ef..2b1a5f38b3 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; |